org.apache.servicemix.http.endpoints
Class HttpSoapConsumerEndpoint

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.ConsumerEndpoint
              extended by org.apache.servicemix.http.endpoints.HttpConsumerEndpoint
                  extended by org.apache.servicemix.http.endpoints.HttpSoapConsumerEndpoint
All Implemented Interfaces:
org.apache.servicemix.common.Endpoint, HttpEndpointType, HttpProcessor

public class HttpSoapConsumerEndpoint
extends HttpConsumerEndpoint

Since:
3.2
Author:
gnodet

Nested Class Summary
protected  class HttpSoapConsumerEndpoint.Wsdl2Validator
          Use an inner class to avoid having a strong dependency on Woden if not needed
 
Field Summary
 
Fields inherited from class org.apache.servicemix.http.endpoints.HttpConsumerEndpoint
MAIN_WSDL
 
Fields inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint
definition, description, endpoint, interfaceName, logger, service, serviceUnit
 
Constructor Summary
HttpSoapConsumerEndpoint()
           
HttpSoapConsumerEndpoint(org.apache.servicemix.common.DefaultComponent component, javax.jbi.servicedesc.ServiceEndpoint endpoint)
           
HttpSoapConsumerEndpoint(org.apache.servicemix.common.ServiceUnit serviceUnit, QName service, String endpoint)
           
 
Method Summary
 org.apache.servicemix.soap.api.Policy[] getPolicies()
           
 org.springframework.core.io.Resource getWsdl()
           
 boolean isUseJbiWrapper()
           
 boolean isValidateWsdl()
           
protected  void loadStaticResources()
           
 void setPolicies(org.apache.servicemix.soap.api.Policy[] policies)
          Specifies a list of interceptors that will process messages for the 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.
 void validate()
           
protected  void validateWsdl1(HttpSoapConsumerMarshaler marshaler)
           
protected  void validateWsdl2(HttpSoapConsumerMarshaler marshaler)
           
 
Methods inherited from class org.apache.servicemix.http.endpoints.HttpConsumerEndpoint
activate, addResource, createExchange, deactivate, getAuthMethod, getDefaultMep, getLocationURI, getMarshaler, getResource, getServerManager, getSsl, getTimeout, handleStaticResource, process, process, sendAccepted, sendError, sendFault, sendOut, setAuthMethod, setDefaultMep, setLocationURI, setMarshaler, setSsl, setTimeout, start, stop
 
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.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

HttpSoapConsumerEndpoint

public HttpSoapConsumerEndpoint()

HttpSoapConsumerEndpoint

public HttpSoapConsumerEndpoint(org.apache.servicemix.common.DefaultComponent component,
                                javax.jbi.servicedesc.ServiceEndpoint endpoint)

HttpSoapConsumerEndpoint

public HttpSoapConsumerEndpoint(org.apache.servicemix.common.ServiceUnit serviceUnit,
                                QName service,
                                String endpoint)
Method Detail

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

getPolicies

public org.apache.servicemix.soap.api.Policy[] getPolicies()

setPolicies

public void setPolicies(org.apache.servicemix.soap.api.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 org.apache.servicemix.common.Endpoint
Overrides:
validate in class HttpConsumerEndpoint
Throws:
javax.jbi.management.DeploymentException

loadStaticResources

protected void loadStaticResources()
Overrides:
loadStaticResources in class HttpConsumerEndpoint

validateWsdl1

protected void validateWsdl1(HttpSoapConsumerMarshaler marshaler)
                      throws Exception
Throws:
Exception

validateWsdl2

protected void validateWsdl2(HttpSoapConsumerMarshaler marshaler)
                      throws Exception
Throws:
Exception


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