org.apache.servicemix.soap
Class SoapEndpoint

java.lang.Object
  extended by org.apache.servicemix.common.Endpoint
      extended by org.apache.servicemix.soap.SoapEndpoint

public abstract class SoapEndpoint
extends Endpoint


Field Summary
protected  ServiceEndpoint activated
           
protected  URI defaultMep
           
protected  QName defaultOperation
           
protected  List policies
           
protected  ExchangeProcessor processor
           
protected  MessageExchange.Role role
           
protected  boolean soap
           
protected  String soapVersion
           
protected  String targetEndpoint
           
protected  QName targetInterfaceName
           
protected  QName targetService
           
protected  org.springframework.core.io.Resource wsdlResource
           
protected  Map wsdls
           
 
Fields inherited from class org.apache.servicemix.common.Endpoint
definition, description, endpoint, interfaceName, logger, service, serviceUnit
 
Constructor Summary
SoapEndpoint()
           
 
Method Summary
 void activate()
           
 void activateDynamic()
           
protected abstract  ExchangeProcessor createConsumerProcessor()
           
protected abstract  ServiceEndpoint createExternalEndpoint()
           
protected abstract  ExchangeProcessor createProviderProcessor()
           
protected  javax.wsdl.xml.WSDLReader createWsdlReader()
           
protected  javax.wsdl.xml.WSDLWriter createWsdlWriter()
           
 void deactivate()
           
 AuthenticationService getAuthenticationService()
           
 URI getDefaultMep()
           
 QName getDefaultOperation()
           
 KeystoreManager getKeystoreManager()
           
 List getPolicies()
           
 ExchangeProcessor getProcessor()
           
 MessageExchange.Role getRole()
           
 String getSoapVersion()
           
 String getTargetEndpoint()
           
 QName getTargetInterfaceName()
           
 QName getTargetService()
           
 org.springframework.core.io.Resource getWsdlResource()
           
 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)
           
protected abstract  void overrideDefinition(javax.wsdl.Definition def)
           
protected  void registerExtensions(javax.wsdl.extensions.ExtensionRegistry registry)
           
protected  void retrieveProxiedEndpointDefinition()
          Create a wsdl definition for a consumer endpoint.
 void setDefaultMep(URI defaultMep)
           
 void setDefaultOperation(QName defaultOperation)
           
 void setPolicies(List policies)
           
 void setRole(MessageExchange.Role role)
           
 void setRoleAsString(String role)
           
 void setSoap(boolean soap)
           
 void setSoapVersion(String soapVersion)
           
 void setTargetEndpoint(String targetEndpoint)
           
 void setTargetInterfaceName(QName targetInterfaceName)
           
 void setTargetService(QName targetServiceName)
           
 void setWsdlResource(org.springframework.core.io.Resource wsdlResource)
           
 
Methods inherited from class org.apache.servicemix.common.Endpoint
getDefinition, getDescription, getEndpoint, getInterfaceName, getKey, getService, getServiceUnit, isExchangeOkay, setDefinition, setDescription, 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 ServiceEndpoint activated

processor

protected ExchangeProcessor processor

role

protected MessageExchange.Role role

defaultMep

protected URI defaultMep

soap

protected boolean soap

soapVersion

protected String soapVersion

wsdlResource

protected org.springframework.core.io.Resource wsdlResource

defaultOperation

protected QName defaultOperation

targetInterfaceName

protected QName targetInterfaceName

targetService

protected QName targetService

targetEndpoint

protected String targetEndpoint

policies

protected List policies

wsdls

protected Map wsdls
Constructor Detail

SoapEndpoint

public SoapEndpoint()
Method Detail

getAuthenticationService

public AuthenticationService getAuthenticationService()

getKeystoreManager

public KeystoreManager getKeystoreManager()

getPolicies

public List getPolicies()
Returns:
the policies

setPolicies

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

getDefaultMep

public URI getDefaultMep()
Returns:
Returns the defaultMep.

setDefaultMep

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

getDefaultOperation

public QName getDefaultOperation()
Returns:
Returns the defaultOperation.

setDefaultOperation

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

getRole

public MessageExchange.Role getRole()
Specified by:
getRole in class Endpoint
Returns:
Returns the role.

setRole

public void setRole(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 String getSoapVersion()
Returns:
Returns the soapVersion.

setSoapVersion

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

getTargetEndpoint

public String getTargetEndpoint()
Returns:
Returns the targetEndpoint.

setTargetEndpoint

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

getTargetInterfaceName

public QName getTargetInterfaceName()
Returns:
Returns the targetInterfaceName.

setTargetInterfaceName

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

getTargetService

public QName getTargetService()
Returns:
Returns the targetServiceName.

setTargetService

public void setTargetService(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(String role)
Parameters:
role -

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.


getProcessor

public ExchangeProcessor getProcessor()
Specified by:
getProcessor in class Endpoint

activate

public void activate()
              throws Exception
Specified by:
activate in class Endpoint
Throws:
Exception

activateDynamic

public void activateDynamic()
                     throws Exception
Throws:
Exception

deactivate

public void deactivate()
                throws Exception
Specified by:
deactivate in class Endpoint
Throws:
Exception

overrideDefinition

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

createProviderProcessor

protected abstract ExchangeProcessor createProviderProcessor()

createConsumerProcessor

protected abstract ExchangeProcessor createConsumerProcessor()

createExternalEndpoint

protected abstract 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)
                   throws javax.wsdl.WSDLException
Throws:
javax.wsdl.WSDLException

getWsdls

public Map getWsdls()
Returns:
Returns the wsdls.


Copyright © 2005-2009 Apache Software Foundation. All Rights Reserved.