| org.apache.commons.httpclient.server.HttpRequestHandler
All known Subclasses: org.apache.commons.httpclient.server.HttpServiceHandler, org.apache.commons.httpclient.server.TransparentProxyRequestHandler, org.apache.commons.httpclient.server.ProxyAuthRequestHandler, org.apache.commons.httpclient.server.ProxyRequestHandler, org.apache.commons.httpclient.server.AuthRequestHandler, org.apache.commons.httpclient.server.HttpRequestHandlerChain,
HttpRequestHandler | public interface HttpRequestHandler (Code) | | Defines an HTTP request handler for the SimpleHttpServer
author: Christian Kohlschuetter author: Oleg Kalnichevski |
Method Summary | |
public boolean | processRequest(SimpleHttpServerConnection conn, SimpleRequest request) The request handler is asked to process this request.
If it is not capable/interested in processing it, this call should
be simply ignored.
Any modification of the output stream (via conn.getWriter() )
by this request handler will stop the execution chain and return the output
to the client.
The handler may also rewrite the request parameters (this is useful in
HttpRequestHandlerChain structures).
Parameters: conn - The Connection object to which this request belongs to. Parameters: request - The request object. |
processRequest | public boolean processRequest(SimpleHttpServerConnection conn, SimpleRequest request) throws IOException(Code) | | The request handler is asked to process this request.
If it is not capable/interested in processing it, this call should
be simply ignored.
Any modification of the output stream (via conn.getWriter() )
by this request handler will stop the execution chain and return the output
to the client.
The handler may also rewrite the request parameters (this is useful in
HttpRequestHandlerChain structures).
Parameters: conn - The Connection object to which this request belongs to. Parameters: request - The request object. true if this handler handled the request and no other handlers in the chain should be called, false otherwise. throws: IOException - |
|
|