Package org.apache.axis2.transport.http
Class AbstractHTTPTransportSender
- java.lang.Object
-
- org.apache.axis2.handlers.AbstractHandler
-
- org.apache.axis2.transport.http.AbstractHTTPTransportSender
-
- All Implemented Interfaces:
Handler
,TransportSender
,HTTPTransportSender
- Direct Known Subclasses:
HTTPClient4TransportSender
public abstract class AbstractHTTPTransportSender extends AbstractHandler implements HTTPTransportSender
Base class for Apache HttpClient (3.1 or 4.x) based transport senders.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.axis2.engine.Handler
Handler.InvocationResponse
-
-
Field Summary
-
Fields inherited from class org.apache.axis2.handlers.AbstractHandler
handlerDesc
-
-
Constructor Summary
Constructors Constructor Description AbstractHTTPTransportSender()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract HTTPSender
createHTTPSender()
void
init(ConfigurationContext confContext, TransportOutDescription transportOut)
InitializeHandler.InvocationResponse
invoke(MessageContext msgContext)
This method will be called on each registered handler when a message needs to be processed.static boolean
isGeneratedName(String actionString)
void
setHTTPClientVersion(ConfigurationContext configurationContext)
void
stop()
-
Methods inherited from class org.apache.axis2.handlers.AbstractHandler
flowComplete, getHandlerDesc, getName, getParameter, init, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.axis2.engine.Handler
flowComplete, getHandlerDesc, getName, getParameter, init
-
Methods inherited from interface org.apache.axis2.kernel.TransportSender
cleanup
-
-
-
-
Method Detail
-
init
public void init(ConfigurationContext confContext, TransportOutDescription transportOut) throws AxisFault
Description copied from interface:TransportSender
Initialize- Specified by:
init
in interfaceTransportSender
- Throws:
AxisFault
-
stop
public void stop()
- Specified by:
stop
in interfaceTransportSender
-
invoke
public Handler.InvocationResponse invoke(MessageContext msgContext) throws AxisFault
Description copied from interface:Handler
This method will be called on each registered handler when a message needs to be processed. If the message processing is paused by the handler, then this method will be called again for the handler that paused the processing once it is resumed. This method may be called concurrently from multiple threads. Handlers that want to determine the type of message that is to be processed (e.g. response vs request, inbound vs. outbound, etc.) can retrieve that information from the MessageContext via MessageContext.getFLOW() and MessageContext.getAxisOperation().getMessageExchangePattern() APIs.
-
createHTTPSender
protected abstract HTTPSender createHTTPSender()
-
isGeneratedName
public static boolean isGeneratedName(String actionString)
- Parameters:
actionString
-- Returns:
- true if the specified String represents a generated (anonymous name)
-
setHTTPClientVersion
public void setHTTPClientVersion(ConfigurationContext configurationContext)
- Specified by:
setHTTPClientVersion
in interfaceHTTPTransportSender
-
-