Package org.apache.jackrabbit.webdav
Class WebdavRequestImpl
- java.lang.Object
-
- org.apache.jackrabbit.webdav.WebdavRequestImpl
-
- All Implemented Interfaces:
javax.servlet.http.HttpServletRequest
,javax.servlet.ServletRequest
,BindServletRequest
,ContentCodingAwareRequest
,DavConstants
,DavServletRequest
,ObservationDavServletRequest
,OrderingDavServletRequest
,TransactionDavServletRequest
,DeltaVServletRequest
,WebdavRequest
public class WebdavRequestImpl extends Object implements WebdavRequest, DavConstants, ContentCodingAwareRequest
WebdavRequestImpl
...
-
-
Field Summary
-
Fields inherited from interface org.apache.jackrabbit.webdav.ContentCodingAwareRequest
PRECONDITION_SUPPORTED
-
Fields inherited from interface org.apache.jackrabbit.webdav.DavConstants
creationDateFormat, DEPTH_0, DEPTH_1, DEPTH_INFINITY, DEPTH_INFINITY_S, HEADER_AUTHORIZATION, HEADER_CONTENT_LANGUAGE, HEADER_CONTENT_LENGTH, HEADER_CONTENT_TYPE, HEADER_DAV, HEADER_DEPTH, HEADER_DESTINATION, HEADER_ETAG, HEADER_IF, HEADER_LAST_MODIFIED, HEADER_LOCK_TOKEN, HEADER_OVERWRITE, HEADER_TIMEOUT, INFINITE_TIMEOUT, modificationDateFormat, NAMESPACE, OPAQUE_LOCK_TOKEN_PREFIX, PROPERTY_CREATIONDATE, PROPERTY_DISPLAYNAME, PROPERTY_GETCONTENTLANGUAGE, PROPERTY_GETCONTENTLENGTH, PROPERTY_GETCONTENTTYPE, PROPERTY_GETETAG, PROPERTY_GETLASTMODIFIED, PROPERTY_LOCKDISCOVERY, PROPERTY_RESOURCETYPE, PROPERTY_SOURCE, PROPERTY_SUPPORTEDLOCK, PROPFIND_ALL_PROP, PROPFIND_ALL_PROP_INCLUDE, PROPFIND_BY_PROPERTY, PROPFIND_PROPERTY_NAMES, TIMEOUT_INFINITE, UNDEFINED_TIME, UNDEFINED_TIMEOUT, XML_ACTIVELOCK, XML_ALLPROP, XML_COLLECTION, XML_DEPTH, XML_DST, XML_EXCLUSIVE, XML_HREF, XML_INCLUDE, XML_KEEPALIVE, XML_LINK, XML_LOCKENTRY, XML_LOCKINFO, XML_LOCKROOT, XML_LOCKSCOPE, XML_LOCKTOKEN, XML_LOCKTYPE, XML_MULTISTATUS, XML_OMIT, XML_OWNER, XML_PROP, XML_PROPERTYBEHAVIOR, XML_PROPERTYUPDATE, XML_PROPFIND, XML_PROPNAME, XML_PROPSTAT, XML_REMOVE, XML_RESPONSE, XML_RESPONSEDESCRIPTION, XML_SET, XML_SHARED, XML_SOURCE, XML_STATUS, XML_TIMEOUT, XML_WRITE
-
-
Constructor Summary
Constructors Constructor Description WebdavRequestImpl(javax.servlet.http.HttpServletRequest httpRequest, DavLocatorFactory factory)
Creates a newDavServletRequest
with the given parameters.WebdavRequestImpl(javax.servlet.http.HttpServletRequest httpRequest, DavLocatorFactory factory, boolean createAbsoluteURI)
Creates a newDavServletRequest
with the given parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
authenticate(javax.servlet.http.HttpServletResponse response)
String
changeSessionId()
String
getAcceptableCodings()
javax.servlet.AsyncContext
getAsyncContext()
Object
getAttribute(String s)
Enumeration<String>
getAttributeNames()
String
getAuthType()
BindInfo
getBindInfo()
Returns theBindInfo
present with the requestString
getCharacterEncoding()
int
getContentLength()
long
getContentLengthLong()
String
getContentType()
String
getContextPath()
javax.servlet.http.Cookie[]
getCookies()
long
getDateHeader(String s)
DavSession
getDavSession()
Returns theDavSession
created for this request.int
getDepth()
Return the integer representation of the givenDepth header
.int
getDepth(int defaultValue)
Returns the integer representation of theDepth header
or the given defaultValue, if the Depth header is missing.DavResourceLocator
getDestinationLocator()
Parse the destination header field and return the path of the destination resource.javax.servlet.DispatcherType
getDispatcherType()
String
getHeader(String s)
Enumeration<String>
getHeaderNames()
Enumeration<String>
getHeaders(String s)
DavResourceLocator
getHrefLocator(String href)
Parse a href and return the path of the resource.javax.servlet.ServletInputStream
getInputStream()
int
getIntHeader(String s)
String
getLabel()
Returns the Label header ornull
LabelInfo
getLabelInfo()
Return the request body asLabelInfo
object ornull
if parsing the request body or the creation of the label info failed.String
getLocalAddr()
Locale
getLocale()
Enumeration<Locale>
getLocales()
String
getLocalName()
int
getLocalPort()
LockInfo
getLockInfo()
LockInfo
object encapsulating the information passed with a LOCK request if the LOCK request body was valid.String
getLockToken()
Retrieve the lock token from the 'Lock-Token' header.DavResourceLocator
getMemberLocator(String segment)
Returns the path of the member resource of the request resource which is identified by the segment parameter.MergeInfo
getMergeInfo()
Return the request body asMergeInfo
object ornull
if the creation failed due to invalid format.String
getMethod()
OptionsInfo
getOptionsInfo()
Returns theOptionsInfo
present with the request ornull
.String
getOrderingType()
Returns theOrdering-Type header
.OrderPatch
getOrderPatch()
Return aOrderPatch
object encapsulating the request body of an ORDERPATCH request ornull
if the request body was either missing or could not be parsed.String
getParameter(String s)
Map<String,String[]>
getParameterMap()
Enumeration<String>
getParameterNames()
String[]
getParameterValues(String s)
javax.servlet.http.Part
getPart(String name)
Collection<javax.servlet.http.Part>
getParts()
String
getPathInfo()
String
getPathTranslated()
long
getPollTimeout()
Returns thePollTimeout header
or 0 (zero) if no such header is present.Position
getPosition()
Return aPosition
object encapsulating thePosition header
field ornull
if no Position header is present or does not contain a valid format.DavPropertyNameSet
getPropFindProperties()
Returns the set of properties requested by the PROPFIND body or an empty set if thetype
is either 'allprop' or 'propname'.int
getPropFindType()
Returns the type of PROPFIND as indicated by the request body.List<? extends PropEntry>
getPropPatchChangeList()
Return aList
of property change operations.String
getProtocol()
String
getQueryString()
BufferedReader
getReader()
String
getRealPath(String s)
RebindInfo
getRebindInfo()
Returns theRebindInfo
present with the requestString
getRemoteAddr()
String
getRemoteHost()
int
getRemotePort()
String
getRemoteUser()
ReportInfo
getReportInfo()
Returns the request body and the Depth header asReportInfo
object.List<String>
getRequestContentCodings()
javax.servlet.RequestDispatcher
getRequestDispatcher(String s)
Document
getRequestDocument()
Parse the Xml request body and return aDocument
.String
getRequestedSessionId()
DavResourceLocator
getRequestLocator()
Return aDavResourceLocator
representing the request handle.String
getRequestURI()
StringBuffer
getRequestURL()
String
getScheme()
String
getServerName()
int
getServerPort()
javax.servlet.ServletContext
getServletContext()
String
getServletPath()
javax.servlet.http.HttpSession
getSession()
javax.servlet.http.HttpSession
getSession(boolean b)
String
getSubscriptionId()
Return theSubscriptionId header
ornull
if no such header is present.SubscriptionInfo
getSubscriptionInfo()
Return aSubscriptionInfo
object representing the subscription info present in the SUBSCRIBE request body ornull
if retrieving the subscription info fails.long
getTimeout()
Parse the Timeout header and return a long representing the value.String
getTransactionId()
Retrieve the transaction id from theTransactionId header
.TransactionInfo
getTransactionInfo()
Retrieve the 'transactioninfo' request body that must be included with the UNLOCK request of a transaction lock.UnbindInfo
getUnbindInfo()
Returns theUnbindInfo
present with the requestUpdateInfo
getUpdateInfo()
Parses the UPDATE request body a build the correspondingUpdateInfo
object.Principal
getUserPrincipal()
boolean
isAsyncStarted()
boolean
isAsyncSupported()
boolean
isOverwrite()
Return true if the overwrite header does not inhibit overwriting.boolean
isRequestedSessionIdFromCookie()
boolean
isRequestedSessionIdFromUrl()
boolean
isRequestedSessionIdFromURL()
boolean
isRequestedSessionIdValid()
boolean
isSecure()
boolean
isUserInRole(String s)
void
login(String username, String password)
void
logout()
boolean
matchesIfHeader(String href, String token, String eTag)
Returns true, if theIf header
present with the request matches to the given href, token and eTag.boolean
matchesIfHeader(DavResource resource)
Test if the if header matches the given resource.void
removeAttribute(String s)
void
setAttribute(String s, Object o)
void
setCharacterEncoding(String s)
void
setDavSession(DavSession session)
Sets the session field and adds all lock tokens present with either the Lock-Token header or the If header to the given session object.javax.servlet.AsyncContext
startAsync()
javax.servlet.AsyncContext
startAsync(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse)
<T extends javax.servlet.http.HttpUpgradeHandler>
Tupgrade(Class<T> handlerClass)
-
-
-
Constructor Detail
-
WebdavRequestImpl
public WebdavRequestImpl(javax.servlet.http.HttpServletRequest httpRequest, DavLocatorFactory factory)
Creates a newDavServletRequest
with the given parameters.
-
WebdavRequestImpl
public WebdavRequestImpl(javax.servlet.http.HttpServletRequest httpRequest, DavLocatorFactory factory, boolean createAbsoluteURI)
Creates a newDavServletRequest
with the given parameters.- Parameters:
httpRequest
-factory
-createAbsoluteURI
- defines if we must create a absolute URI. if false a absolute path will be created
-
-
Method Detail
-
setDavSession
public void setDavSession(DavSession session)
Sets the session field and adds all lock tokens present with either the Lock-Token header or the If header to the given session object.- Specified by:
setDavSession
in interfaceDavServletRequest
- Parameters:
session
-- See Also:
DavServletRequest.setDavSession(DavSession)
-
getDavSession
public DavSession getDavSession()
Description copied from interface:DavServletRequest
Returns theDavSession
created for this request.- Specified by:
getDavSession
in interfaceDavServletRequest
- Returns:
- session for this resource
- See Also:
DavServletRequest.getDavSession()
-
getRequestLocator
public DavResourceLocator getRequestLocator()
Return aDavResourceLocator
representing the request handle.- Specified by:
getRequestLocator
in interfaceDavServletRequest
- Returns:
- locator of the requested resource
- See Also:
DavServletRequest.getRequestLocator()
-
getDestinationLocator
public DavResourceLocator getDestinationLocator() throws DavException
Parse the destination header field and return the path of the destination resource.- Specified by:
getDestinationLocator
in interfaceDavServletRequest
- Returns:
- path of the destination resource.
- Throws:
DavException
- See Also:
DavConstants.HEADER_DESTINATION
,DavServletRequest.getDestinationLocator()
-
getHrefLocator
public DavResourceLocator getHrefLocator(String href) throws DavException
Parse a href and return the path of the resource.- Specified by:
getHrefLocator
in interfaceBindServletRequest
- Returns:
- path of the resource identified by the href.
- Throws:
DavException
- See Also:
BindServletRequest.getHrefLocator(java.lang.String)
-
getMemberLocator
public DavResourceLocator getMemberLocator(String segment)
Returns the path of the member resource of the request resource which is identified by the segment parameter.- Specified by:
getMemberLocator
in interfaceBindServletRequest
- Returns:
- path of internal member resource.
-
isOverwrite
public boolean isOverwrite()
Return true if the overwrite header does not inhibit overwriting.- Specified by:
isOverwrite
in interfaceDavServletRequest
- Returns:
- true if the overwrite header requests 'overwriting'
- See Also:
DavConstants.HEADER_OVERWRITE
,DavServletRequest.isOverwrite()
-
getDepth
public int getDepth(int defaultValue)
Description copied from interface:DavServletRequest
Returns the integer representation of theDepth header
or the given defaultValue, if the Depth header is missing.- Specified by:
getDepth
in interfaceDavServletRequest
- Parameters:
defaultValue
- to be returned if no Depth header is present.- Returns:
- integer representation of the
Depth header
or the given defaultValue. - See Also:
DavServletRequest.getDepth(int)
-
getDepth
public int getDepth()
Description copied from interface:DavServletRequest
Return the integer representation of the givenDepth header
. 'Infinity' is represented byDavConstants.DEPTH_INFINITY
.- Specified by:
getDepth
in interfaceDavServletRequest
- Returns:
- integer representation of the
Depth header
. - See Also:
DavServletRequest.getDepth()
-
getTimeout
public long getTimeout()
Parse the Timeout header and return a long representing the value.DavConstants.UNDEFINED_TIMEOUT
is used as default value if no header is available or if the parsing fails.- Specified by:
getTimeout
in interfaceDavServletRequest
- Returns:
- milliseconds indicating length of the timeout.
- See Also:
DavServletRequest.getTimeout()
,TimeoutHeader.parse(javax.servlet.http.HttpServletRequest, long)
-
getLockToken
public String getLockToken()
Retrieve the lock token from the 'Lock-Token' header.- Specified by:
getLockToken
in interfaceDavServletRequest
- Returns:
- String representing the lock token sent in the Lock-Token header.
- Throws:
IllegalArgumentException
- If the value has not the correct format.- See Also:
DavConstants.HEADER_LOCK_TOKEN
,DavServletRequest.getLockToken()
-
getRequestDocument
public Document getRequestDocument() throws DavException
Description copied from interface:DavServletRequest
Parse the Xml request body and return aDocument
.- Specified by:
getRequestDocument
in interfaceDavServletRequest
- Returns:
- Document representing the Xml request body or
null
if no request body is present. - Throws:
DavException
- If the request body cannot be parsed into an Xml Document.- See Also:
DavServletRequest.getRequestDocument()
-
getPropFindType
public int getPropFindType() throws DavException
Returns the type of PROPFIND as indicated by the request body.- Specified by:
getPropFindType
in interfaceDavServletRequest
- Returns:
- type of the PROPFIND request. Default value is
allprops
- Throws:
DavException
- If the propfind type could not be determined due to an invalid request body.- See Also:
DavServletRequest.getPropFindType()
-
getPropFindProperties
public DavPropertyNameSet getPropFindProperties() throws DavException
Returns the set of properties requested by the PROPFIND body or an empty set if thetype
is either 'allprop' or 'propname'.- Specified by:
getPropFindProperties
in interfaceDavServletRequest
- Returns:
- set of properties requested by the PROPFIND body or an empty set.
- Throws:
DavException
- In case of invalid request body- See Also:
DavServletRequest.getPropFindProperties()
-
getRequestContentCodings
public List<String> getRequestContentCodings()
- Specified by:
getRequestContentCodings
in interfaceContentCodingAwareRequest
- Returns:
- content codings used in request
-
getAcceptableCodings
public String getAcceptableCodings()
- Specified by:
getAcceptableCodings
in interfaceContentCodingAwareRequest
- Returns:
- value suitable for Accept response field
-
getPropPatchChangeList
public List<? extends PropEntry> getPropPatchChangeList() throws DavException
Return aList
of property change operations. Each entry is either of typeDavPropertyName
, indicating a <remove> operation, or of typeDavProperty
, indicating a <set> operation. Note that ordering is significant here.- Specified by:
getPropPatchChangeList
in interfaceDavServletRequest
- Returns:
- the list of change operations entries in the PROPPATCH request body
- Throws:
DavException
- In case of invalid request body- See Also:
DavServletRequest.getPropPatchChangeList()
-
getLockInfo
public LockInfo getLockInfo() throws DavException
LockInfo
object encapsulating the information passed with a LOCK request if the LOCK request body was valid. If the request body is missing a 'refresh lock' request is assumed. TheLockInfo
then only provides timeout and isDeep property and returns true onLockInfo.isRefreshLock()
- Specified by:
getLockInfo
in interfaceDavServletRequest
- Returns:
- lock info object or
null
if an error occurred while parsing the request body. - Throws:
DavException
- throws a 400 (Bad Request) DavException if a request body is present but does not start with a DAV:lockinfo element. Note however, that a non-existing request body is a valid request used to refresh an existing lock.- See Also:
DavServletRequest.getLockInfo()
-
matchesIfHeader
public boolean matchesIfHeader(DavResource resource)
Test if the if header matches the given resource. The comparison is made with theresource href
and the token returned from an exclusive write lock present on the resource.
NOTE: If either the If header or the resource isnull
or if the resource has not applied an exclusive write lock the preconditions are met. If in contrast the lock applied to the given resource returns anull
lock token (e.g. for security reasons) or a lock token that does not match, the method will return false.- Specified by:
matchesIfHeader
in interfaceDavServletRequest
- Parameters:
resource
- Webdav resources being operated on- Returns:
- true if the test is successful and the preconditions for the request processing are fulfilled.
- See Also:
DavServletRequest.matchesIfHeader(DavResource)
,IfHeader.matches(String, String, String)
,DavResource.hasLock(org.apache.jackrabbit.webdav.lock.Type, org.apache.jackrabbit.webdav.lock.Scope)
,ActiveLock.getToken()
-
matchesIfHeader
public boolean matchesIfHeader(String href, String token, String eTag)
Description copied from interface:DavServletRequest
Returns true, if theIf header
present with the request matches to the given href, token and eTag.- Specified by:
matchesIfHeader
in interfaceDavServletRequest
- Returns:
- true, if the test is successful, false otherwise.
- See Also:
DavServletRequest.matchesIfHeader(String, String, String)
,IfHeader.matches(String, String, String)
-
getTransactionId
public String getTransactionId()
Description copied from interface:TransactionDavServletRequest
Retrieve the transaction id from theTransactionId header
.- Specified by:
getTransactionId
in interfaceTransactionDavServletRequest
- Returns:
- transaction id as present in the
TransactionId header
ornull
. - See Also:
TransactionDavServletRequest.getTransactionId()
-
getTransactionInfo
public TransactionInfo getTransactionInfo() throws DavException
Description copied from interface:TransactionDavServletRequest
Retrieve the 'transactioninfo' request body that must be included with the UNLOCK request of a transaction lock. If the request body is does not provide the information required (either because it is missing or the Xml is not valid)null
is returned.- Specified by:
getTransactionInfo
in interfaceTransactionDavServletRequest
- Returns:
TransactionInfo
object encapsulating the 'transactioninfo' Xml element present in the request body ornull
if no body is present or if it could not be parsed.- Throws:
DavException
- if an invalid request body is present.- See Also:
TransactionDavServletRequest.getTransactionInfo()
-
getSubscriptionId
public String getSubscriptionId()
Description copied from interface:ObservationDavServletRequest
Return theSubscriptionId header
ornull
if no such header is present.- Specified by:
getSubscriptionId
in interfaceObservationDavServletRequest
- Returns:
- the
SubscriptionId header
- See Also:
ObservationDavServletRequest.getSubscriptionId()
-
getPollTimeout
public long getPollTimeout()
Description copied from interface:ObservationDavServletRequest
Returns thePollTimeout header
or 0 (zero) if no such header is present.- Specified by:
getPollTimeout
in interfaceObservationDavServletRequest
- Returns:
- milliseconds indicating length of the poll timeout.
- See Also:
ObservationDavServletRequest.getPollTimeout()
-
getSubscriptionInfo
public SubscriptionInfo getSubscriptionInfo() throws DavException
Description copied from interface:ObservationDavServletRequest
Return aSubscriptionInfo
object representing the subscription info present in the SUBSCRIBE request body ornull
if retrieving the subscription info fails.- Specified by:
getSubscriptionInfo
in interfaceObservationDavServletRequest
- Returns:
- subscription info object encapsulating the SUBSCRIBE request body
or
null
if the subscription info cannot be built. - Throws:
DavException
- if an invalid request body was encountered.- See Also:
ObservationDavServletRequest.getSubscriptionInfo()
-
getOrderingType
public String getOrderingType()
Description copied from interface:OrderingDavServletRequest
Returns theOrdering-Type header
.- Specified by:
getOrderingType
in interfaceOrderingDavServletRequest
- Returns:
- the String value of the
Ordering-Type header
. - See Also:
OrderingDavServletRequest.getOrderingType()
-
getPosition
public Position getPosition()
Description copied from interface:OrderingDavServletRequest
Return aPosition
object encapsulating thePosition header
field ornull
if no Position header is present or does not contain a valid format.- Specified by:
getPosition
in interfaceOrderingDavServletRequest
- Returns:
Position
object encapsulating thePosition header
- See Also:
OrderingDavServletRequest.getPosition()
-
getOrderPatch
public OrderPatch getOrderPatch() throws DavException
Description copied from interface:OrderingDavServletRequest
Return aOrderPatch
object encapsulating the request body of an ORDERPATCH request ornull
if the request body was either missing or could not be parsed.- Specified by:
getOrderPatch
in interfaceOrderingDavServletRequest
- Returns:
OrderPatch
object representing the orderpatch request body ornull
if the- Throws:
DavException
- See Also:
OrderingDavServletRequest.getOrderPatch()
-
getLabel
public String getLabel()
Description copied from interface:DeltaVServletRequest
Returns the Label header ornull
- Specified by:
getLabel
in interfaceDeltaVServletRequest
- Returns:
- label header or
null
- See Also:
DeltaVServletRequest.getLabel()
-
getLabelInfo
public LabelInfo getLabelInfo() throws DavException
Description copied from interface:DeltaVServletRequest
Return the request body asLabelInfo
object ornull
if parsing the request body or the creation of the label info failed.- Specified by:
getLabelInfo
in interfaceDeltaVServletRequest
- Returns:
LabelInfo
object ornull
- Throws:
DavException
- in case of an invalid request body- See Also:
DeltaVServletRequest.getLabelInfo()
-
getMergeInfo
public MergeInfo getMergeInfo() throws DavException
Description copied from interface:DeltaVServletRequest
Return the request body asMergeInfo
object ornull
if the creation failed due to invalid format.- Specified by:
getMergeInfo
in interfaceDeltaVServletRequest
- Returns:
MergeInfo
object ornull
- Throws:
DavException
- in case of an invalid request body- See Also:
DeltaVServletRequest.getMergeInfo()
-
getUpdateInfo
public UpdateInfo getUpdateInfo() throws DavException
Description copied from interface:DeltaVServletRequest
Parses the UPDATE request body a build the correspondingUpdateInfo
object. If the request body is missing or does not of the required formatnull
is returned.- Specified by:
getUpdateInfo
in interfaceDeltaVServletRequest
- Returns:
- the parsed update request body or
null
- Throws:
DavException
- in case of an invalid request body- See Also:
DeltaVServletRequest.getUpdateInfo()
-
getReportInfo
public ReportInfo getReportInfo() throws DavException
Description copied from interface:DeltaVServletRequest
Returns the request body and the Depth header asReportInfo
object. The default depth, if noDepth header
, isDavConstants.DEPTH_0
. If the request body could not be parsed into anElement
null
is returned.- Specified by:
getReportInfo
in interfaceDeltaVServletRequest
- Returns:
ReportInfo
ornull
- Throws:
DavException
- in case of an invalid request body- See Also:
DeltaVServletRequest.getReportInfo()
-
getOptionsInfo
public OptionsInfo getOptionsInfo() throws DavException
Description copied from interface:DeltaVServletRequest
Returns theOptionsInfo
present with the request ornull
.- Specified by:
getOptionsInfo
in interfaceDeltaVServletRequest
- Returns:
OptionsInfo
ornull
- Throws:
DavException
- in case of an invalid request body- See Also:
DeltaVServletRequest.getOptionsInfo()
-
getRebindInfo
public RebindInfo getRebindInfo() throws DavException
Description copied from interface:BindServletRequest
Returns theRebindInfo
present with the request- Specified by:
getRebindInfo
in interfaceBindServletRequest
- Returns:
RebindInfo
object- Throws:
DavException
- in case of an invalid or missing request body- See Also:
BindServletRequest.getRebindInfo()
-
getUnbindInfo
public UnbindInfo getUnbindInfo() throws DavException
Description copied from interface:BindServletRequest
Returns theUnbindInfo
present with the request- Specified by:
getUnbindInfo
in interfaceBindServletRequest
- Returns:
UnbindInfo
object- Throws:
DavException
- in case of an invalid or missing request body- See Also:
BindServletRequest.getUnbindInfo()
-
getBindInfo
public BindInfo getBindInfo() throws DavException
Description copied from interface:BindServletRequest
Returns theBindInfo
present with the request- Specified by:
getBindInfo
in interfaceBindServletRequest
- Returns:
BindInfo
object- Throws:
DavException
- in case of an invalid or missing request body- See Also:
BindServletRequest.getBindInfo()
-
getAuthType
public String getAuthType()
- Specified by:
getAuthType
in interfacejavax.servlet.http.HttpServletRequest
-
getCookies
public javax.servlet.http.Cookie[] getCookies()
- Specified by:
getCookies
in interfacejavax.servlet.http.HttpServletRequest
-
getDateHeader
public long getDateHeader(String s)
- Specified by:
getDateHeader
in interfacejavax.servlet.http.HttpServletRequest
-
getHeader
public String getHeader(String s)
- Specified by:
getHeader
in interfacejavax.servlet.http.HttpServletRequest
-
getHeaders
public Enumeration<String> getHeaders(String s)
- Specified by:
getHeaders
in interfacejavax.servlet.http.HttpServletRequest
-
getHeaderNames
public Enumeration<String> getHeaderNames()
- Specified by:
getHeaderNames
in interfacejavax.servlet.http.HttpServletRequest
-
getIntHeader
public int getIntHeader(String s)
- Specified by:
getIntHeader
in interfacejavax.servlet.http.HttpServletRequest
-
getMethod
public String getMethod()
- Specified by:
getMethod
in interfacejavax.servlet.http.HttpServletRequest
-
getPathInfo
public String getPathInfo()
- Specified by:
getPathInfo
in interfacejavax.servlet.http.HttpServletRequest
-
getPathTranslated
public String getPathTranslated()
- Specified by:
getPathTranslated
in interfacejavax.servlet.http.HttpServletRequest
-
getContextPath
public String getContextPath()
- Specified by:
getContextPath
in interfacejavax.servlet.http.HttpServletRequest
-
getQueryString
public String getQueryString()
- Specified by:
getQueryString
in interfacejavax.servlet.http.HttpServletRequest
-
getRemoteUser
public String getRemoteUser()
- Specified by:
getRemoteUser
in interfacejavax.servlet.http.HttpServletRequest
-
isUserInRole
public boolean isUserInRole(String s)
- Specified by:
isUserInRole
in interfacejavax.servlet.http.HttpServletRequest
-
getUserPrincipal
public Principal getUserPrincipal()
- Specified by:
getUserPrincipal
in interfacejavax.servlet.http.HttpServletRequest
-
getRequestedSessionId
public String getRequestedSessionId()
- Specified by:
getRequestedSessionId
in interfacejavax.servlet.http.HttpServletRequest
-
getRequestURI
public String getRequestURI()
- Specified by:
getRequestURI
in interfacejavax.servlet.http.HttpServletRequest
-
getRequestURL
public StringBuffer getRequestURL()
- Specified by:
getRequestURL
in interfacejavax.servlet.http.HttpServletRequest
-
getServletPath
public String getServletPath()
- Specified by:
getServletPath
in interfacejavax.servlet.http.HttpServletRequest
-
getSession
public javax.servlet.http.HttpSession getSession(boolean b)
- Specified by:
getSession
in interfacejavax.servlet.http.HttpServletRequest
-
getSession
public javax.servlet.http.HttpSession getSession()
- Specified by:
getSession
in interfacejavax.servlet.http.HttpServletRequest
-
isRequestedSessionIdValid
public boolean isRequestedSessionIdValid()
- Specified by:
isRequestedSessionIdValid
in interfacejavax.servlet.http.HttpServletRequest
-
isRequestedSessionIdFromCookie
public boolean isRequestedSessionIdFromCookie()
- Specified by:
isRequestedSessionIdFromCookie
in interfacejavax.servlet.http.HttpServletRequest
-
isRequestedSessionIdFromURL
public boolean isRequestedSessionIdFromURL()
- Specified by:
isRequestedSessionIdFromURL
in interfacejavax.servlet.http.HttpServletRequest
-
isRequestedSessionIdFromUrl
public boolean isRequestedSessionIdFromUrl()
- Specified by:
isRequestedSessionIdFromUrl
in interfacejavax.servlet.http.HttpServletRequest
-
getAttribute
public Object getAttribute(String s)
- Specified by:
getAttribute
in interfacejavax.servlet.ServletRequest
-
getAttributeNames
public Enumeration<String> getAttributeNames()
- Specified by:
getAttributeNames
in interfacejavax.servlet.ServletRequest
-
getCharacterEncoding
public String getCharacterEncoding()
- Specified by:
getCharacterEncoding
in interfacejavax.servlet.ServletRequest
-
setCharacterEncoding
public void setCharacterEncoding(String s) throws UnsupportedEncodingException
- Specified by:
setCharacterEncoding
in interfacejavax.servlet.ServletRequest
- Throws:
UnsupportedEncodingException
-
getContentLength
public int getContentLength()
- Specified by:
getContentLength
in interfacejavax.servlet.ServletRequest
-
getContentType
public String getContentType()
- Specified by:
getContentType
in interfacejavax.servlet.ServletRequest
-
getInputStream
public javax.servlet.ServletInputStream getInputStream() throws IOException
- Specified by:
getInputStream
in interfacejavax.servlet.ServletRequest
- Throws:
IOException
-
getParameter
public String getParameter(String s)
- Specified by:
getParameter
in interfacejavax.servlet.ServletRequest
-
getParameterNames
public Enumeration<String> getParameterNames()
- Specified by:
getParameterNames
in interfacejavax.servlet.ServletRequest
-
getParameterValues
public String[] getParameterValues(String s)
- Specified by:
getParameterValues
in interfacejavax.servlet.ServletRequest
-
getParameterMap
public Map<String,String[]> getParameterMap()
- Specified by:
getParameterMap
in interfacejavax.servlet.ServletRequest
-
getProtocol
public String getProtocol()
- Specified by:
getProtocol
in interfacejavax.servlet.ServletRequest
-
getScheme
public String getScheme()
- Specified by:
getScheme
in interfacejavax.servlet.ServletRequest
-
getServerName
public String getServerName()
- Specified by:
getServerName
in interfacejavax.servlet.ServletRequest
-
getServerPort
public int getServerPort()
- Specified by:
getServerPort
in interfacejavax.servlet.ServletRequest
-
getReader
public BufferedReader getReader() throws IOException
- Specified by:
getReader
in interfacejavax.servlet.ServletRequest
- Throws:
IOException
-
getRemoteAddr
public String getRemoteAddr()
- Specified by:
getRemoteAddr
in interfacejavax.servlet.ServletRequest
-
getRemoteHost
public String getRemoteHost()
- Specified by:
getRemoteHost
in interfacejavax.servlet.ServletRequest
-
setAttribute
public void setAttribute(String s, Object o)
- Specified by:
setAttribute
in interfacejavax.servlet.ServletRequest
-
removeAttribute
public void removeAttribute(String s)
- Specified by:
removeAttribute
in interfacejavax.servlet.ServletRequest
-
getLocale
public Locale getLocale()
- Specified by:
getLocale
in interfacejavax.servlet.ServletRequest
-
getLocales
public Enumeration<Locale> getLocales()
- Specified by:
getLocales
in interfacejavax.servlet.ServletRequest
-
isSecure
public boolean isSecure()
- Specified by:
isSecure
in interfacejavax.servlet.ServletRequest
-
getRequestDispatcher
public javax.servlet.RequestDispatcher getRequestDispatcher(String s)
- Specified by:
getRequestDispatcher
in interfacejavax.servlet.ServletRequest
-
getRealPath
public String getRealPath(String s)
- Specified by:
getRealPath
in interfacejavax.servlet.ServletRequest
-
getRemotePort
public int getRemotePort()
- Specified by:
getRemotePort
in interfacejavax.servlet.ServletRequest
-
getLocalName
public String getLocalName()
- Specified by:
getLocalName
in interfacejavax.servlet.ServletRequest
-
getLocalAddr
public String getLocalAddr()
- Specified by:
getLocalAddr
in interfacejavax.servlet.ServletRequest
-
getLocalPort
public int getLocalPort()
- Specified by:
getLocalPort
in interfacejavax.servlet.ServletRequest
-
changeSessionId
public String changeSessionId()
- Specified by:
changeSessionId
in interfacejavax.servlet.http.HttpServletRequest
-
authenticate
public boolean authenticate(javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
- Specified by:
authenticate
in interfacejavax.servlet.http.HttpServletRequest
- Throws:
IOException
javax.servlet.ServletException
-
login
public void login(String username, String password) throws javax.servlet.ServletException
- Specified by:
login
in interfacejavax.servlet.http.HttpServletRequest
- Throws:
javax.servlet.ServletException
-
logout
public void logout() throws javax.servlet.ServletException
- Specified by:
logout
in interfacejavax.servlet.http.HttpServletRequest
- Throws:
javax.servlet.ServletException
-
getParts
public Collection<javax.servlet.http.Part> getParts() throws IOException, javax.servlet.ServletException
- Specified by:
getParts
in interfacejavax.servlet.http.HttpServletRequest
- Throws:
IOException
javax.servlet.ServletException
-
getPart
public javax.servlet.http.Part getPart(String name) throws IOException, javax.servlet.ServletException
- Specified by:
getPart
in interfacejavax.servlet.http.HttpServletRequest
- Throws:
IOException
javax.servlet.ServletException
-
upgrade
public <T extends javax.servlet.http.HttpUpgradeHandler> T upgrade(Class<T> handlerClass) throws IOException, javax.servlet.ServletException
- Specified by:
upgrade
in interfacejavax.servlet.http.HttpServletRequest
- Throws:
IOException
javax.servlet.ServletException
-
getContentLengthLong
public long getContentLengthLong()
- Specified by:
getContentLengthLong
in interfacejavax.servlet.ServletRequest
-
getServletContext
public javax.servlet.ServletContext getServletContext()
- Specified by:
getServletContext
in interfacejavax.servlet.ServletRequest
-
startAsync
public javax.servlet.AsyncContext startAsync() throws IllegalStateException
- Specified by:
startAsync
in interfacejavax.servlet.ServletRequest
- Throws:
IllegalStateException
-
startAsync
public javax.servlet.AsyncContext startAsync(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse) throws IllegalStateException
- Specified by:
startAsync
in interfacejavax.servlet.ServletRequest
- Throws:
IllegalStateException
-
isAsyncStarted
public boolean isAsyncStarted()
- Specified by:
isAsyncStarted
in interfacejavax.servlet.ServletRequest
-
isAsyncSupported
public boolean isAsyncSupported()
- Specified by:
isAsyncSupported
in interfacejavax.servlet.ServletRequest
-
getAsyncContext
public javax.servlet.AsyncContext getAsyncContext()
- Specified by:
getAsyncContext
in interfacejavax.servlet.ServletRequest
-
getDispatcherType
public javax.servlet.DispatcherType getDispatcherType()
- Specified by:
getDispatcherType
in interfacejavax.servlet.ServletRequest
-
-