Class PostRequestPars
java.lang.Object
org.bedework.webdav.servlet.common.PostRequestPars
- All Implemented Interfaces:
SecureXml
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPostRequestPars(javax.servlet.http.HttpServletRequest req, WebdavNsIntf intf, String resourceUri) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanfrom accept headerString[]If this request is for a special URI this is the resource URI without the prefix and any parameters.javax.servlet.http.HttpServletRequestgetReq()booleanbooleanisAppXml()booleanbooleanvoidsetContentType(String val) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bedework.webdav.servlet.common.SecureXml
parseXmlSafely
-
Field Details
-
addMember
protected boolean addMember -
getTheReader
protected boolean getTheReader
-
-
Constructor Details
-
Method Details
-
processRequest
public boolean processRequest()- Returns:
- true if we recognized the request as a particular type
-
processXml
public boolean processXml() -
getReader
- Returns:
- Reader if we have a usable reader
-
getReq
public javax.servlet.http.HttpServletRequest getReq()- Returns:
- current request
-
getMethod
-
getResourceUri
- Returns:
- the resource uri
-
getNoPrefixResourceUri
If this request is for a special URI this is the resource URI without the prefix and any parameters. It may be an empty string but will not be null.for example /ischedule/domainkey/... will become /domainkey/...
- Returns:
- unprefixed special uri
-
getAcceptType
from accept header- Returns:
- value from accept header
-
getContentType
- Returns:
- the content type
-
getContentTypePars
- Returns:
- Broken out content type
-
getXmlDoc
- Returns:
- parsed XML
-
isAddMember
public boolean isAddMember()- Returns:
- true if this is DAV:add-member POST
-
isAppXml
public boolean isAppXml()- Returns:
- true if we have an xml content
-
setContentType
- Parameters:
val- - the content type
-
checkUri
- Parameters:
specialUri- the uri to cehck for- Returns:
- true if the request uri is a special uri
-