org.apache.servicemix.soap
Class SoapEndpoint

java.lang.Object
  extended by org.apache.servicemix.common.endpoints.AbstractEndpoint
      extended by org.apache.servicemix.soap.SoapEndpoint
All Implemented Interfaces:
Endpoint

public abstract class SoapEndpoint
extends AbstractEndpoint


Field Summary
protected  javax.jbi.servicedesc.ServiceEndpoint activated
           
protected  java.net.URI defaultMep
           
protected  javax.xml.namespace.QName defaultOperation
           
protected  boolean dynamic
           
protected  java.util.List policies
           
protected  SoapExchangeProcessor processor
           
protected  javax.jbi.messaging.MessageExchange.Role role
           
protected  boolean soap
           
protected  java.lang.String soapVersion
           
protected  java.lang.String targetEndpoint
           
protected  javax.xml.namespace.QName targetInterfaceName
           
protected  javax.xml.namespace.QName targetService
           
protected  org.springframework.core.io.Resource wsdlResource
           
protected  java.util.Map wsdls
           
 
Fields inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint
definition, description, endpoint, interfaceName, logger, service, serviceUnit
 
Constructor Summary
SoapEndpoint()
           
SoapEndpoint(boolean dynamic)
           
 
Method Summary
 void activate()
           
protected abstract  SoapExchangeProcessor createConsumerProcessor()
           
protected abstract  javax.jbi.servicedesc.ServiceEndpoint createExternalEndpoint()
           
protected abstract  SoapExchangeProcessor createProviderProcessor()
           
protected  javax.wsdl.xml.WSDLReader createWsdlReader()
           
protected  javax.wsdl.xml.WSDLWriter createWsdlWriter()
           
 void deactivate()
           
 AuthenticationService getAuthenticationService()
           
 java.net.URI getDefaultMep()
           
 javax.xml.namespace.QName getDefaultOperation()
           
 KeystoreManager getKeystoreManager()
           
 java.util.List getPolicies()
           
 javax.jbi.messaging.MessageExchange.Role getRole()
           
 java.lang.String getSoapVersion()
           
 java.lang.String getTargetEndpoint()
           
 javax.xml.namespace.QName getTargetInterfaceName()
           
 javax.xml.namespace.QName getTargetService()
           
 org.springframework.core.io.Resource getWsdlResource()
           
 java.util.Map getWsdls()
           
 boolean isSoap()
           
protected  void loadWsdl()
          Load the wsdl for this endpoint.
protected  void mapDefinition(javax.wsdl.Definition def)
           
protected  void mapImports(javax.wsdl.Definition def, java.lang.String contextPath)
           
protected abstract  void overrideDefinition(javax.wsdl.Definition def)
           
 void process(javax.jbi.messaging.MessageExchange exchange)
           
protected  void registerExtensions(javax.wsdl.extensions.ExtensionRegistry registry)
           
protected  void retrieveProxiedEndpointDefinition()
          Create a wsdl definition for a consumer endpoint.
 void setDefaultMep(java.net.URI defaultMep)
           
 void setDefaultOperation(javax.xml.namespace.QName defaultOperation)
           
 void setDescription(org.w3c.dom.Document description)
          In addition to setting the description, attempts to set the wsdlResource to fix a reloading issue.
 void setPolicies(java.util.List policies)
           
 void setRole(javax.jbi.messaging.MessageExchange.Role role)
           
 void setRoleAsString(java.lang.String role)
           
 void setSoap(boolean soap)
           
 void setSoapVersion(java.lang.String soapVersion)
           
 void setTargetEndpoint(java.lang.String targetEndpoint)
           
 void setTargetInterfaceName(javax.xml.namespace.QName targetInterfaceName)
           
 void setTargetService(javax.xml.namespace.QName targetServiceName)
           
 void setWsdlResource(org.springframework.core.io.Resource wsdlResource)
           
 void start()
           
 void stop()
           
 
Methods inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint
getDefinition, getDescription, getEndpoint, getInterfaceName, getKey, getService, getServiceUnit, isExchangeOkay, prepareExchange, setDefinition, setEndpoint, setInterfaceName, setService, setServiceUnit, toString, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

activated

protected javax.jbi.servicedesc.ServiceEndpoint activated

processor

protected SoapExchangeProcessor processor

role

protected javax.jbi.messaging.MessageExchange.Role role

defaultMep

protected java.net.URI defaultMep

soap

protected boolean soap

soapVersion

protected java.lang.String soapVersion

wsdlResource

protected org.springframework.core.io.Resource wsdlResource

defaultOperation

protected javax.xml.namespace.QName defaultOperation

targetInterfaceName

protected javax.xml.namespace.QName targetInterfaceName

targetService

protected javax.xml.namespace.QName targetService

targetEndpoint

protected java.lang.String targetEndpoint

policies

protected java.util.List policies

wsdls

protected java.util.Map wsdls

dynamic

protected boolean dynamic
Constructor Detail

SoapEndpoint

public SoapEndpoint()

