public class TargetHandler extends Object implements org.apache.http.nio.NHttpClientEventHandler
Constructor and Description |
---|
TargetHandler(DeliveryAgent deliveryAgent,
TargetConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
void |
closed(org.apache.http.nio.NHttpClientConnection conn) |
void |
connected(org.apache.http.nio.NHttpClientConnection conn,
Object o) |
void |
endOfInput(org.apache.http.nio.NHttpClientConnection conn) |
void |
exception(org.apache.http.nio.NHttpClientConnection conn,
Exception e) |
void |
exception(org.apache.http.nio.NHttpClientConnection conn,
org.apache.http.HttpException e) |
void |
exception(org.apache.http.nio.NHttpClientConnection conn,
IOException e) |
TargetConfiguration |
getTargetConfiguration()
Get the associated configuration of the
TargetHandler |
void |
inputReady(org.apache.http.nio.NHttpClientConnection conn,
org.apache.http.nio.ContentDecoder decoder) |
void |
outputReady(org.apache.http.nio.NHttpClientConnection conn,
org.apache.http.nio.ContentEncoder encoder) |
void |
requestReady(org.apache.http.nio.NHttpClientConnection conn) |
void |
responseReceived(org.apache.http.nio.NHttpClientConnection conn) |
void |
timeout(org.apache.http.nio.NHttpClientConnection conn) |
public TargetHandler(DeliveryAgent deliveryAgent, TargetConfiguration configuration)
public void connected(org.apache.http.nio.NHttpClientConnection conn, Object o)
connected
in interface org.apache.http.nio.NHttpClientEventHandler
public void requestReady(org.apache.http.nio.NHttpClientConnection conn)
requestReady
in interface org.apache.http.nio.NHttpClientEventHandler
public void outputReady(org.apache.http.nio.NHttpClientConnection conn, org.apache.http.nio.ContentEncoder encoder)
outputReady
in interface org.apache.http.nio.NHttpClientEventHandler
public void responseReceived(org.apache.http.nio.NHttpClientConnection conn)
responseReceived
in interface org.apache.http.nio.NHttpClientEventHandler
public void inputReady(org.apache.http.nio.NHttpClientConnection conn, org.apache.http.nio.ContentDecoder decoder)
inputReady
in interface org.apache.http.nio.NHttpClientEventHandler
public void closed(org.apache.http.nio.NHttpClientConnection conn)
closed
in interface org.apache.http.nio.NHttpClientEventHandler
public void exception(org.apache.http.nio.NHttpClientConnection conn, IOException e)
public void exception(org.apache.http.nio.NHttpClientConnection conn, org.apache.http.HttpException e)
public void timeout(org.apache.http.nio.NHttpClientConnection conn)
timeout
in interface org.apache.http.nio.NHttpClientEventHandler
public void endOfInput(org.apache.http.nio.NHttpClientConnection conn) throws IOException
endOfInput
in interface org.apache.http.nio.NHttpClientEventHandler
IOException
public void exception(org.apache.http.nio.NHttpClientConnection conn, Exception e)
exception
in interface org.apache.http.nio.NHttpClientEventHandler
public TargetConfiguration getTargetConfiguration()
TargetHandler
TargetConfiguration
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.