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 newDavServletRequestwith the given parameters.WebdavRequestImpl(javax.servlet.http.HttpServletRequest httpRequest, DavLocatorFactory factory, boolean createAbsoluteURI)Creates a newDavServletRequestwith the given parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanauthenticate(javax.servlet.http.HttpServletResponse response)StringchangeSessionId()StringgetAcceptableCodings()javax.servlet.AsyncContextgetAsyncContext()ObjectgetAttribute(String s)Enumeration<String>getAttributeNames()StringgetAuthType()BindInfogetBindInfo()Returns theBindInfopresent with the requestStringgetCharacterEncoding()intgetContentLength()longgetContentLengthLong()StringgetContentType()StringgetContextPath()javax.servlet.http.Cookie[]getCookies()longgetDateHeader(String s)DavSessiongetDavSession()Returns theDavSessioncreated for this request.intgetDepth()Return the integer representation of the givenDepth header.intgetDepth(int defaultValue)Returns the integer representation of theDepth headeror the given defaultValue, if the Depth header is missing.DavResourceLocatorgetDestinationLocator()Parse the destination header field and return the path of the destination resource.javax.servlet.DispatcherTypegetDispatcherType()StringgetHeader(String s)Enumeration<String>getHeaderNames()Enumeration<String>getHeaders(String s)DavResourceLocatorgetHrefLocator(String href)Parse a href and return the path of the resource.javax.servlet.ServletInputStreamgetInputStream()intgetIntHeader(String s)StringgetLabel()Returns the Label header ornullLabelInfogetLabelInfo()Return the request body asLabelInfoobject ornullif parsing the request body or the creation of the label info failed.StringgetLocalAddr()LocalegetLocale()Enumeration<Locale>getLocales()StringgetLocalName()intgetLocalPort()LockInfogetLockInfo()LockInfoobject encapsulating the information passed with a LOCK request if the LOCK request body was valid.StringgetLockToken()Retrieve the lock token from the 'Lock-Token' header.DavResourceLocatorgetMemberLocator(String segment)Returns the path of the member resource of the request resource which is identified by the segment parameter.MergeInfogetMergeInfo()Return the request body asMergeInfoobject ornullif the creation failed due to invalid format.StringgetMethod()OptionsInfogetOptionsInfo()Returns theOptionsInfopresent with the request ornull.StringgetOrderingType()Returns theOrdering-Type header.OrderPatchgetOrderPatch()Return aOrderPatchobject encapsulating the request body of an ORDERPATCH request ornullif the request body was either missing or could not be parsed.StringgetParameter(String s)Map<String,String[]>getParameterMap()Enumeration<String>getParameterNames()String[]getParameterValues(String s)javax.servlet.http.PartgetPart(String name)Collection<javax.servlet.http.Part>getParts()StringgetPathInfo()StringgetPathTranslated()longgetPollTimeout()Returns thePollTimeout headeror 0 (zero) if no such header is present.PositiongetPosition()Return aPositionobject encapsulating thePosition headerfield ornullif no Position header is present or does not contain a valid format.DavPropertyNameSetgetPropFindProperties()Returns the set of properties requested by the PROPFIND body or an empty set if thetypeis either 'allprop' or 'propname'.intgetPropFindType()Returns the type of PROPFIND as indicated by the request body.List<? extends PropEntry>getPropPatchChangeList()Return aListof property change operations.StringgetProtocol()StringgetQueryString()BufferedReadergetReader()StringgetRealPath(String s)RebindInfogetRebindInfo()Returns theRebindInfopresent with the requestStringgetRemoteAddr()StringgetRemoteHost()intgetRemotePort()StringgetRemoteUser()ReportInfogetReportInfo()Returns the request body and the Depth header asReportInfoobject.List<String>getRequestContentCodings()javax.servlet.RequestDispatchergetRequestDispatcher(String s)DocumentgetRequestDocument()Parse the Xml request body and return aDocument.StringgetRequestedSessionId()DavResourceLocatorgetRequestLocator()Return aDavResourceLocatorrepresenting the request handle.StringgetRequestURI()StringBuffergetRequestURL()StringgetScheme()StringgetServerName()intgetServerPort()javax.servlet.ServletContextgetServletContext()StringgetServletPath()javax.servlet.http.HttpSessiongetSession()javax.servlet.http.HttpSessiongetSession(boolean b)StringgetSubscriptionId()Return theSubscriptionId headerornullif no such header is present.SubscriptionInfogetSubscriptionInfo()Return aSubscriptionInfoobject representing the subscription info present in the SUBSCRIBE request body ornullif retrieving the subscription info fails.longgetTimeout()Parse the Timeout header and return a long representing the value.StringgetTransactionId()Retrieve the transaction id from theTransactionId header.TransactionInfogetTransactionInfo()Retrieve the 'transactioninfo' request body that must be included with the UNLOCK request of a transaction lock.UnbindInfogetUnbindInfo()Returns theUnbindInfopresent with the requestUpdateInfogetUpdateInfo()Parses the UPDATE request body a build the correspondingUpdateInfoobject.PrincipalgetUserPrincipal()booleanisAsyncStarted()booleanisAsyncSupported()booleanisOverwrite()Return true if the overwrite header does not inhibit overwriting.booleanisRequestedSessionIdFromCookie()booleanisRequestedSessionIdFromUrl()booleanisRequestedSessionIdFromURL()booleanisRequestedSessionIdValid()booleanisSecure()booleanisUserInRole(String s)voidlogin(String username, String password)voidlogout()booleanmatchesIfHeader(String href, String token, String eTag)Returns true, if theIf headerpresent with the request matches to the given href, token and eTag.booleanmatchesIfHeader(DavResource resource)Test if the if header matches the given resource.voidremoveAttribute(String s)voidsetAttribute(String s, Object o)voidsetCharacterEncoding(String s)voidsetDavSession(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.AsyncContextstartAsync()javax.servlet.AsyncContextstartAsync(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 newDavServletRequestwith the given parameters.
-
WebdavRequestImpl
public WebdavRequestImpl(javax.servlet.http.HttpServletRequest httpRequest, DavLocatorFactory factory, boolean createAbsoluteURI)Creates a newDavServletRequestwith 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:
setDavSessionin interfaceDavServletRequest- Parameters:
session-- See Also:
DavServletRequest.setDavSession(DavSession)
-
getDavSession
public DavSession getDavSession()
Description copied from interface:DavServletRequestReturns theDavSessioncreated for this request.- Specified by:
getDavSessionin interfaceDavServletRequest- Returns:
- session for this resource
- See Also:
DavServletRequest.getDavSession()
-
getRequestLocator
public DavResourceLocator getRequestLocator()
Return aDavResourceLocatorrepresenting the request handle.- Specified by:
getRequestLocatorin 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:
getDestinationLocatorin 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:
getHrefLocatorin 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:
getMemberLocatorin interfaceBindServletRequest- Returns:
- path of internal member resource.
-
isOverwrite
public boolean isOverwrite()
Return true if the overwrite header does not inhibit overwriting.- Specified by:
isOverwritein 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:DavServletRequestReturns the integer representation of theDepth headeror the given defaultValue, if the Depth header is missing.- Specified by:
getDepthin interfaceDavServletRequest- Parameters:
defaultValue- to be returned if no Depth header is present.- Returns:
- integer representation of the
Depth headeror the given defaultValue. - See Also:
DavServletRequest.getDepth(int)
-
getDepth
public int getDepth()
Description copied from interface:DavServletRequestReturn the integer representation of the givenDepth header. 'Infinity' is represented byDavConstants.DEPTH_INFINITY.- Specified by:
getDepthin 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_TIMEOUTis used as default value if no header is available or if the parsing fails.- Specified by:
getTimeoutin 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:
getLockTokenin 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:DavServletRequestParse the Xml request body and return aDocument.- Specified by:
getRequestDocumentin interfaceDavServletRequest- Returns:
- Document representing the Xml request body or
nullif 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 DavExceptionReturns the type of PROPFIND as indicated by the request body.- Specified by:
getPropFindTypein 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 thetypeis either 'allprop' or 'propname'.- Specified by:
getPropFindPropertiesin 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:
getRequestContentCodingsin interfaceContentCodingAwareRequest- Returns:
- content codings used in request
-
getAcceptableCodings
public String getAcceptableCodings()
- Specified by:
getAcceptableCodingsin interfaceContentCodingAwareRequest- Returns:
- value suitable for Accept response field
-
getPropPatchChangeList
public List<? extends PropEntry> getPropPatchChangeList() throws DavException
Return aListof 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:
getPropPatchChangeListin 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
LockInfoobject 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. TheLockInfothen only provides timeout and isDeep property and returns true onLockInfo.isRefreshLock()- Specified by:
getLockInfoin interfaceDavServletRequest- Returns:
- lock info object or
nullif 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 hrefand the token returned from an exclusive write lock present on the resource.
NOTE: If either the If header or the resource isnullor 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 anulllock token (e.g. for security reasons) or a lock token that does not match, the method will return false.- Specified by:
matchesIfHeaderin 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:DavServletRequestReturns true, if theIf headerpresent with the request matches to the given href, token and eTag.- Specified by:
matchesIfHeaderin 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:TransactionDavServletRequestRetrieve the transaction id from theTransactionId header.- Specified by:
getTransactionIdin interfaceTransactionDavServletRequest- Returns:
- transaction id as present in the
TransactionId headerornull. - See Also:
TransactionDavServletRequest.getTransactionId()
-
getTransactionInfo
public TransactionInfo getTransactionInfo() throws DavException
Description copied from interface:TransactionDavServletRequestRetrieve 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)nullis returned.- Specified by:
getTransactionInfoin interfaceTransactionDavServletRequest- Returns:
TransactionInfoobject encapsulating the 'transactioninfo' Xml element present in the request body ornullif 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:ObservationDavServletRequestReturn theSubscriptionId headerornullif no such header is present.- Specified by:
getSubscriptionIdin interfaceObservationDavServletRequest- Returns:
- the
SubscriptionId header - See Also:
ObservationDavServletRequest.getSubscriptionId()
-
getPollTimeout
public long getPollTimeout()
Description copied from interface:ObservationDavServletRequestReturns thePollTimeout headeror 0 (zero) if no such header is present.- Specified by:
getPollTimeoutin interfaceObservationDavServletRequest- Returns:
- milliseconds indicating length of the poll timeout.
- See Also:
ObservationDavServletRequest.getPollTimeout()
-
getSubscriptionInfo
public SubscriptionInfo getSubscriptionInfo() throws DavException
Description copied from interface:ObservationDavServletRequestReturn aSubscriptionInfoobject representing the subscription info present in the SUBSCRIBE request body ornullif retrieving the subscription info fails.- Specified by:
getSubscriptionInfoin interfaceObservationDavServletRequest- Returns:
- subscription info object encapsulating the SUBSCRIBE request body
or
nullif 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:OrderingDavServletRequestReturns theOrdering-Type header.- Specified by:
getOrderingTypein interfaceOrderingDavServletRequest- Returns:
- the String value of the
Ordering-Type header. - See Also:
OrderingDavServletRequest.getOrderingType()
-
getPosition
public Position getPosition()
Description copied from interface:OrderingDavServletRequestReturn aPositionobject encapsulating thePosition headerfield ornullif no Position header is present or does not contain a valid format.- Specified by:
getPositionin interfaceOrderingDavServletRequest- Returns:
Positionobject encapsulating thePosition header- See Also:
OrderingDavServletRequest.getPosition()
-
getOrderPatch
public OrderPatch getOrderPatch() throws DavException
Description copied from interface:OrderingDavServletRequestReturn aOrderPatchobject encapsulating the request body of an ORDERPATCH request ornullif the request body was either missing or could not be parsed.- Specified by:
getOrderPatchin interfaceOrderingDavServletRequest- Returns:
OrderPatchobject representing the orderpatch request body ornullif the- Throws:
DavException- See Also:
OrderingDavServletRequest.getOrderPatch()
-
getLabel
public String getLabel()
Description copied from interface:DeltaVServletRequestReturns the Label header ornull- Specified by:
getLabelin interfaceDeltaVServletRequest- Returns:
- label header or
null - See Also:
DeltaVServletRequest.getLabel()
-
getLabelInfo
public LabelInfo getLabelInfo() throws DavException
Description copied from interface:DeltaVServletRequestReturn the request body asLabelInfoobject ornullif parsing the request body or the creation of the label info failed.- Specified by:
getLabelInfoin interfaceDeltaVServletRequest- Returns:
LabelInfoobject ornull- Throws:
DavException- in case of an invalid request body- See Also:
DeltaVServletRequest.getLabelInfo()
-
getMergeInfo
public MergeInfo getMergeInfo() throws DavException
Description copied from interface:DeltaVServletRequestReturn the request body asMergeInfoobject ornullif the creation failed due to invalid format.- Specified by:
getMergeInfoin interfaceDeltaVServletRequest- Returns:
MergeInfoobject ornull- Throws:
DavException- in case of an invalid request body- See Also:
DeltaVServletRequest.getMergeInfo()
-
getUpdateInfo
public UpdateInfo getUpdateInfo() throws DavException
Description copied from interface:DeltaVServletRequestParses the UPDATE request body a build the correspondingUpdateInfoobject. If the request body is missing or does not of the required formatnullis returned.- Specified by:
getUpdateInfoin 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:DeltaVServletRequestReturns the request body and the Depth header asReportInfoobject. The default depth, if noDepth header, isDavConstants.DEPTH_0. If the request body could not be parsed into anElementnullis returned.- Specified by:
getReportInfoin interfaceDeltaVServletRequest- Returns:
ReportInfoornull- Throws:
DavException- in case of an invalid request body- See Also:
DeltaVServletRequest.getReportInfo()
-
getOptionsInfo
public OptionsInfo getOptionsInfo() throws DavException
Description copied from interface:DeltaVServletRequestReturns theOptionsInfopresent with the request ornull.- Specified by:
getOptionsInfoin interfaceDeltaVServletRequest- Returns:
OptionsInfoornull- Throws:
DavException- in case of an invalid request body- See Also:
DeltaVServletRequest.getOptionsInfo()
-
getRebindInfo
public RebindInfo getRebindInfo() throws DavException
Description copied from interface:BindServletRequestReturns theRebindInfopresent with the request- Specified by:
getRebindInfoin interfaceBindServletRequest- Returns:
RebindInfoobject- 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:BindServletRequestReturns theUnbindInfopresent with the request- Specified by:
getUnbindInfoin interfaceBindServletRequest- Returns:
UnbindInfoobject- 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:BindServletRequestReturns theBindInfopresent with the request- Specified by:
getBindInfoin interfaceBindServletRequest- Returns:
BindInfoobject- Throws:
DavException- in case of an invalid or missing request body- See Also:
BindServletRequest.getBindInfo()
-
getAuthType
public String getAuthType()
- Specified by:
getAuthTypein interfacejavax.servlet.http.HttpServletRequest
-
getCookies
public javax.servlet.http.Cookie[] getCookies()
- Specified by:
getCookiesin interfacejavax.servlet.http.HttpServletRequest
-
getDateHeader
public long getDateHeader(String s)
- Specified by:
getDateHeaderin interfacejavax.servlet.http.HttpServletRequest
-
getHeader
public String getHeader(String s)
- Specified by:
getHeaderin interfacejavax.servlet.http.HttpServletRequest
-
getHeaders
public Enumeration<String> getHeaders(String s)
- Specified by:
getHeadersin interfacejavax.servlet.http.HttpServletRequest
-
getHeaderNames
public Enumeration<String> getHeaderNames()
- Specified by:
getHeaderNamesin interfacejavax.servlet.http.HttpServletRequest
-
getIntHeader
public int getIntHeader(String s)
- Specified by:
getIntHeaderin interfacejavax.servlet.http.HttpServletRequest
-
getMethod
public String getMethod()
- Specified by:
getMethodin interfacejavax.servlet.http.HttpServletRequest
-
getPathInfo
public String getPathInfo()
- Specified by:
getPathInfoin interfacejavax.servlet.http.HttpServletRequest
-
getPathTranslated
public String getPathTranslated()
- Specified by:
getPathTranslatedin interfacejavax.servlet.http.HttpServletRequest
-
getContextPath
public String getContextPath()
- Specified by:
getContextPathin interfacejavax.servlet.http.HttpServletRequest
-
getQueryString
public String getQueryString()
- Specified by:
getQueryStringin interfacejavax.servlet.http.HttpServletRequest
-
getRemoteUser
public String getRemoteUser()
- Specified by:
getRemoteUserin interfacejavax.servlet.http.HttpServletRequest
-
isUserInRole
public boolean isUserInRole(String s)
- Specified by:
isUserInRolein interfacejavax.servlet.http.HttpServletRequest
-
getUserPrincipal
public Principal getUserPrincipal()
- Specified by:
getUserPrincipalin interfacejavax.servlet.http.HttpServletRequest
-
getRequestedSessionId
public String getRequestedSessionId()
- Specified by:
getRequestedSessionIdin interfacejavax.servlet.http.HttpServletRequest
-
getRequestURI
public String getRequestURI()
- Specified by:
getRequestURIin interfacejavax.servlet.http.HttpServletRequest
-
getRequestURL
public StringBuffer getRequestURL()
- Specified by:
getRequestURLin interfacejavax.servlet.http.HttpServletRequest
-
getServletPath
public String getServletPath()
- Specified by:
getServletPathin interfacejavax.servlet.http.HttpServletRequest
-
getSession
public javax.servlet.http.HttpSession getSession(boolean b)
- Specified by:
getSessionin interfacejavax.servlet.http.HttpServletRequest
-
getSession
public javax.servlet.http.HttpSession getSession()
- Specified by:
getSessionin interfacejavax.servlet.http.HttpServletRequest
-
isRequestedSessionIdValid
public boolean isRequestedSessionIdValid()
- Specified by:
isRequestedSessionIdValidin interfacejavax.servlet.http.HttpServletRequest
-
isRequestedSessionIdFromCookie
public boolean isRequestedSessionIdFromCookie()
- Specified by:
isRequestedSessionIdFromCookiein interfacejavax.servlet.http.HttpServletRequest
-
isRequestedSessionIdFromURL
public boolean isRequestedSessionIdFromURL()
- Specified by:
isRequestedSessionIdFromURLin interfacejavax.servlet.http.HttpServletRequest
-
isRequestedSessionIdFromUrl
public boolean isRequestedSessionIdFromUrl()
- Specified by:
isRequestedSessionIdFromUrlin interfacejavax.servlet.http.HttpServletRequest
-
getAttribute
public Object getAttribute(String s)
- Specified by:
getAttributein interfacejavax.servlet.ServletRequest
-
getAttributeNames
public Enumeration<String> getAttributeNames()
- Specified by:
getAttributeNamesin interfacejavax.servlet.ServletRequest
-
getCharacterEncoding
public String getCharacterEncoding()
- Specified by:
getCharacterEncodingin interfacejavax.servlet.ServletRequest
-
setCharacterEncoding
public void setCharacterEncoding(String s) throws UnsupportedEncodingException
- Specified by:
setCharacterEncodingin interfacejavax.servlet.ServletRequest- Throws:
UnsupportedEncodingException
-
getContentLength
public int getContentLength()
- Specified by:
getContentLengthin interfacejavax.servlet.ServletRequest
-
getContentType
public String getContentType()
- Specified by:
getContentTypein interfacejavax.servlet.ServletRequest
-
getInputStream
public javax.servlet.ServletInputStream getInputStream() throws IOException- Specified by:
getInputStreamin interfacejavax.servlet.ServletRequest- Throws:
IOException
-
getParameter
public String getParameter(String s)
- Specified by:
getParameterin interfacejavax.servlet.ServletRequest
-
getParameterNames
public Enumeration<String> getParameterNames()
- Specified by:
getParameterNamesin interfacejavax.servlet.ServletRequest
-
getParameterValues
public String[] getParameterValues(String s)
- Specified by:
getParameterValuesin interfacejavax.servlet.ServletRequest
-
getParameterMap
public Map<String,String[]> getParameterMap()
- Specified by:
getParameterMapin interfacejavax.servlet.ServletRequest
-
getProtocol
public String getProtocol()
- Specified by:
getProtocolin interfacejavax.servlet.ServletRequest
-
getScheme
public String getScheme()
- Specified by:
getSchemein interfacejavax.servlet.ServletRequest
-
getServerName
public String getServerName()
- Specified by:
getServerNamein interfacejavax.servlet.ServletRequest
-
getServerPort
public int getServerPort()
- Specified by:
getServerPortin interfacejavax.servlet.ServletRequest
-
getReader
public BufferedReader getReader() throws IOException
- Specified by:
getReaderin interfacejavax.servlet.ServletRequest- Throws:
IOException
-
getRemoteAddr
public String getRemoteAddr()
- Specified by:
getRemoteAddrin interfacejavax.servlet.ServletRequest
-
getRemoteHost
public String getRemoteHost()
- Specified by:
getRemoteHostin interfacejavax.servlet.ServletRequest
-
setAttribute
public void setAttribute(String s, Object o)
- Specified by:
setAttributein interfacejavax.servlet.ServletRequest
-
removeAttribute
public void removeAttribute(String s)
- Specified by:
removeAttributein interfacejavax.servlet.ServletRequest
-
getLocale
public Locale getLocale()
- Specified by:
getLocalein interfacejavax.servlet.ServletRequest
-
getLocales
public Enumeration<Locale> getLocales()
- Specified by:
getLocalesin interfacejavax.servlet.ServletRequest
-
isSecure
public boolean isSecure()
- Specified by:
isSecurein interfacejavax.servlet.ServletRequest
-
getRequestDispatcher
public javax.servlet.RequestDispatcher getRequestDispatcher(String s)
- Specified by:
getRequestDispatcherin interfacejavax.servlet.ServletRequest
-
getRealPath
public String getRealPath(String s)
- Specified by:
getRealPathin interfacejavax.servlet.ServletRequest
-
getRemotePort
public int getRemotePort()
- Specified by:
getRemotePortin interfacejavax.servlet.ServletRequest
-
getLocalName
public String getLocalName()
- Specified by:
getLocalNamein interfacejavax.servlet.ServletRequest
-
getLocalAddr
public String getLocalAddr()
- Specified by:
getLocalAddrin interfacejavax.servlet.ServletRequest
-
getLocalPort
public int getLocalPort()
- Specified by:
getLocalPortin interfacejavax.servlet.ServletRequest
-
changeSessionId
public String changeSessionId()
- Specified by:
changeSessionIdin interfacejavax.servlet.http.HttpServletRequest
-
authenticate
public boolean authenticate(javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException- Specified by:
authenticatein interfacejavax.servlet.http.HttpServletRequest- Throws:
IOExceptionjavax.servlet.ServletException
-
login
public void login(String username, String password) throws javax.servlet.ServletException
- Specified by:
loginin interfacejavax.servlet.http.HttpServletRequest- Throws:
javax.servlet.ServletException
-
logout
public void logout() throws javax.servlet.ServletException- Specified by:
logoutin interfacejavax.servlet.http.HttpServletRequest- Throws:
javax.servlet.ServletException
-
getParts
public Collection<javax.servlet.http.Part> getParts() throws IOException, javax.servlet.ServletException
- Specified by:
getPartsin interfacejavax.servlet.http.HttpServletRequest- Throws:
IOExceptionjavax.servlet.ServletException
-
getPart
public javax.servlet.http.Part getPart(String name) throws IOException, javax.servlet.ServletException
- Specified by:
getPartin interfacejavax.servlet.http.HttpServletRequest- Throws:
IOExceptionjavax.servlet.ServletException
-
upgrade
public <T extends javax.servlet.http.HttpUpgradeHandler> T upgrade(Class<T> handlerClass) throws IOException, javax.servlet.ServletException
- Specified by:
upgradein interfacejavax.servlet.http.HttpServletRequest- Throws:
IOExceptionjavax.servlet.ServletException
-
getContentLengthLong
public long getContentLengthLong()
- Specified by:
getContentLengthLongin interfacejavax.servlet.ServletRequest
-
getServletContext
public javax.servlet.ServletContext getServletContext()
- Specified by:
getServletContextin interfacejavax.servlet.ServletRequest
-
startAsync
public javax.servlet.AsyncContext startAsync() throws IllegalStateException- Specified by:
startAsyncin interfacejavax.servlet.ServletRequest- Throws:
IllegalStateException
-
startAsync
public javax.servlet.AsyncContext startAsync(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse) throws IllegalStateException- Specified by:
startAsyncin interfacejavax.servlet.ServletRequest- Throws:
IllegalStateException
-
isAsyncStarted
public boolean isAsyncStarted()
- Specified by:
isAsyncStartedin interfacejavax.servlet.ServletRequest
-
isAsyncSupported
public boolean isAsyncSupported()
- Specified by:
isAsyncSupportedin interfacejavax.servlet.ServletRequest
-
getAsyncContext
public javax.servlet.AsyncContext getAsyncContext()
- Specified by:
getAsyncContextin interfacejavax.servlet.ServletRequest
-
getDispatcherType
public javax.servlet.DispatcherType getDispatcherType()
- Specified by:
getDispatcherTypein interfacejavax.servlet.ServletRequest
-
-