|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.axis2.handlers.AbstractHandler
org.apache.synapse.transport.base.AbstractTransportSender
public abstract class AbstractTransportSender
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.axis2.engine.Handler |
|---|
Handler.InvocationResponse |
| Field Summary | |
|---|---|
protected ConfigurationContext |
cfgCtx
the axis2 configuration context |
protected AxisEngine |
engine
an axis2 engine over the above configuration context to process messages |
protected org.apache.commons.logging.Log |
log
the reference to the actual commons logger to be used for log messages |
protected MetricsCollector |
metrics
Metrics collector for the sender |
protected String |
transportName
the name of the transport |
| Fields inherited from class org.apache.axis2.handlers.AbstractHandler |
|---|
handlerDesc |
| Constructor Summary | |
|---|---|
AbstractTransportSender()
|
|
| Method Summary | |
|---|---|
void |
cleanup(MessageContext msgContext)
|
MessageContext |
createResponseMessageContext(MessageContext outMsgCtx)
Create a new axis MessageContext for an incoming response message through this transport, for the given outgoing message |
int |
getActiveThreadCount()
Returns the number of active threads processing messages |
long |
getBytesReceived()
|
long |
getBytesSent()
|
long |
getFaultsReceiving()
|
long |
getFaultsSending()
|
long |
getMessagesReceived()
|
long |
getMessagesSent()
|
int |
getQueueSize()
Return the number of requests queued in the thread pool |
String |
getTransportName()
|
protected void |
handleException(String msg)
|
protected void |
handleException(String msg,
Exception e)
|
void |
handleIncomingMessage(MessageContext msgCtx,
Map trpHeaders,
String soapAction,
String contentType)
Process a new incoming message (Response) through the axis engine |
void |
init(ConfigurationContext cfgCtx,
TransportOutDescription transportOut)
Initialize the generic transport sender. |
Handler.InvocationResponse |
invoke(MessageContext msgContext)
|
protected void |
logException(String msg,
Exception e)
|
void |
maintenenceShutdown(long millis)
|
void |
pause()
|
void |
resume()
|
abstract void |
sendMessage(MessageContext msgCtx,
String targetEPR,
OutTransportInfo outTransportInfo)
|
void |
setTransportName(String transportName)
|
void |
stop()
|
protected boolean |
waitForSynchronousResponse(MessageContext msgCtx)
Should the transport sender wait for a synchronous response to be received? |
| Methods inherited from class org.apache.axis2.handlers.AbstractHandler |
|---|
cleanup, 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 |
|---|
cleanup, flowComplete, getHandlerDesc, getName, getParameter, init |
| Field Detail |
|---|
protected org.apache.commons.logging.Log log
protected String transportName
protected ConfigurationContext cfgCtx
protected AxisEngine engine
protected MetricsCollector metrics
| Constructor Detail |
|---|
public AbstractTransportSender()
| Method Detail |
|---|
public void init(ConfigurationContext cfgCtx,
TransportOutDescription transportOut)
throws AxisFault
init in interface TransportSendercfgCtx - the axis configuration contexttransportOut - the transport-out description
AxisFault - on errorpublic void stop()
stop in interface TransportSender
public void cleanup(MessageContext msgContext)
throws AxisFault
cleanup in interface TransportSenderAxisFault
public abstract void sendMessage(MessageContext msgCtx,
String targetEPR,
OutTransportInfo outTransportInfo)
throws AxisFault
AxisFault
public Handler.InvocationResponse invoke(MessageContext msgContext)
throws AxisFault
invoke in interface HandlerAxisFault
public void handleIncomingMessage(MessageContext msgCtx,
Map trpHeaders,
String soapAction,
String contentType)
msgCtx - the axis MessageContexttrpHeaders - the map containing transport level message headerssoapAction - the optional soap action or nullcontentType - the optional content-type for the messagepublic MessageContext createResponseMessageContext(MessageContext outMsgCtx)
outMsgCtx - the outgoing message
protected boolean waitForSynchronousResponse(MessageContext msgCtx)
msgCtx - the outgoing message context
public String getTransportName()
public void setTransportName(String transportName)
protected void handleException(String msg,
Exception e)
throws AxisFault
AxisFault
protected void handleException(String msg)
throws AxisFault
AxisFault
protected void logException(String msg,
Exception e)
public void pause()
throws AxisFault
AxisFault
public void resume()
throws AxisFault
AxisFault
public void maintenenceShutdown(long millis)
throws AxisFault
AxisFaultpublic int getActiveThreadCount()
public int getQueueSize()
public long getMessagesReceived()
public long getFaultsReceiving()
public long getBytesReceived()
public long getMessagesSent()
public long getFaultsSending()
public long getBytesSent()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||