|
|||||||||
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.OptionsResponseHandler
public class OptionsResponseHandler
Handler for the OPTIONS method. Will process the Allow header so that no methods that the backing server can handle but we can't are being sent to the client.
Field Summary |
---|
Fields inherited from class net.sf.j2ep.responsehandlers.ResponseHandlerBase |
---|
method |
Constructor Summary | |
---|---|
OptionsResponseHandler(org.apache.commons.httpclient.methods.OptionsMethod method)
Constructor checking if we should handle the Allow header ourself or respond with the backing servers header. |
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 check if we are to handle this request, if so the http methods allowed by this proxy is returned in the Allow header. |
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 OptionsResponseHandler(org.apache.commons.httpclient.methods.OptionsMethod method)
method
- The method for this responseMethod Detail |
---|
public void process(HttpServletResponse response)
process
in interface ResponseHandler
process
in class ResponseHandlerBase
response
- The response to processnet.sf.j2ep.model.ResponseHandler#process(javax.servlet.http.HttpServletResponse)
public int getStatusCode()
getStatusCode
in interface ResponseHandler
getStatusCode
in class ResponseHandlerBase
ResponseHandler.getStatusCode()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |