public class JerseyAdaptedHttpServletRequest
extends javax.servlet.http.HttpServletRequestWrapper
Modifier and Type | Field and Description |
---|---|
static String |
FEATURE_PATH_BASED_CONNEG |
static String |
PROPERTY_RESOURCE_PROVIDER_FACTORY |
static String |
PROPERTY_SERVLET_PATH |
Constructor and Description |
---|
JerseyAdaptedHttpServletRequest(javax.servlet.http.HttpServletRequest request,
javax.ws.rs.core.MediaType mediaType)
Create a request adapted for Jersey.
|
Modifier and Type | Method and Description |
---|---|
String |
getHeader(String headerName)
If the media type is specified we override the "Accept" header.
|
Enumeration |
getHeaderNames()
If the media type is specified we ensure the "Accept" header is supplied.
|
Enumeration |
getHeaders(String headerName)
If the media type is specified we override the "Accept" header.
|
authenticate, changeSessionId, getAuthType, getContextPath, getCookies, getDateHeader, getIntHeader, getMethod, getPart, getParts, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole, login, logout, upgrade
getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, isWrapperFor, isWrapperFor, removeAttribute, setAttribute, setCharacterEncoding, setRequest, startAsync, startAsync
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsync
public static final String PROPERTY_SERVLET_PATH
public static final String PROPERTY_RESOURCE_PROVIDER_FACTORY
public static final String FEATURE_PATH_BASED_CONNEG
public JerseyAdaptedHttpServletRequest(javax.servlet.http.HttpServletRequest request, javax.ws.rs.core.MediaType mediaType)
request
- The request.mediaType
- The specific media type requested.public String getHeader(String headerName)
getHeader
in interface javax.servlet.http.HttpServletRequest
getHeader
in class javax.servlet.http.HttpServletRequestWrapper
headerName
- The header name.public Enumeration getHeaders(String headerName)
getHeaders
in interface javax.servlet.http.HttpServletRequest
getHeaders
in class javax.servlet.http.HttpServletRequestWrapper
headerName
- The header name.public Enumeration getHeaderNames()
getHeaderNames
in interface javax.servlet.http.HttpServletRequest
getHeaderNames
in class javax.servlet.http.HttpServletRequestWrapper
Copyright © 2016. All rights reserved.