org.apache.axis2.transport.http.server
Interface HttpRequestHandler

All Known Implementing Classes:
AuthRequestHandler, HttpRequestHandlerChain, HttpServiceHandler, HTTPWorker, ProxyAuthRequestHandler, ProxyRequestHandler, TransparentProxyRequestHandler

public interface HttpRequestHandler

Defines an HTTP request handler for the SimpleHttpServer


Method Summary
 boolean processRequest(SimpleHttpServerConnection conn, SimpleRequest request)
          The request handler is asked to process this request.
 

Method Detail

processRequest

public boolean processRequest(SimpleHttpServerConnection conn,
                              SimpleRequest request)
                       throws java.io.IOException
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.
request - The request object.
Returns:
true if this handler handled the request and no other handlers in the chain should be called, false otherwise.
Throws:
java.io.IOException