org.apache.servicemix.http.endpoints
Class HttpSoapProviderEndpoint

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.http.endpoints.HttpProviderEndpoint
                  extended by org.apache.servicemix.http.endpoints.HttpSoapProviderEndpoint
All Implemented Interfaces:
Endpoint, HttpEndpointType

public class HttpSoapProviderEndpoint
extends HttpProviderEndpoint

An HTTP provider endpoint optimized to work with SOAP messages. This type of endpoint requires the use of WSDL.

Since:
3.2
Author:
gnodet

Nested Class Summary
protected  class HttpSoapProviderEndpoint.Wsdl2Validator
          Use an inner class to avoid having a strong dependency on Woden if not needed
 
Nested classes/interfaces inherited from class org.apache.servicemix.http.endpoints.HttpProviderEndpoint
HttpProviderEndpoint.Exchange, HttpProviderEndpoint.SSLManagedHttpClient
 
Field Summary
 
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
HttpSoapProviderEndpoint()
           
HttpSoapProviderEndpoint(DefaultComponent component, javax.jbi.servicedesc.ServiceEndpoint endpoint)
           
HttpSoapProviderEndpoint(ServiceUnit serviceUnit, javax.xml.namespace.QName service, java.lang.String endpoint)
           
 
Method Summary
 Policy[] getPolicies()
           
 org.springframework.core.io.Resource getWsdl()
          Gets the WSDL document needed by an endpoint.
 boolean isUseJbiWrapper()
          Determines if the endpoint wraps SOAP messages in the JBI wrapper.
 boolean isValidateWsdl()
          Determines if the WSDL will be checked for WS-I basic profile compliance.
 void setPolicies(Policy[] policies)
          Specifies a list of interceptors that will process messages for the endpoint.
 void setUseJbiWrapper(boolean useJbiWrapper)
          Specifies if an endpoint wraps SOAP messages in the JBI wrapper.
 void setValidateWsdl(boolean validateWsdl)
          Specifies if an endpoint's WSDL document should be validated for WS-I basic profile compliance.
 void setWsdl(org.springframework.core.io.Resource wsdl)
          Sets the WSDL document needed by an endpoint.
 void validate()
           
protected  void validateWsdl1(HttpSoapProviderMarshaler marshaler)
           
protected  void validateWsdl2(HttpSoapProviderMarshaler marshaler)
           
 
Methods inherited from class org.apache.servicemix.http.endpoints.HttpProviderEndpoint
getClientSoTimeout, getConnectionPool, getCredentials, getLocationURI, getMarshaler, getMaxConnectionsPerAddress, getPrincipal, getProviderExpirationTime, getProxyHost, getProxyPassword, getProxyPort, getProxyUsername, getSsl, handle, handleException, isExpectGzippedResponse, isGzipRequest, process, setClientSoTimeout, setCredentials, setExpectGzippedResponse, setGzipRequest, setLocationURI, setMarshaler, setMaxConnectionsPerAddress, setPrincipal, setProviderExpirationTime, setProxyHost, setProxyPassword, setProxyPort, setProxyUsername, setSsl, start, stop
 
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
 

Constructor Detail

HttpSoapProviderEndpoint

public HttpSoapProviderEndpoint()

HttpSoapProviderEndpoint

public HttpSoapProviderEndpoint(DefaultComponent component,
                                javax.jbi.servicedesc.ServiceEndpoint endpoint)

HttpSoapProviderEndpoint

public HttpSoapProviderEndpoint(ServiceUnit serviceUnit,
                                javax.xml.namespace.QName service,
                                java.lang.String endpoint)
Method Detail

getWsdl

public org.springframework.core.io.Resource getWsdl()
Gets the WSDL document needed by an endpoint.

Returns:
a Resource containing the WSDL document

setWsdl

public void setWsdl(org.springframework.core.io.Resource wsdl)
Sets the WSDL document needed by an endpoint.

Parameters:
wsdl - a Resource containing the WSDL document

isValidateWsdl

public boolean isValidateWsdl()
Determines if the WSDL will be checked for WS-I basic profile compliance.

Returns:
true if the WSDL is to be validated

setValidateWsdl

public void setValidateWsdl(boolean validateWsdl)
Specifies if an endpoint's WSDL document should be validated for WS-I basic profile compliance. Validation provides some assurence that the WSDL will be consumable by most Web services. However, validation is expensive.

Parameters:
validateWsdl - a boolean specifying if the WSDL document is to be validated

isUseJbiWrapper

public boolean isUseJbiWrapper()
Determines if the endpoint wraps SOAP messages in the JBI wrapper.

Returns:
a boolean specifying if the endpoint uses the JBI wrapper

setUseJbiWrapper

public void setUseJbiWrapper(boolean useJbiWrapper)
Specifies if an endpoint wraps SOAP messages in the JBI wrapper.

Parameters:
useJbiWrapper - a boolean specifying if the endpoint should use the JBI wrapper

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

validate

public void validate()
              throws javax.jbi.management.DeploymentException
Specified by:
validate in interface Endpoint
Overrides:
validate in class HttpProviderEndpoint
Throws:
javax.jbi.management.DeploymentException

validateWsdl1

protected void validateWsdl1(HttpSoapProviderMarshaler marshaler)
                      throws java.lang.Exception
Throws:
java.lang.Exception

validateWsdl2

protected void validateWsdl2(HttpSoapProviderMarshaler marshaler)
                      throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2005-2012 FuseSource. All Rights Reserved.