net.sf.j2ep.requesthandlers
Class BasicRequestHandler

java.lang.Object
  extended by net.sf.j2ep.requesthandlers.RequestHandlerBase
      extended by net.sf.j2ep.requesthandlers.BasicRequestHandler
All Implemented Interfaces:
RequestHandler

public class BasicRequestHandler
extends RequestHandlerBase

A handler for GET, HEAD, DELETE. Since these methods basically only will need the headers set they can be handled by the same handler.

Author:
Anders Nyman

Constructor Summary
BasicRequestHandler()
           
 
Method Summary
 org.apache.commons.httpclient.HttpMethod process(HttpServletRequest request, java.lang.String url)
          Will only set the headers.
 
Methods inherited from class net.sf.j2ep.requesthandlers.RequestHandlerBase
addBannedHeader, addBannedHeaders, setHeaders
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicRequestHandler

public BasicRequestHandler()
Method Detail

process

public org.apache.commons.httpclient.HttpMethod process(HttpServletRequest request,
                                                        java.lang.String url)
                                                 throws org.apache.commons.httpclient.HttpException
Will only set the headers.

Specified by:
process in interface RequestHandler
Specified by:
process in class RequestHandlerBase
Parameters:
request - The request we are processing
url - URL to bind the method to
Returns:
The method we have created
Throws:
org.apache.commons.httpclient.HttpException
See Also:
net.sf.j2ep.model.RequestHandler#process(javax.servlet.http.HttpServletRequest, java.lang.String)