public class SourceHandler extends Object implements org.apache.http.nio.NHttpServerEventHandler
Constructor and Description |
---|
SourceHandler(SourceConfiguration sourceConfiguration) |
Modifier and Type | Method and Description |
---|---|
void |
closed(org.apache.http.nio.NHttpServerConnection conn) |
void |
commitResponseHideExceptions(org.apache.http.nio.NHttpServerConnection conn,
org.apache.http.HttpResponse response)
Commit the response to the connection.
|
void |
connected(org.apache.http.nio.NHttpServerConnection conn) |
void |
endOfInput(org.apache.http.nio.NHttpServerConnection conn) |
void |
exception(org.apache.http.nio.NHttpServerConnection conn,
Exception e) |
void |
exception(org.apache.http.nio.NHttpServerConnection conn,
org.apache.http.HttpException e) |
void |
exception(org.apache.http.nio.NHttpServerConnection conn,
IOException e) |
void |
inputReady(org.apache.http.nio.NHttpServerConnection conn,
org.apache.http.nio.ContentDecoder decoder) |
void |
outputReady(org.apache.http.nio.NHttpServerConnection conn,
org.apache.http.nio.ContentEncoder encoder) |
void |
requestReceived(org.apache.http.nio.NHttpServerConnection conn) |
void |
responseReady(org.apache.http.nio.NHttpServerConnection conn) |
void |
timeout(org.apache.http.nio.NHttpServerConnection conn) |
public SourceHandler(SourceConfiguration sourceConfiguration)
public void connected(org.apache.http.nio.NHttpServerConnection conn)
connected
in interface org.apache.http.nio.NHttpServerEventHandler
public void requestReceived(org.apache.http.nio.NHttpServerConnection conn)
requestReceived
in interface org.apache.http.nio.NHttpServerEventHandler
public void inputReady(org.apache.http.nio.NHttpServerConnection conn, org.apache.http.nio.ContentDecoder decoder)
inputReady
in interface org.apache.http.nio.NHttpServerEventHandler
public void responseReady(org.apache.http.nio.NHttpServerConnection conn)
responseReady
in interface org.apache.http.nio.NHttpServerEventHandler
public void outputReady(org.apache.http.nio.NHttpServerConnection conn, org.apache.http.nio.ContentEncoder encoder)
outputReady
in interface org.apache.http.nio.NHttpServerEventHandler
public void endOfInput(org.apache.http.nio.NHttpServerConnection conn) throws IOException
endOfInput
in interface org.apache.http.nio.NHttpServerEventHandler
IOException
public void exception(org.apache.http.nio.NHttpServerConnection conn, Exception e)
exception
in interface org.apache.http.nio.NHttpServerEventHandler
public void exception(org.apache.http.nio.NHttpServerConnection conn, IOException e)
public void exception(org.apache.http.nio.NHttpServerConnection conn, org.apache.http.HttpException e)
public void timeout(org.apache.http.nio.NHttpServerConnection conn)
timeout
in interface org.apache.http.nio.NHttpServerEventHandler
public void closed(org.apache.http.nio.NHttpServerConnection conn)
closed
in interface org.apache.http.nio.NHttpServerEventHandler
public void commitResponseHideExceptions(org.apache.http.nio.NHttpServerConnection conn, org.apache.http.HttpResponse response)
conn
- the connection being processedresponse
- the response to commit over the connectionCopyright © 2005-2017 Apache Software Foundation. All Rights Reserved.