Class ResponseHelper

  • Direct Known Subclasses:
    PropFindHelper

    public class ResponseHelper
    extends java.lang.Object
    WebDAV response helper class. This class provides helper methods for working with WebDAV requests and responses.
    • Field Detail

      • module

        public static final java.lang.String module
      • DAV_NAMESPACE_URI

        public static final java.lang.String DAV_NAMESPACE_URI
        See Also:
        Constant Field Values
      • responseDocument

        protected final org.w3c.dom.Document responseDocument
    • Constructor Detail

      • ResponseHelper

        public ResponseHelper()
    • Method Detail

      • prepareResponse

        public static void prepareResponse​(javax.servlet.http.HttpServletResponse response,
                                           int statusCode,
                                           java.lang.String statusString)
      • createElementSetValue

        public org.w3c.dom.Element createElementSetValue​(java.lang.String elementName,
                                                         java.lang.String value)
      • createHrefElement

        public org.w3c.dom.Element createHrefElement​(java.lang.String hrefUrl)
      • createMultiStatusElement

        public org.w3c.dom.Element createMultiStatusElement()
      • createResponseDescriptionElement

        public org.w3c.dom.Element createResponseDescriptionElement​(java.lang.String description,
                                                                    java.lang.String lang)
      • createResponseElement

        public org.w3c.dom.Element createResponseElement()
      • createStatusElement

        public org.w3c.dom.Element createStatusElement​(java.lang.String statusText)
      • getResponseDocument

        public org.w3c.dom.Document getResponseDocument()
      • writeResponse

        public void writeResponse​(javax.servlet.http.HttpServletResponse response,
                                  java.io.Writer writer)
                           throws java.io.IOException
        Throws:
        java.io.IOException