SoapEndpoint

public SoapEndpoint(boolean dynamic)
Method Detail

getAuthenticationService

public AuthenticationService getAuthenticationService()

getKeystoreManager

public KeystoreManager getKeystoreManager()

getPolicies

public java.util.List getPolicies()
Returns:
the policies

setPolicies

public void setPolicies(java.util.List policies)
Parameters:
policies - the policies to set

getDefaultMep

public java.net.URI getDefaultMep()
Returns:
Returns the defaultMep.

setDefaultMep

public void setDefaultMep(java.net.URI defaultMep)
Parameters:
defaultMep - The defaultMep to set.

getDefaultOperation

public javax.xml.namespace.QName getDefaultOperation()
Returns:
Returns the defaultOperation.

setDefaultOperation

public void setDefaultOperation(javax.xml.namespace.QName defaultOperation)
Parameters:
defaultOperation - The defaultOperation to set.

getRole

public javax.jbi.messaging.MessageExchange.Role getRole()
Specified by:
getRole in interface Endpoint
Specified by:
getRole in class AbstractEndpoint
Returns:
Returns the role.

setRole

public void setRole(javax.jbi.messaging.MessageExchange.Role role)
Parameters:
role - The role to set.

isSoap

public boolean isSoap()
Returns:
Returns the soap.

setSoap

public void setSoap(boolean soap)
Parameters:
soap - The soap to set.

getSoapVersion

public java.lang.String getSoapVersion()
Returns:
Returns the soapVersion.

setSoapVersion

public void setSoapVersion(java.lang.String soapVersion)
Parameters:
soapVersion - The soapVersion to set.

getTargetEndpoint

public java.lang.String getTargetEndpoint()
Returns:
Returns the targetEndpoint.

setTargetEndpoint

public void setTargetEndpoint(java.lang.String targetEndpoint)
Parameters:
targetEndpoint - The targetEndpoint to set.

getTargetInterfaceName

public javax.xml.namespace.QName getTargetInterfaceName()
Returns:
Returns the targetInterfaceName.

setTargetInterfaceName

public void setTargetInterfaceName(javax.xml.namespace.QName targetInterfaceName)
Parameters:
targetInterfaceName - The targetInterfaceName to set.

getTargetService

public javax.xml.namespace.QName getTargetService()
Returns:
Returns the targetServiceName.

setTargetService

public void setTargetService(javax.xml.namespace.QName targetServiceName)
Parameters:
targetServiceName - The targetServiceName to set.

getWsdlResource

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

setWsdlResource

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

setRoleAsString

public void setRoleAsString(java.lang.String role)
Parameters:
role -

setDescription

public void setDescription(org.w3c.dom.Document description)
In addition to setting the description, attempts to set the wsdlResource to fix a reloading issue.

Overrides:
setDescription in class AbstractEndpoint

loadWsdl

protected void loadWsdl()
Load the wsdl for this endpoint.


retrieveProxiedEndpointDefinition

protected void retrieveProxiedEndpointDefinition()
Create a wsdl definition for a consumer endpoint. Loads the target endpoint definition and add http binding informations to it.


activate

public void activate()
              throws java.lang.Exception
Specified by:
activate in interface Endpoint
Specified by:
activate in class AbstractEndpoint
Throws:
java.lang.Exception

start

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

stop

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

process

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

deactivate

public void deactivate()
                throws java.lang.Exception
Specified by:
deactivate in interface Endpoint
Specified by:
deactivate in class AbstractEndpoint
Throws:
java.lang.Exception

overrideDefinition

protected abstract void overrideDefinition(javax.wsdl.Definition def)
                                    throws java.lang.Exception
Throws:
java.lang.Exception

createProviderProcessor

protected abstract SoapExchangeProcessor createProviderProcessor()

createConsumerProcessor

protected abstract SoapExchangeProcessor createConsumerProcessor()

createExternalEndpoint

protected abstract javax.jbi.servicedesc.ServiceEndpoint createExternalEndpoint()

createWsdlReader

protected javax.wsdl.xml.WSDLReader createWsdlReader()
                                              throws javax.wsdl.WSDLException
Throws:
javax.wsdl.WSDLException

createWsdlWriter

protected javax.wsdl.xml.WSDLWriter createWsdlWriter()
                                              throws javax.wsdl.WSDLException
Throws:
javax.wsdl.WSDLException

registerExtensions

protected void registerExtensions(javax.wsdl.extensions.ExtensionRegistry registry)

mapDefinition

protected void mapDefinition(javax.wsdl.Definition def)
                      throws javax.wsdl.WSDLException
Throws:
javax.wsdl.WSDLException

mapImports

protected void mapImports(javax.wsdl.Definition def,
                          java.lang.String contextPath)
                   throws javax.wsdl.WSDLException
Throws:
javax.wsdl.WSDLException

getWsdls

public java.util.Map getWsdls()
Returns:
Returns the wsdls.


Copyright © 2005-2011 FuseSource. All Rights Reserved.