public class DeliveryAgent extends Object
Constructor and Description |
---|
DeliveryAgent(TargetConfiguration targetConfiguration,
TargetConnections targetConnections,
ProxyConfig proxyConfig)
Create a delivery agent with the target configuration and connection management.
|
Modifier and Type | Method and Description |
---|---|
void |
connected(org.apache.http.conn.routing.HttpRoute route,
org.apache.http.nio.NHttpClientConnection conn)
Notification for a connection availability.
|
void |
errorConnecting(org.apache.http.conn.routing.HttpRoute route,
int errorCode,
String message) |
void |
submit(org.apache.axis2.context.MessageContext msgContext,
org.apache.axis2.addressing.EndpointReference epr)
This method queues the message for delivery.
|
public DeliveryAgent(TargetConfiguration targetConfiguration, TargetConnections targetConnections, ProxyConfig proxyConfig)
targetConfiguration
- configuration of the sendertargetConnections
- connection managementpublic void submit(org.apache.axis2.context.MessageContext msgContext, org.apache.axis2.addressing.EndpointReference epr) throws org.apache.axis2.AxisFault
msgContext
- the message context to be sentepr
- the endpoint to which the message should be sentorg.apache.axis2.AxisFault
- if an error occurspublic void errorConnecting(org.apache.http.conn.routing.HttpRoute route, int errorCode, String message)
public void connected(org.apache.http.conn.routing.HttpRoute route, org.apache.http.nio.NHttpClientConnection conn)
host
- name of the remote hostport
- remote port numberCopyright © 2005–2024 Apache Software Foundation. All rights reserved.