|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MethodHandler
Represents HTTP method handler.
IT Hit WebDAV Server Engine allows creating custom HTTP handlers and replacing original engine handlers.
To add or replace handler call Engine.registerMethodHandler(java.lang.String, com.ithit.webdav.server.MethodHandler) method passing HTTP method name and object instance
implementing MethodHandler interface prior to calling Engine.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse). Original handler, if any,
is returned from Engine.registerMethodHandler(java.lang.String, com.ithit.webdav.server.MethodHandler) method.
| Method Summary | |
|---|---|
boolean |
getCalculateContentLength()
Determines whether response content length shall be calculated by entine. |
boolean |
getLogInput()
Determines whether request body shall be logged. |
boolean |
getLogOutput()
Determines whether response body shall be logged. |
void |
processRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
HierarchyItem item)
Enables processing of HTTP Web requests by a custom handler. |
| Method Detail |
|---|
void processRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
HierarchyItem item)
throws DavException,
java.io.IOException
request - HttpServletRequest implementation.response - HttpServletResponse implementation.item - Hierarchy item returned from Engine.getHierarchyItem(java.lang.String) or null.
DavException - In case of an error.
java.io.IOException - In case of I/O error.boolean getLogInput()
true if request body shall be logged.boolean getLogOutput()
true if response body shall be logged.boolean getCalculateContentLength()
true if content length shall be calculated by engine.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||