Class PostRequestPars

java.lang.Object
org.bedework.webdav.servlet.common.PostRequestPars
All Implemented Interfaces:
SecureXml

public class PostRequestPars extends Object implements SecureXml
  • Field Details

    • addMember

      protected boolean addMember
    • getTheReader

      protected boolean getTheReader
  • Constructor Details

    • PostRequestPars

      public PostRequestPars(javax.servlet.http.HttpServletRequest req, WebdavNsIntf intf, String resourceUri)
      Parameters:
      req - - the request
      intf - service interface
      resourceUri - the uri
  • Method Details

    • processRequest

      public boolean processRequest()
      Returns:
      true if we recognized the request as a particular type
    • processXml

      public boolean processXml()
    • getReader

      public Reader getReader()
      Returns:
      Reader if we have a usable reader
    • 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