public class ConsumerProcessor extends AbstractProcessor implements SoapExchangeProcessor, HttpProcessor
| Modifier and Type | Field and Description |
|---|---|
protected javax.jbi.messaging.DeliveryChannel |
channel |
protected javax.jbi.component.ComponentContext |
context |
protected java.util.Map<java.lang.String,org.eclipse.jetty.continuation.Continuation> |
continuations |
protected java.lang.Object |
httpContext |
protected LateResponseStrategy |
lateResponseStrategy |
protected java.util.Map<java.lang.String,java.lang.Object> |
mutexes |
protected SoapHelper |
soapHelper |
protected boolean |
started |
protected boolean |
supportAllHttpMethods |
protected int |
suspentionTime |
endpoint, HEADER_CONTENT_LENGTH, HEADER_CONTENT_TYPE, HEADER_SOAP_ACTION| Constructor and Description |
|---|
ConsumerProcessor(HttpEndpoint endpoint) |
| Modifier and Type | Method and Description |
|---|---|
protected javax.jbi.messaging.MessageExchange |
createExchange(javax.servlet.http.HttpServletRequest request) |
protected void |
generateDocument(javax.servlet.http.HttpServletResponse response,
org.w3c.dom.Node node) |
java.lang.String |
getAuthMethod() |
protected java.util.Map<java.lang.String,java.lang.String> |
getHeaders(javax.servlet.http.HttpServletRequest request) |
java.lang.String |
getLateResponseStrategy() |
protected ContextManager |
getServerManager() |
SslParameters |
getSsl() |
protected void |
handleLateResponse(javax.jbi.messaging.MessageExchange exchange) |
protected boolean |
handleStaticResource(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
init() |
boolean |
isSupportAllHttpMethods() |
void |
process(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
process(javax.jbi.messaging.MessageExchange exchange) |
protected void |
sendFault(SoapFault fault,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
setLateResponseStrategy(java.lang.String value)
Set the strategy to be used for handling a late response from the ESB (i.e.
|
void |
setSupportAllHttpMethods(boolean supportAllHttpMethods) |
void |
shutdown() |
void |
start() |
void |
stop() |
getConfigurationprotected java.lang.Object httpContext
protected javax.jbi.component.ComponentContext context
protected javax.jbi.messaging.DeliveryChannel channel
protected SoapHelper soapHelper
protected java.util.Map<java.lang.String,org.eclipse.jetty.continuation.Continuation> continuations
protected java.util.Map<java.lang.String,java.lang.Object> mutexes
protected int suspentionTime
protected boolean started
protected boolean supportAllHttpMethods
protected LateResponseStrategy lateResponseStrategy
public ConsumerProcessor(HttpEndpoint endpoint)
public SslParameters getSsl()
getSsl in interface HttpProcessorpublic java.lang.String getAuthMethod()
getAuthMethod in interface HttpProcessorpublic void process(javax.jbi.messaging.MessageExchange exchange)
throws java.lang.Exception
process in interface SoapExchangeProcessorjava.lang.Exceptionpublic void init()
throws java.lang.Exception
init in interface SoapExchangeProcessorjava.lang.Exceptionpublic void shutdown()
throws java.lang.Exception
shutdown in interface SoapExchangeProcessorjava.lang.Exceptionpublic void start()
throws java.lang.Exception
start in interface SoapExchangeProcessorjava.lang.Exceptionpublic void stop()
throws java.lang.Exception
stop in interface SoapExchangeProcessorjava.lang.Exceptionpublic void process(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.lang.Exception
process in interface HttpProcessorjava.lang.Exceptionprotected javax.jbi.messaging.MessageExchange createExchange(javax.servlet.http.HttpServletRequest request)
throws java.lang.Exception
java.lang.Exceptionprotected boolean handleStaticResource(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.lang.Exception
java.lang.Exceptionprotected void sendFault(SoapFault fault, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
java.lang.Exceptionprotected java.util.Map<java.lang.String,java.lang.String> getHeaders(javax.servlet.http.HttpServletRequest request)
protected ContextManager getServerManager()
protected void generateDocument(javax.servlet.http.HttpServletResponse response,
org.w3c.dom.Node node)
throws java.lang.Exception
java.lang.Exceptionprotected void handleLateResponse(javax.jbi.messaging.MessageExchange exchange)
throws java.lang.Exception
java.lang.Exceptionpublic 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 java.lang.String getLateResponseStrategy()
public boolean isSupportAllHttpMethods()
public void setSupportAllHttpMethods(boolean supportAllHttpMethods)
Copyright © 2005-2015 FuseSource. All Rights Reserved.