org.apache.servicemix.jsr181
Class Jsr181Endpoint

java.lang.Object
  extended by org.apache.servicemix.common.endpoints.AbstractEndpoint
      extended by org.apache.servicemix.common.endpoints.SimpleEndpoint
          extended by org.apache.servicemix.common.endpoints.ProviderEndpoint
              extended by org.apache.servicemix.jsr181.Jsr181Endpoint
All Implemented Interfaces:
Endpoint

public class Jsr181Endpoint
extends ProviderEndpoint

Version:
$Revision$
Author:
gnodet

Field Summary
protected  java.lang.String annotations
           
protected  boolean mtomEnabled
           
protected  java.lang.Object pojo
           
protected  java.lang.String pojoClass
           
protected  java.util.Map properties
           
protected  java.lang.String serviceInterface
           
static java.lang.String SOAP_FAULT_CODE
           
static java.lang.String SOAP_FAULT_NODE
           
static java.lang.String SOAP_FAULT_REASON
           
static java.lang.String SOAP_FAULT_ROLE
           
static java.lang.String SOAP_FAULT_SUBCODE
           
protected  java.lang.String style
           
protected  org.apache.servicemix.jbi.jaxp.SourceTransformer transformer
           
protected  java.lang.String typeMapping
           
protected  org.springframework.core.io.Resource wsdlResource
           
protected  org.codehaus.xfire.service.Service xfireService
           
 
Fields inherited from class org.apache.servicemix.common.endpoints.SimpleEndpoint
logger
 
Fields inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint
definition, description, endpoint, interfaceName, service, serviceUnit
 
Constructor Summary
Jsr181Endpoint()
           
 
Method Summary
protected  void createDescription()
           
protected  org.w3c.dom.Document generateWsdl()
           
 java.lang.String getAnnotations()
           
protected  org.apache.servicemix.jbi.api.Container getContainer()
           
 java.lang.Object getPojo()
           
 java.lang.String getPojoClass()
           
 java.util.Map getProperties()
           
 java.lang.String getServiceInterface()
           
 java.lang.String getStyle()
           
 java.lang.String getTypeMapping()
           
 org.springframework.core.io.Resource getWsdlResource()
           
 org.codehaus.xfire.XFire getXFire()
           
 org.codehaus.xfire.service.Service getXFireService()
           
protected  void injectPojo(javax.jbi.component.ComponentContext context, org.apache.servicemix.jbi.api.Container container)
           
 boolean isMtomEnabled()
           
 java.lang.Boolean isValidationEnabled()
           
protected  javax.wsdl.Definition loadDefinition()
           
 void process(javax.jbi.messaging.MessageExchange exchange)
           
 void registerService()
           
 void setAnnotations(java.lang.String annotations)
           
 void setMtomEnabled(boolean mtomEnabled)
           
 void setPojo(java.lang.Object pojo)
           
 void setPojoClass(java.lang.String pojoClass)
           
 void setProperties(java.util.Map properties)
           
 void setServiceInterface(java.lang.String serviceInterface)
           
 void setStyle(java.lang.String style)
          Service style: can be rpc, document, wrapped or message.
 void setTypeMapping(java.lang.String typeMapping)
           
 void setValidationEnabled(java.lang.Boolean validationEnabled)
           
 void setWsdlResource(org.springframework.core.io.Resource wsdlResource)
           
 void start()
           
 void stop()
           
protected  void updateDescription()
           
 void validate()
          Validate the endpoint at either deployment time for statically defined endpoints or at runtime for dynamic endpoints
 
Methods inherited from class org.apache.servicemix.common.endpoints.ProviderEndpoint
activate, deactivate, getRole, processInOnly, processInOut
 
Methods inherited from class org.apache.servicemix.common.endpoints.SimpleEndpoint
done, fail, getChannel, getContext, getExchangeFactory, send, sendSync
 
Methods inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint
getDefinition, getDescription, getEndpoint, getInterfaceName, getKey, getService, getServiceUnit, isExchangeOkay, prepareExchange, setDefinition, setDescription, setEndpoint, setInterfaceName, setService, setServiceUnit, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SOAP_FAULT_CODE

public static final java.lang.String SOAP_FAULT_CODE
See Also:
Constant Field Values

SOAP_FAULT_SUBCODE

public static final java.lang.String SOAP_FAULT_SUBCODE
See Also:
Constant Field Values

SOAP_FAULT_REASON

public static final java.lang.String SOAP_FAULT_REASON
See Also:
Constant Field Values

SOAP_FAULT_NODE

public static final java.lang.String SOAP_FAULT_NODE
See Also:
Constant Field Values

SOAP_FAULT_ROLE

public static final java.lang.String SOAP_FAULT_ROLE
See Also:
Constant Field Values

pojo

protected java.lang.Object pojo

pojoClass

