net.sf.j2ep.requesthandlers
Class MaxForwardRequestHandler

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

public class MaxForwardRequestHandler
extends RequestHandlerBase

Handler for the OPTIONS and TRACE method.

Author:
Anders Nyman

Constructor Summary
MaxForwardRequestHandler()
           
 
Method Summary
 org.apache.commons.httpclient.HttpMethod process(HttpServletRequest request, java.lang.String url)
          Sets the headers and does some checking for if this request is meant for the server or for the proxy.
 
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

MaxForwardRequestHandler

public MaxForwardRequestHandler()
Method Detail

process

public org.apache.commons.httpclient.HttpMethod process(HttpServletRequest request,
                                                        java.lang.String url)
                                                 throws java.io.IOException
Sets the headers and does some checking for if this request is meant for the server or for the proxy. This check is done by looking at the Max-Forwards header.

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:
java.io.IOException - An exception is thrown when there is a problem with the input supplied by the request
See Also:
net.sf.j2ep.model.RequestHandler#process(javax.servlet.http.HttpServletRequest, java.lang.String)