Interface JettyServerUpgradeRequest
- All Superinterfaces:
- UpgradeRequest
- 
Method SummaryModifier and TypeMethodDescriptionjavax.servlet.http.HttpServletRequestgetServletAttribute(String name) Access the Servlet HTTP Session (if present)booleanisUserInRole(String role) voidsetServletAttribute(String name, Object value) Methods inherited from interface UpgradeRequestgetCookies, getExtensions, getHeader, getHeaderInt, getHeaders, getHeaders, getHost, getHttpVersion, getMethod, getOrigin, getParameterMap, getProtocolVersion, getQueryString, getRequestURI, getSubProtocols, getUserPrincipal, hasSubProtocol, isSecure
- 
Method Details- 
getSessionObject getSession()Access the Servlet HTTP Session (if present)Note: Never present on a Client UpgradeRequest. - Returns:
- the Servlet HTTPSession on server side UpgradeRequests
 
- 
getCertificatesX509Certificate[] getCertificates()- Returns:
- The X509Certificateinstance at request attribute "javax.servlet.request.X509Certificate" or null.
 
- 
getHttpServletRequestjavax.servlet.http.HttpServletRequest getHttpServletRequest()- Returns:
- Immutable version of HttpServletRequest
 
- 
getLocaleLocale getLocale()- Returns:
- The requested Locale
- See Also:
 
- 
getLocalesEnumeration<Locale> getLocales()- Returns:
- The requested Locales
- See Also:
 
- 
getLocalSocketAddressSocketAddress getLocalSocketAddress()- Returns:
- The local requested address, which is typically an InetSocketAddress, but may be another derivation ofSocketAddress
- See Also:
 
- 
getRemoteSocketAddressSocketAddress getRemoteSocketAddress()- Returns:
- The remote request address, which is typically an InetSocketAddress, but may be another derivation ofSocketAddress
- See Also:
 
- 
getRequestPathString getRequestPath()- Returns:
- The request URI path within the context
 
- 
getServletAttribute
- 
getServletAttributes
- 
getServletParameters
- 
isUserInRole- Parameters:
- role- The user role
- Returns:
- True if the requests user has the role
- See Also:
 
- 
setServletAttribute
 
-