Class BaseDavRequest

    • Constructor Detail

      • BaseDavRequest

        public BaseDavRequest​(java.net.URI uri)
    • Method Detail

      • getResponseBodyAsDocument

        public org.w3c.dom.Document getResponseBodyAsDocument​(HttpEntity entity)
                                                       throws java.io.IOException
        Gets a Document representing the response body.
        Returns:
        document or null for null entity
        Throws:
        java.io.IOException - in case of I/O or XMP pasting problems
      • checkSuccess

        public void checkSuccess​(HttpResponse response)
                          throws DavException
        Check the response and throw when it is considered to represent a failure.
        Throws:
        DavException
      • getResponseException

        public DavException getResponseException​(HttpResponse response)
        Obtain a DavException representing the response.
        Throws:
        java.lang.IllegalStateException - when the response is considered to be successful
      • succeeded

        public boolean succeeded​(HttpResponse response)
        Check the provided HttpResponse for successful execution. The default implementation treats all 2xx status codes (RFC 7231, Section 6.3). Implementations can further restrict the accepted range of responses (or even check the response body).