| java.lang.Object org.apache.axis2.transport.nhttp.ServerHandler
ServerHandler | public class ServerHandler implements NHttpServiceHandler(Code) | | The server connection handler. An instance of this class is used by each IOReactor, to
process every connection. Hence this class should not store any data related to a single
connection - as this is being shared.
|
Method Summary | |
public void | closed(NHttpServerConnection conn) | public void | commitResponse(NHttpServerConnection conn, HttpResponse response) Commit the response to the connection. | public void | connected(NHttpServerConnection conn) | public void | exception(NHttpServerConnection conn, HttpException e) | public void | exception(NHttpServerConnection conn, IOException e) | public void | inputReady(NHttpServerConnection conn, ContentDecoder decoder) | public void | outputReady(NHttpServerConnection conn, ContentEncoder encoder) | public void | requestReceived(NHttpServerConnection conn) | public void | responseReady(NHttpServerConnection conn) | public void | timeout(NHttpServerConnection conn) |
closed | public void closed(NHttpServerConnection conn)(Code) | | |
commitResponse | public void commitResponse(NHttpServerConnection conn, HttpResponse response)(Code) | | Commit the response to the connection. Processes the response through the configured
HttpProcessor and submits it to be sent out
Parameters: conn - the connection being processed Parameters: response - the response to commit over the connection |
connected | public void connected(NHttpServerConnection conn)(Code) | | |
exception | public void exception(NHttpServerConnection conn, HttpException e)(Code) | | Handle HTTP Protocol violations with an error response
Parameters: conn - the connection being processed Parameters: e - the exception encountered |
exception | public void exception(NHttpServerConnection conn, IOException e)(Code) | | Handle IO errors while reading or writing to underlying channels
Parameters: conn - the connection being processed Parameters: e - the exception encountered |
inputReady | public void inputReady(NHttpServerConnection conn, ContentDecoder decoder)(Code) | | Process ready input by writing it into the Pipe
Parameters: conn - the connection being processed Parameters: decoder - the content decoder in use |
outputReady | public void outputReady(NHttpServerConnection conn, ContentEncoder encoder)(Code) | | Process ready output by writing into the channel
Parameters: conn - the connection being processed Parameters: encoder - the content encoder in use |
requestReceived | public void requestReceived(NHttpServerConnection conn)(Code) | | Process a new incoming request
Parameters: conn - the connection |
responseReady | public void responseReady(NHttpServerConnection conn)(Code) | | |
timeout | public void timeout(NHttpServerConnection conn)(Code) | | Handle connection timeouts by shutting down the connections
Parameters: conn - the connection being processed |
|
|