public abstract class AwsHttpServletRequest extends Object implements javax.servlet.http.HttpServletRequest
HttpServletRequest can extend this class to reuse
the utility methods| Modifier and Type | Field and Description |
|---|---|
protected javax.servlet.DispatcherType |
dispatcherType |
| Modifier and Type | Method and Description |
|---|---|
String |
changeSessionId() |
protected String |
generateQueryString(Map<String,String> parameters)
Given a map of key/values query string parameters from API Gateway, creates a query string as it would have
been in the original url.
|
javax.servlet.AsyncContext |
getAsyncContext() |
Object |
getAttribute(String s) |
Enumeration<String> |
getAttributeNames() |
javax.servlet.DispatcherType |
getDispatcherType() |
String |
getLocalAddr() |
String |
getLocalName() |
int |
getLocalPort() |
String |
getRequestedSessionId() |
String |
getServerName() |
int |
getServerPort() |
javax.servlet.ServletContext |
getServletContext() |
javax.servlet.http.HttpSession |
getSession() |
javax.servlet.http.HttpSession |
getSession(boolean b) |
boolean |
isAsyncStarted() |
boolean |
isAsyncSupported() |
boolean |
isRequestedSessionIdFromCookie() |
boolean |
isRequestedSessionIdFromUrl()
Deprecated.
|
boolean |
isRequestedSessionIdFromURL() |
boolean |
isRequestedSessionIdValid() |
protected javax.servlet.http.Cookie[] |
parseCookieHeaderValue(String headerValue)
Given the Cookie header value, parses it and creates a Cookie object
|
protected List<Map.Entry<String,String>> |
parseHeaderValue(String headerValue)
Generic method to parse an HTTP header value and split it into a list of key/values for all its components.
|
void |
removeAttribute(String s) |
void |
setAttribute(String s,
Object o) |
void |
setDispatcherType(javax.servlet.DispatcherType type) |
void |
setServletContext(javax.servlet.ServletContext context) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitauthenticate, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPart, getParts, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestURI, getRequestURL, getServletPath, getUserPrincipal, isUserInRole, login, logout, upgradegetCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getInputStream, getLocale, getLocales, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, isSecure, setCharacterEncoding, startAsync, startAsyncpublic String getRequestedSessionId()
getRequestedSessionId in interface javax.servlet.http.HttpServletRequestpublic javax.servlet.http.HttpSession getSession(boolean b)
getSession in interface javax.servlet.http.HttpServletRequestpublic javax.servlet.http.HttpSession getSession()
getSession in interface javax.servlet.http.HttpServletRequestpublic String changeSessionId()
changeSessionId in interface javax.servlet.http.HttpServletRequestpublic boolean isRequestedSessionIdValid()
isRequestedSessionIdValid in interface javax.servlet.http.HttpServletRequestpublic boolean isRequestedSessionIdFromCookie()
isRequestedSessionIdFromCookie in interface javax.servlet.http.HttpServletRequestpublic boolean isRequestedSessionIdFromURL()
isRequestedSessionIdFromURL in interface javax.servlet.http.HttpServletRequest@Deprecated public boolean isRequestedSessionIdFromUrl()
isRequestedSessionIdFromUrl in interface javax.servlet.http.HttpServletRequestpublic Object getAttribute(String s)
getAttribute in interface javax.servlet.ServletRequestpublic Enumeration<String> getAttributeNames()
getAttributeNames in interface javax.servlet.ServletRequestpublic String getServerName()
getServerName in interface javax.servlet.ServletRequestpublic int getServerPort()
getServerPort in interface javax.servlet.ServletRequestpublic void setAttribute(String s, Object o)
setAttribute in interface javax.servlet.ServletRequestpublic void removeAttribute(String s)
removeAttribute in interface javax.servlet.ServletRequestpublic String getLocalName()
getLocalName in interface javax.servlet.ServletRequestpublic String getLocalAddr()
getLocalAddr in interface javax.servlet.ServletRequestpublic int getLocalPort()
getLocalPort in interface javax.servlet.ServletRequestpublic javax.servlet.ServletContext getServletContext()
getServletContext in interface javax.servlet.ServletRequestpublic boolean isAsyncStarted()
isAsyncStarted in interface javax.servlet.ServletRequestpublic boolean isAsyncSupported()
isAsyncSupported in interface javax.servlet.ServletRequestpublic javax.servlet.AsyncContext getAsyncContext()
getAsyncContext in interface javax.servlet.ServletRequestpublic javax.servlet.DispatcherType getDispatcherType()
getDispatcherType in interface javax.servlet.ServletRequestpublic void setDispatcherType(javax.servlet.DispatcherType type)
public void setServletContext(javax.servlet.ServletContext context)
protected javax.servlet.http.Cookie[] parseCookieHeaderValue(String headerValue)
headerValue - The string value of the HTTP Cookie headerprotected String generateQueryString(Map<String,String> parameters)
parameters - A Map<String, String> of query string parametersprotected List<Map.Entry<String,String>> parseHeaderValue(String headerValue)
Accept: application/json; application/xml will contain two
key value pairs with key null and the value set to application/json and application/xml respectively.headerValue - The string value for the HTTP headerCopyright © 2017. All Rights Reserved.