Class PostRequestPars
- java.lang.Object
-
- org.bedework.webdav.servlet.common.PostRequestPars
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanaddMemberprotected booleangetTheReader
-
Constructor Summary
Constructors Constructor Description PostRequestPars(javax.servlet.http.HttpServletRequest req, WebdavNsIntf intf, String resourceUri)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancheckUri(String specialUri)StringgetAcceptType()from accept headerStringgetContentType()String[]getContentTypePars()StringgetMethod()StringgetNoPrefixResourceUri()If this request is for a special URI this is the resource URI without the prefix and any parameters.ReadergetReader()javax.servlet.http.HttpServletRequestgetReq()StringgetResourceUri()DocumentgetXmlDoc()booleanisAddMember()booleanisAppXml()booleanprocessRequest()booleanprocessXml()voidsetContentType(String val)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.bedework.webdav.servlet.common.SecureXml
parseXmlSafely
-
-
-
-
Constructor Detail
-
PostRequestPars
public PostRequestPars(javax.servlet.http.HttpServletRequest req, WebdavNsIntf intf, String resourceUri) throws WebdavException- Parameters:
req- - the requestintf- service interfaceresourceUri- the uri- Throws:
WebdavException
-
-
Method Detail
-
processRequest
public boolean processRequest() throws WebdavException- Returns:
- true if we recognized the request as a particular type
- Throws:
WebdavException
-
processXml
public boolean processXml() throws WebdavException- Throws:
WebdavException
-
getReader
public Reader getReader() throws WebdavException
- Returns:
- Reader if we have a usable reader
- Throws:
WebdavException
-
getReq
public javax.servlet.http.HttpServletRequest getReq()
- Returns:
- current request
-
getMethod
public String getMethod()
-
getResourceUri
public String getResourceUri()
- Returns:
- the resource uri
-
getNoPrefixResourceUri
public String 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
public String getAcceptType()
from accept header- Returns:
- value from accept header
-
getContentType
public String getContentType()
- Returns:
- the content type
-
getContentTypePars
public String[] getContentTypePars()
- Returns:
- Broken out content type
-
getXmlDoc
public Document 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
public void setContentType(String val)
- Parameters:
val- - the content type
-
checkUri
protected boolean checkUri(String specialUri)
- Parameters:
specialUri- the uri to cehck for- Returns:
- true if the request uri is a special uri
-
-