Class DavContext

java.lang.Object
com.ithit.webdav.server.DavContext

public class DavContext extends Object
Represents thread safe request/response context.
  • Method Details

    • currentRequest

      public static DavRequest currentRequest() throws IllegalStateException
      Return the DavRequest currently bound to the thread.
      Returns:
      DavRequest
      Throws:
      IllegalStateException - if no DavRequest object is bound to the current thread.
    • currentResponse

      public static DavResponse currentResponse() throws IllegalStateException
      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.