public interface DavServletRequest
extends javax.servlet.http.HttpServletRequest
DavServletRequest extends the HttpServletRequest by Webdav
specific METHODS.| Modifier and Type | Method and Description |
|---|---|
DavSession |
getDavSession()
Returns the
DavSession created for this request. |
int |
getDepth()
Return the integer representation of the given
Depth header. |
int |
getDepth(int defaultValue)
Returns the integer representation of the
Depth header or the given defaultValue, if the Depth header is missing. |
DavResourceLocator |
getDestinationLocator()
Parse the
Destination header
and return the locator of the corresponding resource. |
LockInfo |
getLockInfo()
Return the parsed 'lockinfo' request body, the
Timeout header and the Depth header
of a LOCK request as LockInfo object. |
java.lang.String |
getLockToken()
Returns the token present in the
Lock-Token Header or null if no such header is available.Note: The 'Lock-Token' header is sent with UNLOCK requests and with lock responses only. |
DavPropertyNameSet |
getPropFindProperties()
Return the set of properties the client requested with a PROPFIND request
or an empty set if the type of PROPFIND request was
DavConstants.PROPFIND_ALL_PROP
or DavConstants.PROPFIND_PROPERTY_NAMES. |
int |
getPropFindType()
Return the type of PROPFIND request as indicated by the PROPFIND request
body.
|
java.util.List<? extends PropEntry> |
getPropPatchChangeList()
Return a
List of property change operations. |
org.w3c.dom.Document |
getRequestDocument()
Parse the Xml request body and return a
Document. |
DavResourceLocator |
getRequestLocator()
Return the locator of the requested
resource. |
long |
getTimeout()
Return the timeout requested in the
Timeout header as long. |
boolean |
isOverwrite()
Returns true if the
Overwrite header
is set to 'T' thus instructing the server to overwrite the state of a
non-null destination resource during a COPY or MOVE. |
boolean |
matchesIfHeader(DavResource resource)
Returns true, if the
If header present
with the request matches the given resource. |
boolean |
matchesIfHeader(java.lang.String href,
java.lang.String token,
java.lang.String eTag)
Returns true, if the
If header present
with the request matches to the given href, token and eTag. |
void |
setDavSession(DavSession session)
Sets the
DavSession to this request. |
authenticate, changeSessionId, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getHttpServletMapping, getIntHeader, getMethod, getPart, getParts, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getTrailerFields, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isTrailerFieldsReady, isUserInRole, login, logout, newPushBuilder, upgradegetAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsyncvoid setDavSession(DavSession session)
DavSession to this request.session - DavSession getDavSession()
DavSession created for this request.DavResourceLocator getRequestLocator()
resource.resource.DavResourceLocator getDestinationLocator() throws DavException
Destination header
and return the locator of the corresponding resource.DavExceptionDavConstants.HEADER_DESTINATIONboolean isOverwrite()
Overwrite header
is set to 'T' thus instructing the server to overwrite the state of a
non-null destination resource during a COPY or MOVE. A Overwrite header
value of 'F' will return false.DavConstants.HEADER_OVERWRITEint getDepth()
Depth header. 'Infinity' is represented by DavConstants.DEPTH_INFINITY.Depth header.DavConstants.HEADER_DEPTHint getDepth(int defaultValue)
Depth header or the given defaultValue, if the Depth header is missing.defaultValue - to be returned if no Depth header is present.Depth header or the given defaultValue.DavConstants.HEADER_DEPTHjava.lang.String getLockToken()
Lock-Token Header or null if no such header is available.DavConstants.HEADER_LOCK_TOKENlong getTimeout()
Timeout header as long. The representation of the
'Infinite' timeout is left to the implementation.DavConstants.HEADER_TIMEOUT,
DavConstants.TIMEOUT_INFINITEorg.w3c.dom.Document getRequestDocument()
throws DavException
Document.null
if no request body is present.DavException - If the request body cannot be parsed into an Xml
Document.int getPropFindType()
throws DavException
DavException - If the propfind type could not be determined due to
an invalid request body.DavConstants.PROPFIND_ALL_PROP,
DavConstants.PROPFIND_BY_PROPERTY,
DavConstants.PROPFIND_PROPERTY_NAMES,
DavConstants.PROPFIND_ALL_PROP_INCLUDEDavPropertyNameSet getPropFindProperties() throws DavException
DavConstants.PROPFIND_ALL_PROP
or DavConstants.PROPFIND_PROPERTY_NAMES.DavException - In case of invalid request bodyjava.util.List<? extends PropEntry> getPropPatchChangeList() throws DavException
List of property change operations. Each entry
is either of type DavPropertyName, indicating a <remove>
operation, or of type DavProperty, indicating a <set>
operation. Note that ordering is significant here.List of property change operationsDavException - In case of invalid request bodyLockInfo getLockInfo() throws DavException
Timeout header and the Depth header
of a LOCK request as LockInfo object.LockInfo object encapsulating the information
present in the LOCK request.DavExceptionDavConstants.HEADER_TIMEOUT,
DavConstants.HEADER_DEPTH,
DavConstants.XML_LOCKINFOboolean matchesIfHeader(DavResource resource)
If header present
with the request matches the given resource.resource - boolean matchesIfHeader(java.lang.String href,
java.lang.String token,
java.lang.String eTag)
If header present
with the request matches to the given href, token and eTag.href - token - eTag - Copyright © 2010 - 2023 Adobe. All Rights Reserved