Package com.ithit.webdav.server
Class DavContext
java.lang.Object
com.ithit.webdav.server.DavContext
Represents thread safe request/response context.
-
Method Summary
Modifier and TypeMethodDescriptionstatic DavRequestReturn the DavRequest currently bound to the thread.static DavResponseReturn the DavResponse currently bound to the thread.static voidreset()Reset the DavContext for the current thread.
-
Method Details
-
currentRequest
Return the DavRequest currently bound to the thread.- Returns:
- DavRequest
- Throws:
IllegalStateException- if no DavRequest object is bound to the current thread.
-
currentResponse
Return the DavResponse currently bound to the thread.- Returns:
- DavResponse
- Throws:
IllegalStateException- if no DavResponse object is bound to the current thread.
-
reset
public static void reset()Reset the DavContext for the current thread.
-