Package org.apache.ofbiz.webapp.webdav
Class ResponseHelper
- java.lang.Object
-
- org.apache.ofbiz.webapp.webdav.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 Summary
Fields Modifier and Type Field Description static java.lang.String
DAV_NAMESPACE_URI
static java.lang.String
module
protected org.w3c.dom.Document
responseDocument
static java.lang.String
STATUS_200
static java.lang.String
STATUS_400
static java.lang.String
STATUS_401
static java.lang.String
STATUS_403
static java.lang.String
STATUS_404
-
Constructor Summary
Constructors Constructor Description ResponseHelper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.w3c.dom.Element
createElementSetValue(java.lang.String elementName, java.lang.String value)
org.w3c.dom.Element
createHrefElement(java.lang.String hrefUrl)
org.w3c.dom.Element
createMultiStatusElement()
org.w3c.dom.Element
createResponseDescriptionElement(java.lang.String description, java.lang.String lang)
org.w3c.dom.Element
createResponseElement()
org.w3c.dom.Element
createStatusElement(java.lang.String statusText)
org.w3c.dom.Document
getResponseDocument()
static void
prepareResponse(javax.servlet.http.HttpServletResponse response, int statusCode, java.lang.String statusString)
void
writeResponse(javax.servlet.http.HttpServletResponse response, java.io.Writer writer)
-
-
-
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
-
STATUS_200
public static final java.lang.String STATUS_200
- See Also:
- Constant Field Values
-
STATUS_400
public static final java.lang.String STATUS_400
- See Also:
- Constant Field Values
-
STATUS_401
public static final java.lang.String STATUS_401
- See Also:
- Constant Field Values
-
STATUS_403
public static final java.lang.String STATUS_403
- See Also:
- Constant Field Values
-
STATUS_404
public static final java.lang.String STATUS_404
- See Also:
- Constant Field Values
-
responseDocument
protected final org.w3c.dom.Document responseDocument
-
-
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
-
-