protected java.lang.String pojoClass

annotations

protected java.lang.String annotations

typeMapping

protected java.lang.String typeMapping

serviceInterface

protected java.lang.String serviceInterface

style

protected java.lang.String style

xfireService

protected org.codehaus.xfire.service.Service xfireService

wsdlResource

protected org.springframework.core.io.Resource wsdlResource

mtomEnabled

protected boolean mtomEnabled

properties

protected java.util.Map properties

transformer

protected org.apache.servicemix.jbi.jaxp.SourceTransformer transformer
Constructor Detail

Jsr181Endpoint

public Jsr181Endpoint()
Method Detail

getStyle

public java.lang.String getStyle()
Returns:
the style

setStyle

public void setStyle(java.lang.String style)
Service style: can be rpc, document, wrapped or message. Default to wrapped

Parameters:
style - the style to set

getWsdlResource

public org.springframework.core.io.Resource getWsdlResource()
Returns:
the wsdlResource

setWsdlResource

public void setWsdlResource(org.springframework.core.io.Resource wsdlResource)
Parameters:
wsdlResource - the wsdlResource to set

getPojo

public java.lang.Object getPojo()
Returns:
Returns the pojo.

setPojo

public void setPojo(java.lang.Object pojo)
Parameters:
pojo - The pojo to set.

isMtomEnabled

public boolean isMtomEnabled()
Returns:
the mtomEnabled

setMtomEnabled

public void setMtomEnabled(boolean mtomEnabled)
Parameters:
mtomEnabled - the mtomEnabled to set

isValidationEnabled

public java.lang.Boolean isValidationEnabled()
Returns:
the validationEnabled

setValidationEnabled

public void setValidationEnabled(java.lang.Boolean validationEnabled)
Parameters:
validationEnabled - the validationEnabled to set

getProperties

public java.util.Map getProperties()
Returns:
the properties

setProperties

public void setProperties(java.util.Map properties)
Parameters:
properties - the properties to set

getXFireService

public org.codehaus.xfire.service.Service getXFireService()
Returns:
Returns the xfireService.

start

public void start()
           throws java.lang.Exception
Specified by:
start in interface Endpoint
Overrides:
start in class SimpleEndpoint
Throws:
java.lang.Exception

stop

public void stop()
          throws java.lang.Exception
Specified by:
stop in interface Endpoint
Overrides:
stop in class SimpleEndpoint
Throws:
java.lang.Exception

injectPojo

protected void injectPojo(javax.jbi.component.ComponentContext context,
                          org.apache.servicemix.jbi.api.Container container)

getContainer

protected org.apache.servicemix.jbi.api.Container getContainer()

validate

public void validate()
              throws javax.jbi.management.DeploymentException
Validate the endpoint at either deployment time for statically defined endpoints or at runtime for dynamic endpoints

Specified by:
validate in interface Endpoint
Overrides:
validate in class AbstractEndpoint
Throws:
javax.jbi.management.DeploymentException

registerService

public void registerService()
                     throws java.lang.Exception
Throws:
java.lang.Exception

createDescription

protected void createDescription()
                          throws org.xml.sax.SAXException,
                                 java.io.IOException,
                                 javax.xml.parsers.ParserConfigurationException,
                                 javax.wsdl.WSDLException,
                                 java.lang.Exception
Throws:
org.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
javax.wsdl.WSDLException
java.lang.Exception

updateDescription

protected void updateDescription()
                          throws java.lang.Exception
Throws:
java.lang.Exception

loadDefinition

protected javax.wsdl.Definition loadDefinition()
                                        throws java.io.IOException,
                                               javax.wsdl.WSDLException
Throws:
java.io.IOException
javax.wsdl.WSDLException

generateWsdl

protected org.w3c.dom.Document generateWsdl()
                                     throws org.xml.sax.SAXException,
                                            java.io.IOException,
                                            javax.xml.parsers.ParserConfigurationException
Throws:
org.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException

process

public void process(javax.jbi.messaging.MessageExchange exchange)
             throws java.lang.Exception
Specified by:
process in interface Endpoint
Overrides:
process in class ProviderEndpoint
Throws:
java.lang.Exception

getXFire

public org.codehaus.xfire.XFire getXFire()

getPojoClass

public java.lang.String getPojoClass()

setPojoClass

public void setPojoClass(java.lang.String pojoClass)

getAnnotations

public java.lang.String getAnnotations()

setAnnotations

public void setAnnotations(java.lang.String annotations)

getTypeMapping

public java.lang.String getTypeMapping()

setTypeMapping

public void setTypeMapping(java.lang.String typeMapping)

getServiceInterface

public java.lang.String getServiceInterface()

setServiceInterface

public void setServiceInterface(java.lang.String serviceInterface)


Copyright © 2005-2012 FuseSource. All Rights Reserved.