org.efaps.ui.webdav
Class WebDAVRequest

java.lang.Object
  extended by org.efaps.ui.webdav.WebDAVRequest

public class WebDAVRequest
extends java.lang.Object

Version:
$Id: WebDAVRequest.java 3447 2009-11-29 22:46:39Z tim.moxter $
Author:
tmo

Nested Class Summary
static class WebDAVRequest.DepthHeader
           
 
Constructor Summary
WebDAVRequest(javax.servlet.http.HttpServletRequest _request)
           
 
Method Summary
 WebDAVRequest.DepthHeader getDepthHeader()
          The depth is evaluated from the header of this WebDAV request.
The default values is #DepthHeader.infity.
This is specified in "RFC 2518 - 9.2 Depth Header".
 java.lang.String getDestination()
          Return a context-relative path, beginning with a "/", that represents the canonical version of the specified path.
 org.w3c.dom.Document getDocument()
           
protected  javax.xml.parsers.DocumentBuilder getDocumentBuilder()
          Return JAXP document builder instance.
 java.lang.String getPathInfo()
           
 javax.servlet.http.HttpServletRequest getRequest()
          This is the getter method for instance variable request.
 java.lang.String getRequestURI()
           
 boolean isInputAvailable()
          Checks if input is avaiable meaning a content is also avaiable for this request.
If the input stream is not avaible (e.g.
 boolean isOverwrite()
          The request is checked, if the header Overwrite is specified.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebDAVRequest

public WebDAVRequest(javax.servlet.http.HttpServletRequest _request)
Method Detail

getPathInfo

public java.lang.String getPathInfo()

getRequestURI

public java.lang.String getRequestURI()

getDocument

public org.w3c.dom.Document getDocument()
                                 throws java.io.IOException,
                                        javax.xml.parsers.ParserConfigurationException,
                                        org.xml.sax.SAXException
Returns:
input stream parsed as XML document
Throws:
java.io.IOException - if input stream could not be read
javax.xml.parsers.ParserConfigurationException - if the parser could not be instanciated
org.xml.sax.SAXException - if input stream is not parseable
See Also:
getDocumentBuilder()

getDocumentBuilder

protected javax.xml.parsers.DocumentBuilder getDocumentBuilder()
                                                        throws javax.xml.parsers.ParserConfigurationException
Return JAXP document builder instance.

Throws:
javax.xml.parsers.ParserConfigurationException

isInputAvailable

public boolean isInputAvailable()
Checks if input is avaiable meaning a content is also avaiable for this request.
If the input stream is not avaible (e.g. an exception is thrown), false is returned.

Returns:
true if input is avaible, otherwise false

getDepthHeader

public WebDAVRequest.DepthHeader getDepthHeader()
The depth is evaluated from the header of this WebDAV request.
The default values is #DepthHeader.infity.
This is specified in "RFC 2518 - 9.2 Depth Header".

Returns:
depth header of this WebDAV request with three possible values defined in #DepthHeader
See Also:
2518 - 9.2 Depth Header, #DepthHeader

getDestination

public java.lang.String getDestination()
Return a context-relative path, beginning with a "/", that represents the canonical version of the specified path. This is specified in "RFC 2518 - 9.3 Destination Header".

Parameters:
path - the path to be normalized
See Also:
2518 - 9.3 Destination Header

isOverwrite

public boolean isOverwrite()
The request is checked, if the header Overwrite is specified. If the value is set to T or the header is not specified, the return value is true.
This is specified in "RFC 2518 - 9.6 Overwrite Header".

Returns:
true if the request header Overwrite is set to T or not defined.
See Also:
2518 - 9.6 Overwrite Header

getRequest

public javax.servlet.http.HttpServletRequest getRequest()
This is the getter method for instance variable request.

Returns:
value of instance variable request
See Also:
request


Copyright © 2003-2010 The eFaps Team. All Rights Reserved.