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 DavRequest
Return the DavRequest currently bound to the thread.static DavResponse
Return the DavResponse currently bound to the thread.static void
reset()
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.
-