Class PostRequestPars

    • Field Detail

      • addMember

        protected boolean addMember
      • getTheReader

        protected boolean getTheReader
    • Constructor Detail

      • PostRequestPars

        public PostRequestPars​(javax.servlet.http.HttpServletRequest req,
                               WebdavNsIntf intf,
                               String resourceUri)
                        throws WebdavException
        Parameters:
        req - - the request
        intf - service interface
        resourceUri - 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
      • 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