public abstract class AwsHttpServletRequest
extends java.lang.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 |
|---|---|
java.lang.String |
changeSessionId() |
protected java.lang.String |
decodeRequestPath(java.lang.String requestPath,
ContainerConfig config) |
protected java.lang.String |
generateQueryString(java.util.Map<java.lang.String,java.lang.String> parameters,
boolean encode,
java.lang.String encodeCharset)
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() |
java.lang.Object |
getAttribute(java.lang.String s) |
java.util.Enumeration<java.lang.String> |
getAttributeNames() |
javax.servlet.DispatcherType |
getDispatcherType() |
java.lang.String |
getLocalAddr() |
java.lang.String |
getLocalName() |
int |
getLocalPort() |
java.lang.String |
getRequestedSessionId() |
java.lang.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(java.lang.String headerValue)
Given the Cookie header value, parses it and creates a Cookie object
|
protected java.util.List<java.util.Map.Entry<java.lang.String,java.lang.String>> |
parseHeaderValue(java.lang.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(java.lang.String s) |
void |
setAttribute(java.lang.String s,
java.lang.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 java.lang.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 java.lang.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 java.lang.Object getAttribute(java.lang.String s)
getAttribute in interface javax.servlet.ServletRequestpublic java.util.Enumeration<java.lang.String> getAttributeNames()
getAttributeNames in interface javax.servlet.ServletRequestpublic java.lang.String getServerName()
getServerName in interface javax.servlet.ServletRequestpublic int getServerPort()
getServerPort in interface javax.servlet.ServletRequestpublic void setAttribute(java.lang.String s,
java.lang.Object o)
setAttribute in interface javax.servlet.ServletRequestpublic void removeAttribute(java.lang.String s)
removeAttribute in interface javax.servlet.ServletRequestpublic java.lang.String getLocalName()
getLocalName in interface javax.servlet.ServletRequestpublic java.lang.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(java.lang.String headerValue)
headerValue - The string value of the HTTP Cookie headerprotected java.lang.String generateQueryString(java.util.Map<java.lang.String,java.lang.String> parameters,
boolean encode,
java.lang.String encodeCharset)
throws javax.servlet.ServletException
parameters - A Map<String, String> of query string parametersencode - Whether the key and values should be URL encodedencodeCharset - Charset to use for encoding the query stringjavax.servlet.ServletExceptionprotected java.util.List<java.util.Map.Entry<java.lang.String,java.lang.String>> parseHeaderValue(java.lang.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 headerprotected java.lang.String decodeRequestPath(java.lang.String requestPath,
ContainerConfig config)
Copyright © 2018. All Rights Reserved.