public class HttpConsumerEndpoint extends ConsumerEndpoint implements HttpProcessor, HttpEndpointType
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MAIN_WSDL |
loggerdefinition, description, endpoint, interfaceName, service, serviceUnit| Constructor and Description |
|---|
HttpConsumerEndpoint() |
HttpConsumerEndpoint(DefaultComponent component,
javax.jbi.servicedesc.ServiceEndpoint endpoint) |
HttpConsumerEndpoint(ServiceUnit serviceUnit,
javax.xml.namespace.QName service,
java.lang.String endpoint) |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
protected void |
addResource(java.lang.String path,
java.lang.Object resource) |
javax.jbi.messaging.MessageExchange |
createExchange(javax.servlet.http.HttpServletRequest request) |
void |
deactivate() |
java.lang.String |
getAuthMethod()
Returns a string describing the authentication scheme being used by an endpoint.
|
java.net.URI |
getDefaultMep()
Returns a URI representing the default message exachange pattern(MEP) used by an endpoint.
|
java.lang.String |
getLateResponseStrategy() |
java.lang.String |
getLocationURI()
Returns the URI at which the endpoint listens for new requests.
|
HttpConsumerMarshaler |
getMarshaler() |
protected java.lang.Object |
getResource(java.lang.String path) |
protected ContextManager |
getServerManager() |
SslParameters |
getSsl() |
long |
getTimeout()
Returns the timeout value for an HTTP endpoint.
|
protected boolean |
handleStaticResource(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handle static resources
|
boolean |
isRewriteSoapAddress() |
protected void |
loadStaticResources() |
void |
process(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
process(javax.jbi.messaging.MessageExchange exchange) |
void |
sendAccepted(javax.jbi.messaging.MessageExchange exchange,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
sendError(javax.jbi.messaging.MessageExchange exchange,
java.lang.Exception error,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
sendFault(javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.Fault fault,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
sendOut(javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.NormalizedMessage outMsg,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
setAuthMethod(java.lang.String authMethod)
Specifies the authentication method used by a secure endpoint.
|
void |
setDefaultMep(java.net.URI defaultMep)
Sets the default message exchange pattern(MEP) for an endpoint.
|
void |
setLateResponseStrategy(java.lang.String value)
Set the strategy to be used for handling a late response from the ESB (i.e.
|
void |
setLocationURI(java.lang.String locationURI)
Sets the URI at which an endpoint listens for requests.
|
void |
setMarshaler(HttpConsumerMarshaler marshaler)
Sets the class used to marshal messages.
|
void |
setRewriteSoapAddress(boolean value)
Toggles the rewriting of the soap address based on the request info.
|
void |
setSsl(SslParameters ssl)
Sets the properties used to configure SSL for the endpoint.
|
void |
setTimeout(long timeout)
Specifies the timeout value for an HTTP consumer endpoint.
|
void |
start() |
void |
stop() |
protected void |
updateSoapLocations(java.lang.String location,
org.w3c.dom.NodeList addresses) |
void |
validate() |
configureExchangeTarget, getRole, getTargetEndpoint, getTargetInterface, getTargetOperation, getTargetService, getTargetUri, setTargetEndpoint, setTargetInterface, setTargetOperation, setTargetService, setTargetUridone, fail, getChannel, getContext, getExchangeFactory, send, sendSyncgetDefinition, getDescription, getEndpoint, getInterfaceName, getKey, getService, getServiceUnit, isExchangeOkay, prepareExchange, setDefinition, setDescription, setEndpoint, setInterfaceName, setService, setServiceUnit, toStringpublic static final java.lang.String MAIN_WSDL
public HttpConsumerEndpoint()
public HttpConsumerEndpoint(DefaultComponent component, javax.jbi.servicedesc.ServiceEndpoint endpoint)
public HttpConsumerEndpoint(ServiceUnit serviceUnit, javax.xml.namespace.QName service, java.lang.String endpoint)
public java.lang.String getLocationURI()
getLocationURI in class ConsumerEndpointpublic void setLocationURI(java.lang.String locationURI)
locationURI - a string representing the URIpublic long getTimeout()
public void setTimeout(long timeout)
timeout - the length time, in milliseconds, to wait before timing outpublic HttpConsumerMarshaler getMarshaler()
public void setMarshaler(HttpConsumerMarshaler marshaler)
marshaler - the marshaler to setpublic java.lang.String getAuthMethod()
getAuthMethod in interface HttpProcessorpublic void setAuthMethod(java.lang.String authMethod)
authMethod - a string naming the authentication scheme a secure endpoint should usepublic SslParameters getSsl()
getSsl in interface HttpProcessorpublic void setSsl(SslParameters ssl)
ssl - an SslParameters object containing the SSL propertiespublic java.net.URI getDefaultMep()
public void setDefaultMep(java.net.URI defaultMep)
JbiConstants.IN_OUT.defaultMep - a URI representing the default MEP of the endpointpublic java.lang.String getLateResponseStrategy()
public void setLateResponseStrategy(java.lang.String value)
error
error will terminate the exchange with an ERROR status and log an exception for the late responsewarning will end the exchange with a DONE status and log a warning for the late response insteadvalue - public boolean isRewriteSoapAddress()
public void setRewriteSoapAddress(boolean value)
When active, the soap address in the wsdl will be updated according
to the protocol, host and port of the request. This is useful when
listening on 0.0.0.0 or when behind a NAT (or reverse-proxy in some
cases).
This function only works on the main wsdl, not in imported wsdl-parts.
This means the service with its port must be declared in the main
wsdl.
By default it is activated.
value - public void activate()
throws java.lang.Exception
activate in interface Endpointactivate in class ConsumerEndpointjava.lang.Exceptionpublic void deactivate()
throws java.lang.Exception
deactivate in interface Endpointdeactivate in class ConsumerEndpointjava.lang.Exceptionpublic void start()
throws java.lang.Exception
start in interface Endpointstart in class SimpleEndpointjava.lang.Exceptionpublic void stop()
throws java.lang.Exception
stop in interface Endpointstop in class SimpleEndpointjava.lang.Exceptionpublic void process(javax.jbi.messaging.MessageExchange exchange)
throws java.lang.Exception
process in interface Endpointprocess in class AbstractEndpointjava.lang.Exceptionpublic void process(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.lang.Exception
process in interface HttpProcessorjava.lang.Exceptionprotected void loadStaticResources()
throws java.lang.Exception
java.lang.Exceptionprotected boolean handleStaticResource(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
request - the http requestresponse - the http responsetrue if the request has been handledjava.io.IOExceptionjavax.servlet.ServletExceptionprotected java.lang.Object getResource(java.lang.String path)
protected void addResource(java.lang.String path,
java.lang.Object resource)
protected ContextManager getServerManager()
public javax.jbi.messaging.MessageExchange createExchange(javax.servlet.http.HttpServletRequest request)
throws java.lang.Exception
java.lang.Exceptionpublic void sendAccepted(javax.jbi.messaging.MessageExchange exchange,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.lang.Exception
java.lang.Exceptionpublic void sendError(javax.jbi.messaging.MessageExchange exchange,
java.lang.Exception error,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.lang.Exception
java.lang.Exceptionpublic void sendFault(javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.Fault fault,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.lang.Exception
java.lang.Exceptionpublic void sendOut(javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.NormalizedMessage outMsg,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.lang.Exception
java.lang.Exceptionpublic void validate()
throws javax.jbi.management.DeploymentException
validate in interface Endpointvalidate in class ConsumerEndpointjavax.jbi.management.DeploymentExceptionprotected void updateSoapLocations(java.lang.String location,
org.w3c.dom.NodeList addresses)
Copyright © 2005-2014 FuseSource. All Rights Reserved.