org.apache.servicemix.http.endpoints
Class HttpSoapConsumerEndpoint
java.lang.Object
org.apache.servicemix.common.endpoints.AbstractEndpoint
org.apache.servicemix.common.endpoints.SimpleEndpoint
org.apache.servicemix.common.endpoints.ConsumerEndpoint
org.apache.servicemix.http.endpoints.HttpConsumerEndpoint
org.apache.servicemix.http.endpoints.HttpSoapConsumerEndpoint
- All Implemented Interfaces:
- Endpoint, HttpEndpointType, HttpProcessor
public class HttpSoapConsumerEndpoint
- extends HttpConsumerEndpoint
- Since:
- 3.2
- Author:
- gnodet
|
Method Summary |
void |
activate()
|
Policy[] |
getPolicies()
|
java.lang.String |
getSoapVersion()
Get the defined SOAP version to use |
org.springframework.core.io.Resource |
getWsdl()
|
boolean |
isUseJbiWrapper()
|
boolean |
isValidateWsdl()
|
protected void |
loadStaticResources()
|
protected void |
mapDefinition(javax.wsdl.Definition def)
|
protected void |
mapImports(javax.wsdl.Definition def,
java.lang.String contextPath)
|
void |
setPolicies(Policy[] policies)
Specifies a list of interceptors that will process messages for the endpoint. |
void |
setSoapVersion(java.lang.String soapVersion)
Specifies the SOAP version to use when generating a wsdl binding for the wsdl of the target endpoint. |
void |
setUseJbiWrapper(boolean useJbiWrapper)
Specifies if the SOAP messages are wrapped in a JBI wrapper. |
void |
setValidateWsdl(boolean validateWsdl)
Specifies in the WSDL is validated against the WS-I basic profile. |
void |
setWsdl(org.springframework.core.io.Resource wsdl)
Specifies the WSDL document defining the messages sent by the endpoint. |
protected void |
useProvidedWsdl()
Populate the description with the provided WSDL |
protected void |
useProxiedWsdl()
Populate the description with the target endpoint WSDL |
void |
validate()
|
protected void |
validateWsdl1()
|
protected void |
validateWsdl2()
|
| Methods inherited from class org.apache.servicemix.http.endpoints.HttpConsumerEndpoint |
addResource, createExchange, deactivate, getAuthMethod, getDefaultMep, getLateResponseStrategy, getLocationURI, getMarshaler, getResource, getServerManager, getSsl, getTimeout, handleStaticResource, isRewriteSoapAddress, process, process, sendAccepted, sendError, sendFault, sendOut, setAuthMethod, setDefaultMep, setLateResponseStrategy, setLocationURI, setMarshaler, setRewriteSoapAddress, setSsl, setTimeout, start, stop, updateSoapLocations |
| Methods inherited from class org.apache.servicemix.common.endpoints.ConsumerEndpoint |
configureExchangeTarget, getRole, getTargetEndpoint, getTargetInterface, getTargetOperation, getTargetService, getTargetUri, setTargetEndpoint, setTargetInterface, setTargetOperation, setTargetService, setTargetUri |
| 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 |
HttpSoapConsumerEndpoint
public HttpSoapConsumerEndpoint()
HttpSoapConsumerEndpoint
public HttpSoapConsumerEndpoint(DefaultComponent component,
javax.jbi.servicedesc.ServiceEndpoint endpoint)
HttpSoapConsumerEndpoint
public HttpSoapConsumerEndpoint(ServiceUnit serviceUnit,
javax.xml.namespace.QName service,
java.lang.String endpoint)
getWsdl
public org.springframework.core.io.Resource getWsdl()
setWsdl
public void setWsdl(org.springframework.core.io.Resource wsdl)
- Specifies the WSDL document defining the messages sent by the endpoint.
- Parameters:
wsdl - a Resource object that points to the WSDL document
isValidateWsdl
public boolean isValidateWsdl()
setValidateWsdl
public void setValidateWsdl(boolean validateWsdl)
- Specifies in the WSDL is validated against the WS-I basic profile.
- Parameters:
validateWsdl - true if WSDL is to be validated
isUseJbiWrapper
public boolean isUseJbiWrapper()
setUseJbiWrapper
public void setUseJbiWrapper(boolean useJbiWrapper)
- Specifies if the SOAP messages are wrapped in a JBI wrapper.
- Parameters:
useJbiWrapper - true if the SOAP messages are wrapped
setSoapVersion
public void setSoapVersion(java.lang.String soapVersion)
- Specifies the SOAP version to use when generating a wsdl binding for the wsdl of the target endpoint.
- Parameters:
soapVersion - the soapVersion to use
getSoapVersion
public java.lang.String getSoapVersion()
- Get the defined SOAP version to use
- Returns:
- the defined SOAP version to use
getPolicies
public Policy[] getPolicies()
setPolicies
public void setPolicies(Policy[] policies)
- Specifies a list of interceptors that will process messages for the endpoint.
- Parameters:
policies - an array of Policy objects
useProvidedWsdl
protected void useProvidedWsdl()
throws java.lang.Exception
- Populate the description with the provided WSDL
- Throws:
javax.jbi.management.DeploymentException - if the provided WSDL can't be read
java.lang.Exception
useProxiedWsdl
protected void useProxiedWsdl()
throws java.lang.Exception
- Populate the description with the target endpoint WSDL
- Throws:
java.lang.Exception - if the proxed WSDL is not found
activate
public void activate()
throws java.lang.Exception
- Specified by:
activate in interface Endpoint- Overrides:
activate in class HttpConsumerEndpoint
- Throws:
java.lang.Exception
validate
public void validate()
throws javax.jbi.management.DeploymentException
- Specified by:
validate in interface Endpoint- Overrides:
validate in class HttpConsumerEndpoint
- Throws:
javax.jbi.management.DeploymentException
loadStaticResources
protected void loadStaticResources()
throws java.lang.Exception
- Overrides:
loadStaticResources in class HttpConsumerEndpoint
- Throws:
java.lang.Exception
validateWsdl1
protected void validateWsdl1()
throws java.lang.Exception
- Throws:
java.lang.Exception
validateWsdl2
protected void validateWsdl2()
throws java.lang.Exception
- Throws:
java.lang.Exception
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
Copyright © 2005-2012 FuseSource. All Rights Reserved.