Class PassThroughHttpSender
java.lang.Object
org.apache.axis2.handlers.AbstractHandler
org.apache.synapse.transport.passthru.PassThroughHttpSender
- All Implemented Interfaces:
org.apache.axis2.engine.Handler,org.apache.axis2.transport.TransportSender
- Direct Known Subclasses:
PassThroughHttpSSLSender
public class PassThroughHttpSender
extends org.apache.axis2.handlers.AbstractHandler
implements org.apache.axis2.transport.TransportSender
PassThroughHttpSender for Synapse based on HttpCore and NIO extensions
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.axis2.engine.Handler
org.apache.axis2.engine.Handler.InvocationResponse -
Field Summary
FieldsFields inherited from class org.apache.axis2.handlers.AbstractHandler
handlerDesc -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPreserveHttpHeader(String headerName) voidcleanup(org.apache.axis2.context.MessageContext messageContext) protected Schemevoidinit(org.apache.axis2.context.ConfigurationContext configurationContext, org.apache.axis2.description.TransportOutDescription transportOutDescription) protected ClientConnFactoryBuilderinitConnFactoryBuilder(org.apache.axis2.description.TransportOutDescription transportOut, org.apache.axis2.context.ConfigurationContext configurationContext) org.apache.axis2.engine.Handler.InvocationResponseinvoke(org.apache.axis2.context.MessageContext msgContext) voidmaintenanceShutdown(long millis) voidonAppError(org.apache.axis2.context.MessageContext msgContext) This method will close the target connection upon endpoint timeout.voidpause()voidreloadDynamicSSLConfig(org.apache.axis2.description.TransportOutDescription transport) Reload SSL configurations from configurations, reset all connections and restart the threadvoidreloadSSL(org.apache.axis2.description.TransportOutDescription transport) voidremovePreserveHttpHeader(String headerName) voidresume()voidsetContentType(org.apache.axis2.context.MessageContext msgContext, SourceResponse sourceResponse, org.apache.axis2.transport.MessageFormatter formatter, org.apache.axiom.om.OMOutputFormat format, SourceConfiguration sourceConfiguration) Set content type headers along with the charactor encoding if content type header is not preservedvoidstop()voidsubmitResponse(org.apache.axis2.context.MessageContext msgContext) Methods inherited from class org.apache.axis2.handlers.AbstractHandler
cleanup, flowComplete, getHandlerDesc, getName, getParameter, init, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.axis2.engine.Handler
cleanup, flowComplete, getHandlerDesc, getName, getParameter, init
-
Field Details
-
log
protected org.apache.commons.logging.Log log
-
-
Constructor Details
-
PassThroughHttpSender
public PassThroughHttpSender()
-
-
Method Details
-
getScheme
-
initConnFactoryBuilder
protected ClientConnFactoryBuilder initConnFactoryBuilder(org.apache.axis2.description.TransportOutDescription transportOut, org.apache.axis2.context.ConfigurationContext configurationContext) throws org.apache.axis2.AxisFault - Throws:
org.apache.axis2.AxisFault
-
init
public void init(org.apache.axis2.context.ConfigurationContext configurationContext, org.apache.axis2.description.TransportOutDescription transportOutDescription) throws org.apache.axis2.AxisFault - Specified by:
initin interfaceorg.apache.axis2.transport.TransportSender- Throws:
org.apache.axis2.AxisFault
-
cleanup
public void cleanup(org.apache.axis2.context.MessageContext messageContext) throws org.apache.axis2.AxisFault - Specified by:
cleanupin interfaceorg.apache.axis2.transport.TransportSender- Throws:
org.apache.axis2.AxisFault
-
stop
public void stop()- Specified by:
stopin interfaceorg.apache.axis2.transport.TransportSender
-
invoke
public org.apache.axis2.engine.Handler.InvocationResponse invoke(org.apache.axis2.context.MessageContext msgContext) throws org.apache.axis2.AxisFault - Specified by:
invokein interfaceorg.apache.axis2.engine.Handler- Throws:
org.apache.axis2.AxisFault
-
addPreserveHttpHeader
-
removePreserveHttpHeader
-
submitResponse
public void submitResponse(org.apache.axis2.context.MessageContext msgContext) throws IOException, org.apache.http.HttpException - Throws:
IOExceptionorg.apache.http.HttpException
-
onAppError
public void onAppError(org.apache.axis2.context.MessageContext msgContext) This method will close the target connection upon endpoint timeout.- Specified by:
onAppErrorin interfaceorg.apache.axis2.transport.TransportSender- Parameters:
msgContext- The outgoing message context sent via the sender
-
pause
public void pause() throws org.apache.axis2.AxisFault- Throws:
org.apache.axis2.AxisFault
-
resume
public void resume() throws org.apache.axis2.AxisFault- Throws:
org.apache.axis2.AxisFault
-
maintenanceShutdown
public void maintenanceShutdown(long millis) throws org.apache.axis2.AxisFault - Throws:
org.apache.axis2.AxisFault
-
reloadDynamicSSLConfig
public void reloadDynamicSSLConfig(org.apache.axis2.description.TransportOutDescription transport) throws org.apache.axis2.AxisFault Reload SSL configurations from configurations, reset all connections and restart the thread- Parameters:
transport- TransportOutDescription of the configuration- Throws:
org.apache.axis2.AxisFault
-
reloadSSL
public void reloadSSL(org.apache.axis2.description.TransportOutDescription transport) throws org.apache.axis2.AxisFault - Throws:
org.apache.axis2.AxisFault
-
setContentType
public void setContentType(org.apache.axis2.context.MessageContext msgContext, SourceResponse sourceResponse, org.apache.axis2.transport.MessageFormatter formatter, org.apache.axiom.om.OMOutputFormat format, SourceConfiguration sourceConfiguration) Set content type headers along with the charactor encoding if content type header is not preserved- Parameters:
msgContext- message contextsourceResponse- source responseformatter- response formatterformat- response format
-