|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.j2ep.responsehandlers.ResponseHandlerBase
net.sf.j2ep.responsehandlers.TraceResponseHandler
public class TraceResponseHandler
A handler for the TRACE method. This handler will make a check if the trace is directed to the proxy or a underlying server. If the trace directed to the proxy the response will be made in compliance to HTTP 1.1 RFC.
| Field Summary |
|---|
| Fields inherited from class net.sf.j2ep.responsehandlers.ResponseHandlerBase |
|---|
method |
| Constructor Summary | |
|---|---|
TraceResponseHandler(org.apache.commons.httpclient.methods.TraceMethod method)
Basic constructor setting the method, and also checks if the request is targeted to the proxy or the underlying server. |
|
| Method Summary | |
|---|---|
int |
getStatusCode()
Returns 200 if the request is targeted to the proxy otherwise the normal status code is returned. |
void |
process(HttpServletResponse response)
Will either respond with data from the underlying server or the proxy's own data. |
| Methods inherited from class net.sf.j2ep.responsehandlers.ResponseHandlerBase |
|---|
close, sendStreamToClient, setHeaders |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TraceResponseHandler(org.apache.commons.httpclient.methods.TraceMethod method)
method - The http method| Method Detail |
|---|
public void process(HttpServletResponse response)
throws java.io.IOException
process in interface ResponseHandlerprocess in class ResponseHandlerBaseresponse - The response to process
java.io.IOException - An exception is thrown when there is a problem with writing the outputnet.sf.j2ep.model.ResponseHandler#process(javax.servlet.http.HttpServletResponse)public int getStatusCode()
getStatusCode in interface ResponseHandlergetStatusCode in class ResponseHandlerBaseResponseHandler.getStatusCode()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||