public class DeliveryAgent extends Object
Constructor and Description |
---|
DeliveryAgent(TargetConfiguration targetConfiguration,
TargetConnections targetConnections)
Create a delivery agent with the target configuration and connection management.
|
Modifier and Type | Method and Description |
---|---|
void |
connected(String host,
int port,
org.apache.http.nio.NHttpClientConnection conn)
Notification for a connection availability.
|
void |
errorConnecting(String host,
int port,
int errorCode,
String message) |
void |
submit(org.apache.axis2.context.MessageContext msgContext,
String host,
int port)
This method queues the message for delivery.
|
public DeliveryAgent(TargetConfiguration targetConfiguration, TargetConnections targetConnections)
targetConfiguration
- configuration of the sendertargetConnections
- connection managementpublic void submit(org.apache.axis2.context.MessageContext msgContext, String host, int port) throws org.apache.axis2.AxisFault
msgContext
- the message context to be senthost
- host name of eprport
- port of the of eprorg.apache.axis2.AxisFault
- if an error occurspublic void connected(String host, int port, org.apache.http.nio.NHttpClientConnection conn)
host
- name of the remote hostport
- remote port numberconn
- connection made available to process the requestCopyright © 2005-2017 Apache Software Foundation. All Rights Reserved.