Interface JettyServerUpgradeRequest

All Superinterfaces:
UpgradeRequest
All Known Implementing Classes:
DelegatedServerUpgradeRequest

public interface JettyServerUpgradeRequest extends UpgradeRequest
  • Method Details

    • getSession

      Object getSession()
      Access the Servlet HTTP Session (if present)

      Note: Never present on a Client UpgradeRequest.

      Returns:
      the Servlet HTTPSession on server side UpgradeRequests
    • getCertificates

      X509Certificate[] getCertificates()
      Returns:
      The X509Certificate instance at request attribute "jakarta.servlet.request.X509Certificate" or null.
    • getHttpServletRequest

      jakarta.servlet.http.HttpServletRequest getHttpServletRequest()
      Returns:
      Immutable version of HttpServletRequest
    • getLocale

      Locale getLocale()
      Returns:
      The requested Locale
      See Also:
      • ServletRequest.getLocale()
    • getLocales

      Enumeration<Locale> getLocales()
      Returns:
      The requested Locales
      See Also:
      • ServletRequest.getLocales()
    • getLocalSocketAddress

      SocketAddress getLocalSocketAddress()
      Returns:
      The local requested address, which is typically an InetSocketAddress, but may be another derivation of SocketAddress
      See Also:
      • ServletRequest.getLocalAddr()
      • ServletRequest.getLocalPort()
    • getRemoteSocketAddress

      SocketAddress getRemoteSocketAddress()
      Returns:
      The remote request address, which is typically an InetSocketAddress, but may be another derivation of SocketAddress
      See Also:
      • ServletRequest.getRemoteAddr()
      • ServletRequest.getRemotePort()
    • getRequestPath

      String getRequestPath()
      Returns:
      The request URI path within the context
    • getServletAttribute

      Object getServletAttribute(String name)
      Parameters:
      name - Attribute name
      Returns:
      Attribute value or null
      See Also:
      • ServletRequest.getAttribute(String)
    • getServletAttributes

      Map<String,Object> getServletAttributes()
      Returns:
      Request attribute map
    • getServletParameters

      Map<String,List<String>> getServletParameters()
      Returns:
      Request parameters
      See Also:
      • ServletRequest.getParameterMap()
    • isUserInRole

      boolean isUserInRole(String role)
      Parameters:
      role - The user role
      Returns:
      True if the requests user has the role
      See Also:
      • HttpServletRequest.isUserInRole(String)
    • setServletAttribute

      void setServletAttribute(String name, Object value)
      Parameters:
      name - Attribute name
      value - Attribute value to set
      See Also:
      • ServletRequest.setAttribute(String, Object)