Class AwsProxyHttpServletRequest
java.lang.Object
com.amazonaws.serverless.proxy.internal.servlet.AwsHttpServletRequest
com.amazonaws.serverless.proxy.internal.servlet.AwsProxyHttpServletRequest
- All Implemented Interfaces:
javax.servlet.http.HttpServletRequest,javax.servlet.ServletRequest
Implementation of the
HttpServletRequest interface that supports AwsProxyRequest object.
This object is initialized with an AwsProxyRequest event and a SecurityContext generated
by an implementation of the SecurityContextWriter.-
Nested Class Summary
Nested classes/interfaces inherited from class com.amazonaws.serverless.proxy.internal.servlet.AwsHttpServletRequest
AwsHttpServletRequest.HeaderValue -
Field Summary
Fields inherited from class com.amazonaws.serverless.proxy.internal.servlet.AwsHttpServletRequest
containerHandler, requestInputStream, responseFields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH -
Constructor Summary
ConstructorsConstructorDescriptionAwsProxyHttpServletRequest(AwsProxyRequest awsProxyRequest, com.amazonaws.services.lambda.runtime.Context lambdaContext, javax.ws.rs.core.SecurityContext awsSecurityContext)AwsProxyHttpServletRequest(AwsProxyRequest awsProxyRequest, com.amazonaws.services.lambda.runtime.Context lambdaContext, javax.ws.rs.core.SecurityContext awsSecurityContext, ContainerConfig config) -
Method Summary
Modifier and TypeMethodDescriptionbooleanauthenticate(javax.servlet.http.HttpServletResponse httpServletResponse)javax.servlet.AsyncContextintlongjavax.servlet.http.Cookie[]longgetDateHeader(String s)getHeaders(String s)javax.servlet.ServletInputStreamintgetIntHeader(String s)getParameter(String s)String[]javax.servlet.http.PartCollection<javax.servlet.http.Part>getParts()getRealPath(String s)Deprecated.intjavax.servlet.RequestDispatcherintbooleanbooleanbooleanisSecure()booleanisUserInRole(String s)voidvoidlogout()voidjavax.servlet.AsyncContextjavax.servlet.AsyncContextstartAsync(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse)<T extends javax.servlet.http.HttpUpgradeHandler>
TMethods inherited from class com.amazonaws.serverless.proxy.internal.servlet.AwsHttpServletRequest
appendCharacterEncoding, bodyStringToInputStream, changeSessionId, generateContextPath, generateParameterMap, generateQueryString, generateRequestURL, getAttribute, getAttributeNames, getDispatcherType, getFirstQueryParamValue, getFormBodyParameterCaseInsensitive, getFormUrlEncodedParametersMap, getLocalAddr, getLocalName, getLocalPort, getMultipartFormParametersMap, getQueryParamValues, getRequestedSessionId, getResponse, getSchemeFromHeader, getServletContext, getServletPath, getSession, getSession, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, parseCharacterEncoding, parseCookieHeaderValue, parseHeaderValue, parseHeaderValue, removeAttribute, setAttribute, setContainerHandler, setResponse, setServletContext
-
Constructor Details
-
AwsProxyHttpServletRequest
public AwsProxyHttpServletRequest(AwsProxyRequest awsProxyRequest, com.amazonaws.services.lambda.runtime.Context lambdaContext, javax.ws.rs.core.SecurityContext awsSecurityContext) -
AwsProxyHttpServletRequest
public AwsProxyHttpServletRequest(AwsProxyRequest awsProxyRequest, com.amazonaws.services.lambda.runtime.Context lambdaContext, javax.ws.rs.core.SecurityContext awsSecurityContext, ContainerConfig config)
-
-
Method Details
-
getAwsProxyRequest
-
getAuthType
-
getCookies
public javax.servlet.http.Cookie[] getCookies() -
getDateHeader
-
getHeader
-
getHeaders
-
getHeaderNames
-
getIntHeader
-
getMethod
-
getPathInfo
-
getPathTranslated
-
getContextPath
-
getQueryString
-
getRemoteUser
-
isUserInRole
-
getUserPrincipal
-
getRequestURI
-
getRequestURL
-
authenticate
public boolean authenticate(javax.servlet.http.HttpServletResponse httpServletResponse) throws IOException, javax.servlet.ServletException- Throws:
IOExceptionjavax.servlet.ServletException
-
login
- Throws:
javax.servlet.ServletException
-
logout
public void logout() throws javax.servlet.ServletException- Throws:
javax.servlet.ServletException
-
getParts
public Collection<javax.servlet.http.Part> getParts() throws IOException, javax.servlet.ServletException- Throws:
IOExceptionjavax.servlet.ServletException
-
getPart
public javax.servlet.http.Part getPart(String s) throws IOException, javax.servlet.ServletException- Throws:
IOExceptionjavax.servlet.ServletException
-
upgrade
public <T extends javax.servlet.http.HttpUpgradeHandler> T upgrade(Class<T> aClass) throws IOException, javax.servlet.ServletException- Throws:
IOExceptionjavax.servlet.ServletException
-
getCharacterEncoding
-
setCharacterEncoding
- Throws:
UnsupportedEncodingException
-
getContentLength
public int getContentLength() -
getContentLengthLong
public long getContentLengthLong() -
getContentType
-
getParameter
-
getParameterNames
-
getParameterValues
-
getParameterMap
-
getProtocol
-
getScheme
-
getServerName
- Specified by:
getServerNamein interfacejavax.servlet.ServletRequest- Overrides:
getServerNamein classAwsHttpServletRequest
-
getServerPort
public int getServerPort()- Specified by:
getServerPortin interfacejavax.servlet.ServletRequest- Overrides:
getServerPortin classAwsHttpServletRequest
-
getInputStream
- Throws:
IOException
-
getReader
- Throws:
IOException
-
getRemoteAddr
-
getRemoteHost
-
getLocale
-
getLocales
-
isSecure
public boolean isSecure() -
getRequestDispatcher
-
getRealPath
Deprecated. -
getRemotePort
public int getRemotePort() -
isAsyncSupported
public boolean isAsyncSupported()- Specified by:
isAsyncSupportedin interfacejavax.servlet.ServletRequest- Overrides:
isAsyncSupportedin classAwsHttpServletRequest
-
isAsyncStarted
public boolean isAsyncStarted()- Specified by:
isAsyncStartedin interfacejavax.servlet.ServletRequest- Overrides:
isAsyncStartedin classAwsHttpServletRequest
-
startAsync
- Throws:
IllegalStateException
-
startAsync
public javax.servlet.AsyncContext startAsync(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse) throws IllegalStateException- Throws:
IllegalStateException
-
getAsyncContext
public javax.servlet.AsyncContext getAsyncContext()
-