public interface MethodHandler
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(com.ithit.webdav.server.DavRequest, com.ithit.webdav.server.DavResponse)
. Original handler, if any,
is returned from Engine.registerMethodHandler(java.lang.String, com.ithit.webdav.server.MethodHandler)
method.
Modifier and Type | Method and Description |
---|---|
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(DavRequest request,
DavResponse response,
HierarchyItem item)
Enables processing of HTTP Web requests by a custom handler.
|
void processRequest(DavRequest request, DavResponse response, HierarchyItem item) throws DavException, IOException
request
- DavRequest
implementation.response
- DavResponse
implementation.item
- Hierarchy item returned from Engine.getHierarchyItem(java.lang.String)
or null
.DavException
- In case of an error.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.Copyright © ITHit. All Rights Reserved.