Class WebdavRequestImpl

java.lang.Object
org.apache.jackrabbit.webdav.WebdavRequestImpl
All Implemented Interfaces:
jakarta.servlet.http.HttpServletRequest, jakarta.servlet.ServletRequest, org.apache.jackrabbit.webdav.bind.BindServletRequest, ContentCodingAwareRequest, DavConstants, DavServletRequest, org.apache.jackrabbit.webdav.observation.ObservationDavServletRequest, org.apache.jackrabbit.webdav.ordering.OrderingDavServletRequest, org.apache.jackrabbit.webdav.transaction.TransactionDavServletRequest, org.apache.jackrabbit.webdav.version.DeltaVServletRequest, WebdavRequest

public class WebdavRequestImpl extends Object implements WebdavRequest, DavConstants, ContentCodingAwareRequest
WebdavRequestImpl...
  • Constructor Details

    • WebdavRequestImpl

      public WebdavRequestImpl(jakarta.servlet.http.HttpServletRequest httpRequest, DavLocatorFactory factory)
      Creates a new DavServletRequest with the given parameters.
    • WebdavRequestImpl

      public WebdavRequestImpl(jakarta.servlet.http.HttpServletRequest httpRequest, DavLocatorFactory factory, boolean createAbsoluteURI)
      Creates a new DavServletRequest 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 Details

    • 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 interface DavServletRequest
      Parameters:
      session -
      See Also:
    • getDavSession

      public DavSession getDavSession()
      Description copied from interface: DavServletRequest
      Returns the DavSession created for this request.
      Specified by:
      getDavSession in interface DavServletRequest
      Returns:
      session for this resource
      See Also:
    • getRequestLocator

      public DavResourceLocator getRequestLocator()
      Return a DavResourceLocator representing the request handle.
      Specified by:
      getRequestLocator in interface DavServletRequest
      Returns:
      locator of the requested resource
      See Also:
    • getDestinationLocator

      public DavResourceLocator getDestinationLocator() throws DavException
      Parse the destination header field and return the path of the destination resource.
      Specified by:
      getDestinationLocator in interface DavServletRequest
      Returns:
      path of the destination resource.
      Throws:
      DavException
      See Also:
    • getHrefLocator

      public DavResourceLocator getHrefLocator(String href) throws DavException
      Parse a href and return the path of the resource.
      Specified by:
      getHrefLocator in interface org.apache.jackrabbit.webdav.bind.BindServletRequest
      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 interface org.apache.jackrabbit.webdav.bind.BindServletRequest
      Returns:
      path of internal member resource.
    • isOverwrite

      public boolean isOverwrite()
      Return true if the overwrite header does not inhibit overwriting.
      Specified by:
      isOverwrite in interface DavServletRequest
      Returns:
      true if the overwrite header requests 'overwriting'
      See Also:
    • getDepth

      public int getDepth(int defaultValue)
      Description copied from interface: DavServletRequest
      Returns the integer representation of the Depth header or the given defaultValue, if the Depth header is missing.
      Specified by:
      getDepth in interface DavServletRequest
      Parameters:
      defaultValue - to be returned if no Depth header is present.
      Returns:
      integer representation of the Depth header or the given defaultValue.
      See Also:
    • getDepth

      public int getDepth()
      Description copied from interface: DavServletRequest
      Return the integer representation of the given Depth header. 'Infinity' is represented by DavConstants.DEPTH_INFINITY.
      Specified by:
      getDepth in interface DavServletRequest
      Returns:
      integer representation of the Depth header.
      See Also:
    • 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 interface DavServletRequest
      Returns:
      milliseconds indicating length of the timeout.
      See Also:
    • getLockToken

      public String getLockToken()
      Retrieve the lock token from the 'Lock-Token' header.
      Specified by:
      getLockToken in interface DavServletRequest
      Returns:
      String representing the lock token sent in the Lock-Token header.
      Throws:
      IllegalArgumentException - If the value has not the correct format.
      See Also:
    • getRequestDocument

      public Document getRequestDocument() throws DavException
      Description copied from interface: DavServletRequest
      Parse the Xml request body and return a Document.
      Specified by:
      getRequestDocument in interface DavServletRequest
      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:
    • getPropFindType

      public int getPropFindType() throws DavException
      Returns the type of PROPFIND as indicated by the request body.
      Specified by:
      getPropFindType in interface DavServletRequest
      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:
    • getPropFindProperties

      public DavPropertyNameSet getPropFindProperties() throws DavException
      Returns the set of properties requested by the PROPFIND body or an empty set if the type is either 'allprop' or 'propname'.
      Specified by:
      getPropFindProperties in interface DavServletRequest
      Returns:
      set of properties requested by the PROPFIND body or an empty set.
      Throws:
      DavException - In case of invalid request body
      See Also:
    • getRequestContentCodings

      public List<String> getRequestContentCodings()
      Specified by:
      getRequestContentCodings in interface ContentCodingAwareRequest
      Returns:
      content codings used in request
    • getAcceptableCodings

      public String getAcceptableCodings()
      Specified by:
      getAcceptableCodings in interface ContentCodingAwareRequest
      Returns:
      value suitable for Accept response field
    • getPropPatchChangeList

      public List<? extends PropEntry> getPropPatchChangeList() throws DavException
      Return a 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.
      Specified by:
      getPropPatchChangeList in interface DavServletRequest
      Returns:
      the list of change operations entries in the PROPPATCH request body
      Throws:
      DavException - In case of invalid request body
      See Also:
    • getLockInfo

      public org.apache.jackrabbit.webdav.lock.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. The LockInfo then only provides timeout and isDeep property and returns true on LockInfo.isRefreshLock()
      Specified by:
      getLockInfo in interface DavServletRequest
      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:
    • matchesIfHeader

      public boolean matchesIfHeader(DavResource resource)
      Test if the if header matches the given resource. The comparison is made with the resource href and the token returned from an exclusive write lock present on the resource.
      NOTE: If either the If header or the resource is null 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 a null lock token (e.g. for security reasons) or a lock token that does not match, the method will return false.
      Specified by:
      matchesIfHeader in interface DavServletRequest
      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:
    • matchesIfHeader

      public boolean matchesIfHeader(String href, String token, String eTag)
      Description copied from interface: DavServletRequest
      Returns true, if the If header present with the request matches to the given href, token and eTag.
      Specified by:
      matchesIfHeader in interface DavServletRequest
      Returns:
      true, if the test is successful, false otherwise.
      See Also:
    • getTransactionId

      public String getTransactionId()
      Description copied from interface: org.apache.jackrabbit.webdav.transaction.TransactionDavServletRequest
      Retrieve the transaction id from the TransactionId header.
      Specified by:
      getTransactionId in interface org.apache.jackrabbit.webdav.transaction.TransactionDavServletRequest
      Returns:
      transaction id as present in the TransactionId header or null.
      See Also:
      • TransactionDavServletRequest.getTransactionId()
    • getTransactionInfo

      public org.apache.jackrabbit.webdav.transaction.TransactionInfo getTransactionInfo() throws DavException
      Description copied from interface: org.apache.jackrabbit.webdav.transaction.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 interface org.apache.jackrabbit.webdav.transaction.TransactionDavServletRequest
      Returns:
      TransactionInfo object encapsulating the 'transactioninfo' Xml element present in the request body or null 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: org.apache.jackrabbit.webdav.observation.ObservationDavServletRequest
      Return the SubscriptionId header or null if no such header is present.
      Specified by:
      getSubscriptionId in interface org.apache.jackrabbit.webdav.observation.ObservationDavServletRequest
      Returns:
      the SubscriptionId header
      See Also:
      • ObservationDavServletRequest.getSubscriptionId()
    • getPollTimeout

      public long getPollTimeout()
      Description copied from interface: org.apache.jackrabbit.webdav.observation.ObservationDavServletRequest
      Returns the PollTimeout header or 0 (zero) if no such header is present.
      Specified by:
      getPollTimeout in interface org.apache.jackrabbit.webdav.observation.ObservationDavServletRequest
      Returns:
      milliseconds indicating length of the poll timeout.
      See Also:
      • ObservationDavServletRequest.getPollTimeout()
    • getSubscriptionInfo

      public org.apache.jackrabbit.webdav.observation.SubscriptionInfo getSubscriptionInfo() throws DavException
      Description copied from interface: org.apache.jackrabbit.webdav.observation.ObservationDavServletRequest
      Return a SubscriptionInfo object representing the subscription info present in the SUBSCRIBE request body or null if retrieving the subscription info fails.
      Specified by:
      getSubscriptionInfo in interface org.apache.jackrabbit.webdav.observation.ObservationDavServletRequest
      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: org.apache.jackrabbit.webdav.ordering.OrderingDavServletRequest
      Returns the Ordering-Type header.
      Specified by:
      getOrderingType in interface org.apache.jackrabbit.webdav.ordering.OrderingDavServletRequest
      Returns:
      the String value of the Ordering-Type header.
      See Also:
      • OrderingDavServletRequest.getOrderingType()
    • getPosition

      public org.apache.jackrabbit.webdav.ordering.Position getPosition()
      Description copied from interface: org.apache.jackrabbit.webdav.ordering.OrderingDavServletRequest
      Return a Position object encapsulating the Position header field or null if no Position header is present or does not contain a valid format.
      Specified by:
      getPosition in interface org.apache.jackrabbit.webdav.ordering.OrderingDavServletRequest
      Returns:
      Position object encapsulating the Position header
      See Also:
      • OrderingDavServletRequest.getPosition()
    • getOrderPatch

      public org.apache.jackrabbit.webdav.ordering.OrderPatch getOrderPatch() throws DavException
      Description copied from interface: org.apache.jackrabbit.webdav.ordering.OrderingDavServletRequest
      Return a OrderPatch object encapsulating the request body of an ORDERPATCH request or null if the request body was either missing or could not be parsed.
      Specified by:
      getOrderPatch in interface org.apache.jackrabbit.webdav.ordering.OrderingDavServletRequest
      Returns:
      OrderPatch object representing the orderpatch request body or null if the
      Throws:
      DavException
      See Also:
      • OrderingDavServletRequest.getOrderPatch()
    • getLabel

      public String getLabel()
      Description copied from interface: org.apache.jackrabbit.webdav.version.DeltaVServletRequest
      Returns the Label header or null
      Specified by:
      getLabel in interface org.apache.jackrabbit.webdav.version.DeltaVServletRequest
      Returns:
      label header or null
      See Also:
      • DeltaVServletRequest.getLabel()
    • getLabelInfo

      public org.apache.jackrabbit.webdav.version.LabelInfo getLabelInfo() throws DavException
      Description copied from interface: org.apache.jackrabbit.webdav.version.DeltaVServletRequest
      Return the request body as LabelInfo object or null if parsing the request body or the creation of the label info failed.
      Specified by:
      getLabelInfo in interface org.apache.jackrabbit.webdav.version.DeltaVServletRequest
      Returns:
      LabelInfo object or null
      Throws:
      DavException - in case of an invalid request body
      See Also:
      • DeltaVServletRequest.getLabelInfo()
    • getMergeInfo

      public org.apache.jackrabbit.webdav.version.MergeInfo getMergeInfo() throws DavException
      Description copied from interface: org.apache.jackrabbit.webdav.version.DeltaVServletRequest
      Return the request body as MergeInfo object or null if the creation failed due to invalid format.
      Specified by:
      getMergeInfo in interface org.apache.jackrabbit.webdav.version.DeltaVServletRequest
      Returns:
      MergeInfo object or null
      Throws:
      DavException - in case of an invalid request body
      See Also:
      • DeltaVServletRequest.getMergeInfo()
    • getUpdateInfo

      public org.apache.jackrabbit.webdav.version.UpdateInfo getUpdateInfo() throws DavException
      Description copied from interface: org.apache.jackrabbit.webdav.version.DeltaVServletRequest
      Parses the UPDATE request body a build the corresponding UpdateInfo object. If the request body is missing or does not of the required format null is returned.
      Specified by:
      getUpdateInfo in interface org.apache.jackrabbit.webdav.version.DeltaVServletRequest
      Returns:
      the parsed update request body or null
      Throws:
      DavException - in case of an invalid request body
      See Also:
      • DeltaVServletRequest.getUpdateInfo()
    • getReportInfo

      public org.apache.jackrabbit.webdav.version.report.ReportInfo getReportInfo() throws DavException
      Description copied from interface: org.apache.jackrabbit.webdav.version.DeltaVServletRequest
      Returns the request body and the Depth header as ReportInfo object. The default depth, if no Depth header, is DavConstants.DEPTH_0. If the request body could not be parsed into an Element null is returned.
      Specified by:
      getReportInfo in interface org.apache.jackrabbit.webdav.version.DeltaVServletRequest
      Returns:
      ReportInfo or null
      Throws:
      DavException - in case of an invalid request body
      See Also:
      • DeltaVServletRequest.getReportInfo()
    • getOptionsInfo

      public org.apache.jackrabbit.webdav.version.OptionsInfo getOptionsInfo() throws DavException
      Description copied from interface: org.apache.jackrabbit.webdav.version.DeltaVServletRequest
      Returns the OptionsInfo present with the request or null.
      Specified by:
      getOptionsInfo in interface org.apache.jackrabbit.webdav.version.DeltaVServletRequest
      Returns:
      OptionsInfo or null
      Throws:
      DavException - in case of an invalid request body
      See Also:
      • DeltaVServletRequest.getOptionsInfo()
    • getRebindInfo

      public org.apache.jackrabbit.webdav.bind.RebindInfo getRebindInfo() throws DavException
      Description copied from interface: org.apache.jackrabbit.webdav.bind.BindServletRequest
      Returns the RebindInfo present with the request
      Specified by:
      getRebindInfo in interface org.apache.jackrabbit.webdav.bind.BindServletRequest
      Returns:
      RebindInfo object
      Throws:
      DavException - in case of an invalid or missing request body
      See Also:
      • BindServletRequest.getRebindInfo()
    • getUnbindInfo

      public org.apache.jackrabbit.webdav.bind.UnbindInfo getUnbindInfo() throws DavException
      Description copied from interface: org.apache.jackrabbit.webdav.bind.BindServletRequest
      Returns the UnbindInfo present with the request
      Specified by:
      getUnbindInfo in interface org.apache.jackrabbit.webdav.bind.BindServletRequest
      Returns:
      UnbindInfo object
      Throws:
      DavException - in case of an invalid or missing request body
      See Also:
      • BindServletRequest.getUnbindInfo()
    • getBindInfo

      public org.apache.jackrabbit.webdav.bind.BindInfo getBindInfo() throws DavException
      Description copied from interface: org.apache.jackrabbit.webdav.bind.BindServletRequest
      Returns the BindInfo present with the request
      Specified by:
      getBindInfo in interface org.apache.jackrabbit.webdav.bind.BindServletRequest
      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 interface jakarta.servlet.http.HttpServletRequest
    • getCookies

      public jakarta.servlet.http.Cookie[] getCookies()
      Specified by:
      getCookies in interface jakarta.servlet.http.HttpServletRequest
    • getDateHeader

      public long getDateHeader(String s)
      Specified by:
      getDateHeader in interface jakarta.servlet.http.HttpServletRequest
    • getHeader

      public String getHeader(String s)
      Specified by:
      getHeader in interface jakarta.servlet.http.HttpServletRequest
    • getHeaders

      public Enumeration<String> getHeaders(String s)
      Specified by:
      getHeaders in interface jakarta.servlet.http.HttpServletRequest
    • getHeaderNames

      public Enumeration<String> getHeaderNames()
      Specified by:
      getHeaderNames in interface jakarta.servlet.http.HttpServletRequest
    • getIntHeader

      public int getIntHeader(String s)
      Specified by:
      getIntHeader in interface jakarta.servlet.http.HttpServletRequest
    • getMethod

      public String getMethod()
      Specified by:
      getMethod in interface jakarta.servlet.http.HttpServletRequest
    • getPathInfo

      public String getPathInfo()
      Specified by:
      getPathInfo in interface jakarta.servlet.http.HttpServletRequest
    • getPathTranslated

      public String getPathTranslated()
      Specified by:
      getPathTranslated in interface jakarta.servlet.http.HttpServletRequest
    • getContextPath

      public String getContextPath()
      Specified by:
      getContextPath in interface jakarta.servlet.http.HttpServletRequest
    • getQueryString

      public String getQueryString()
      Specified by:
      getQueryString in interface jakarta.servlet.http.HttpServletRequest
    • getRemoteUser

      public String getRemoteUser()
      Specified by:
      getRemoteUser in interface jakarta.servlet.http.HttpServletRequest
    • isUserInRole

      public boolean isUserInRole(String s)
      Specified by:
      isUserInRole in interface jakarta.servlet.http.HttpServletRequest
    • getUserPrincipal

      public Principal getUserPrincipal()
      Specified by:
      getUserPrincipal in interface jakarta.servlet.http.HttpServletRequest
    • getRequestedSessionId

      public String getRequestedSessionId()
      Specified by:
      getRequestedSessionId in interface jakarta.servlet.http.HttpServletRequest
    • getRequestURI

      public String getRequestURI()
      Specified by:
      getRequestURI in interface jakarta.servlet.http.HttpServletRequest
    • getRequestURL

      public StringBuffer getRequestURL()
      Specified by:
      getRequestURL in interface jakarta.servlet.http.HttpServletRequest
    • getServletPath

      public String getServletPath()
      Specified by:
      getServletPath in interface jakarta.servlet.http.HttpServletRequest
    • getSession

      public jakarta.servlet.http.HttpSession getSession(boolean b)
      Specified by:
      getSession in interface jakarta.servlet.http.HttpServletRequest
    • getSession

      public jakarta.servlet.http.HttpSession getSession()
      Specified by:
      getSession in interface jakarta.servlet.http.HttpServletRequest
    • isRequestedSessionIdValid

      public boolean isRequestedSessionIdValid()
      Specified by:
      isRequestedSessionIdValid in interface jakarta.servlet.http.HttpServletRequest
    • isRequestedSessionIdFromCookie

      public boolean isRequestedSessionIdFromCookie()
      Specified by:
      isRequestedSessionIdFromCookie in interface jakarta.servlet.http.HttpServletRequest
    • isRequestedSessionIdFromURL

      public boolean isRequestedSessionIdFromURL()
      Specified by:
      isRequestedSessionIdFromURL in interface jakarta.servlet.http.HttpServletRequest
    • getAttribute

      public Object getAttribute(String s)
      Specified by:
      getAttribute in interface jakarta.servlet.ServletRequest
    • getAttributeNames

      public Enumeration<String> getAttributeNames()
      Specified by:
      getAttributeNames in interface jakarta.servlet.ServletRequest
    • getCharacterEncoding

      public String getCharacterEncoding()
      Specified by:
      getCharacterEncoding in interface jakarta.servlet.ServletRequest
    • setCharacterEncoding

      public void setCharacterEncoding(String s) throws UnsupportedEncodingException
      Specified by:
      setCharacterEncoding in interface jakarta.servlet.ServletRequest
      Throws:
      UnsupportedEncodingException
    • getContentLength

      public int getContentLength()
      Specified by:
      getContentLength in interface jakarta.servlet.ServletRequest
    • getContentType

      public String getContentType()
      Specified by:
      getContentType in interface jakarta.servlet.ServletRequest
    • getInputStream

      public jakarta.servlet.ServletInputStream getInputStream() throws IOException
      Specified by:
      getInputStream in interface jakarta.servlet.ServletRequest
      Throws:
      IOException
    • getParameter

      public String getParameter(String s)
      Specified by:
      getParameter in interface jakarta.servlet.ServletRequest
    • getParameterNames

      public Enumeration<String> getParameterNames()
      Specified by:
      getParameterNames in interface jakarta.servlet.ServletRequest
    • getParameterValues

      public String[] getParameterValues(String s)
      Specified by:
      getParameterValues in interface jakarta.servlet.ServletRequest
    • getParameterMap

      public Map<String,String[]> getParameterMap()
      Specified by:
      getParameterMap in interface jakarta.servlet.ServletRequest
    • getProtocol

      public String getProtocol()
      Specified by:
      getProtocol in interface jakarta.servlet.ServletRequest
    • getScheme

      public String getScheme()
      Specified by:
      getScheme in interface jakarta.servlet.ServletRequest
    • getServerName

      public String getServerName()
      Specified by:
      getServerName in interface jakarta.servlet.ServletRequest
    • getServerPort

      public int getServerPort()
      Specified by:
      getServerPort in interface jakarta.servlet.ServletRequest
    • getReader

      public BufferedReader getReader() throws IOException
      Specified by:
      getReader in interface jakarta.servlet.ServletRequest
      Throws:
      IOException
    • getRemoteAddr

      public String getRemoteAddr()
      Specified by:
      getRemoteAddr in interface jakarta.servlet.ServletRequest
    • getRemoteHost

      public String getRemoteHost()
      Specified by:
      getRemoteHost in interface jakarta.servlet.ServletRequest
    • setAttribute

      public void setAttribute(String s, Object o)
      Specified by:
      setAttribute in interface jakarta.servlet.ServletRequest
    • removeAttribute

      public void removeAttribute(String s)
      Specified by:
      removeAttribute in interface jakarta.servlet.ServletRequest
    • getLocale

      public Locale getLocale()
      Specified by:
      getLocale in interface jakarta.servlet.ServletRequest
    • getLocales

      public Enumeration<Locale> getLocales()
      Specified by:
      getLocales in interface jakarta.servlet.ServletRequest
    • isSecure

      public boolean isSecure()
      Specified by:
      isSecure in interface jakarta.servlet.ServletRequest
    • getRequestDispatcher

      public jakarta.servlet.RequestDispatcher getRequestDispatcher(String s)
      Specified by:
      getRequestDispatcher in interface jakarta.servlet.ServletRequest
    • getRemotePort

      public int getRemotePort()
      Specified by:
      getRemotePort in interface jakarta.servlet.ServletRequest
    • getLocalName

      public String getLocalName()
      Specified by:
      getLocalName in interface jakarta.servlet.ServletRequest
    • getLocalAddr

      public String getLocalAddr()
      Specified by:
      getLocalAddr in interface jakarta.servlet.ServletRequest
    • getLocalPort

      public int getLocalPort()
      Specified by:
      getLocalPort in interface jakarta.servlet.ServletRequest
    • changeSessionId

      public String changeSessionId()
      Specified by:
      changeSessionId in interface jakarta.servlet.http.HttpServletRequest
    • authenticate

      public boolean authenticate(jakarta.servlet.http.HttpServletResponse response) throws IOException, jakarta.servlet.ServletException
      Specified by:
      authenticate in interface jakarta.servlet.http.HttpServletRequest
      Throws:
      IOException
      jakarta.servlet.ServletException
    • login

      public void login(String username, String password) throws jakarta.servlet.ServletException
      Specified by:
      login in interface jakarta.servlet.http.HttpServletRequest
      Throws:
      jakarta.servlet.ServletException
    • logout

      public void logout() throws jakarta.servlet.ServletException
      Specified by:
      logout in interface jakarta.servlet.http.HttpServletRequest
      Throws:
      jakarta.servlet.ServletException
    • getParts

      public Collection<jakarta.servlet.http.Part> getParts() throws IOException, jakarta.servlet.ServletException
      Specified by:
      getParts in interface jakarta.servlet.http.HttpServletRequest
      Throws:
      IOException
      jakarta.servlet.ServletException
    • getPart

      public jakarta.servlet.http.Part getPart(String name) throws IOException, jakarta.servlet.ServletException
      Specified by:
      getPart in interface jakarta.servlet.http.HttpServletRequest
      Throws:
      IOException
      jakarta.servlet.ServletException
    • upgrade

      public <T extends jakarta.servlet.http.HttpUpgradeHandler> T upgrade(Class<T> handlerClass) throws IOException, jakarta.servlet.ServletException
      Specified by:
      upgrade in interface jakarta.servlet.http.HttpServletRequest
      Throws:
      IOException
      jakarta.servlet.ServletException
    • getContentLengthLong

      public long getContentLengthLong()
      Specified by:
      getContentLengthLong in interface jakarta.servlet.ServletRequest
    • getServletContext

      public jakarta.servlet.ServletContext getServletContext()
      Specified by:
      getServletContext in interface jakarta.servlet.ServletRequest
    • startAsync

      public jakarta.servlet.AsyncContext startAsync() throws IllegalStateException
      Specified by:
      startAsync in interface jakarta.servlet.ServletRequest
      Throws:
      IllegalStateException
    • startAsync

      public jakarta.servlet.AsyncContext startAsync(jakarta.servlet.ServletRequest servletRequest, jakarta.servlet.ServletResponse servletResponse) throws IllegalStateException
      Specified by:
      startAsync in interface jakarta.servlet.ServletRequest
      Throws:
      IllegalStateException
    • isAsyncStarted

      public boolean isAsyncStarted()
      Specified by:
      isAsyncStarted in interface jakarta.servlet.ServletRequest
    • isAsyncSupported

      public boolean isAsyncSupported()
      Specified by:
      isAsyncSupported in interface jakarta.servlet.ServletRequest
    • getAsyncContext

      public jakarta.servlet.AsyncContext getAsyncContext()
      Specified by:
      getAsyncContext in interface jakarta.servlet.ServletRequest
    • getDispatcherType

      public jakarta.servlet.DispatcherType getDispatcherType()
      Specified by:
      getDispatcherType in interface jakarta.servlet.ServletRequest
    • getServletConnection

      public jakarta.servlet.ServletConnection getServletConnection()
      Specified by:
      getServletConnection in interface jakarta.servlet.ServletRequest
    • getProtocolRequestId

      public String getProtocolRequestId()
      Specified by:
      getProtocolRequestId in interface jakarta.servlet.ServletRequest
    • getRequestId

      public String getRequestId()
      Specified by:
      getRequestId in interface jakarta.servlet.ServletRequest