Class AwsProxyHttpServletRequest
java.lang.Object
com.amazonaws.serverless.proxy.internal.servlet.AwsHttpServletRequest
com.amazonaws.serverless.proxy.internal.servlet.AwsProxyHttpServletRequest
- All Implemented Interfaces:
jakarta.servlet.http.HttpServletRequest,jakarta.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 jakarta.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH -
Constructor Summary
ConstructorsConstructorDescriptionAwsProxyHttpServletRequest(AwsProxyRequest awsProxyRequest, com.amazonaws.services.lambda.runtime.Context lambdaContext, jakarta.ws.rs.core.SecurityContext awsSecurityContext) AwsProxyHttpServletRequest(AwsProxyRequest awsProxyRequest, com.amazonaws.services.lambda.runtime.Context lambdaContext, jakarta.ws.rs.core.SecurityContext awsSecurityContext, ContainerConfig config) -
Method Summary
Modifier and TypeMethodDescriptionbooleanauthenticate(jakarta.servlet.http.HttpServletResponse httpServletResponse) jakarta.servlet.AsyncContextintlongjakarta.servlet.http.Cookie[]longgetHeaders(String s) jakarta.servlet.ServletInputStreamintString[]intjakarta.servlet.RequestDispatcherintjakarta.servlet.ServletConnectionbooleanbooleanbooleanisSecure()booleanvoidvoidlogout()voidjakarta.servlet.AsyncContextjakarta.servlet.AsyncContextstartAsync(jakarta.servlet.ServletRequest servletRequest, jakarta.servlet.ServletResponse servletResponse) <T extends jakarta.servlet.http.HttpUpgradeHandler>
TMethods inherited from class com.amazonaws.serverless.proxy.internal.servlet.AwsHttpServletRequest
bodyStringToInputStream, changeSessionId, decodeValueIfEncoded, generateContextPath, generateParameterMap, generateParameterMap, generateQueryString, generateRequestURL, getAttribute, getAttributeNames, getCookieProcessor, getDispatcherType, getFirstQueryParamValue, getFormBodyParameterCaseInsensitive, getFormUrlEncodedParametersMap, getLocalAddr, getLocalName, getLocalPort, getMultipartFormParametersMap, getPart, getParts, getQueryParamValues, getQueryParamValuesAsList, getRequestedSessionId, getResponse, getSchemeFromHeader, getServletContext, getServletPath, getSession, getSession, isRequestedSessionIdFromCookie, isRequestedSessionIdFromURL, isRequestedSessionIdValid, parseAcceptLanguageHeader, parseCookieHeaderValue, parseHeaderValue, parseHeaderValue, parseLanguageTag, removeAttribute, setAttribute, setContainerHandler, setResponse, setServletContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.servlet.http.HttpServletRequest
getHttpServletMapping, getTrailerFields, isTrailerFieldsReady, newPushBuilder
-
Constructor Details
-
AwsProxyHttpServletRequest
public AwsProxyHttpServletRequest(AwsProxyRequest awsProxyRequest, com.amazonaws.services.lambda.runtime.Context lambdaContext, jakarta.ws.rs.core.SecurityContext awsSecurityContext) -
AwsProxyHttpServletRequest
public AwsProxyHttpServletRequest(AwsProxyRequest awsProxyRequest, com.amazonaws.services.lambda.runtime.Context lambdaContext, jakarta.ws.rs.core.SecurityContext awsSecurityContext, ContainerConfig config)
-
-
Method Details
-
getAwsProxyRequest
-
getAuthType
-
getCookies
public jakarta.servlet.http.Cookie[] getCookies() -
getDateHeader
-
getHeader
-
getHeaders
-
getHeaderNames
-
getIntHeader
-
getMethod
-
getPathInfo
-
getPathTranslated
-
getContextPath
-
getQueryString
-
getRemoteUser
-
isUserInRole
-
getUserPrincipal
-
getRequestURI
-
getRequestURL
-
authenticate
public boolean authenticate(jakarta.servlet.http.HttpServletResponse httpServletResponse) throws IOException, jakarta.servlet.ServletException - Throws:
IOExceptionjakarta.servlet.ServletException
-
login
- Throws:
jakarta.servlet.ServletException
-
logout
public void logout() throws jakarta.servlet.ServletException- Throws:
jakarta.servlet.ServletException
-
upgrade
public <T extends jakarta.servlet.http.HttpUpgradeHandler> T upgrade(Class<T> aClass) throws IOException, jakarta.servlet.ServletException - Throws:
IOExceptionjakarta.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 interfacejakarta.servlet.ServletRequest- Overrides:
getServerNamein classAwsHttpServletRequest
-
getServerPort
public int getServerPort()- Specified by:
getServerPortin interfacejakarta.servlet.ServletRequest- Overrides:
getServerPortin classAwsHttpServletRequest
-
getInputStream
- Throws:
IOException
-
getReader
- Throws:
IOException
-
getRemoteAddr
-
getRemoteHost
-
getLocale
-
getLocales
-
isSecure
public boolean isSecure() -
getRequestDispatcher
-
getRemotePort
public int getRemotePort() -
isAsyncSupported
public boolean isAsyncSupported()- Specified by:
isAsyncSupportedin interfacejakarta.servlet.ServletRequest- Overrides:
isAsyncSupportedin classAwsHttpServletRequest
-
isAsyncStarted
public boolean isAsyncStarted()- Specified by:
isAsyncStartedin interfacejakarta.servlet.ServletRequest- Overrides:
isAsyncStartedin classAwsHttpServletRequest
-
startAsync
- Throws:
IllegalStateException
-
startAsync
public jakarta.servlet.AsyncContext startAsync(jakarta.servlet.ServletRequest servletRequest, jakarta.servlet.ServletResponse servletResponse) throws IllegalStateException - Throws:
IllegalStateException
-
getAsyncContext
public jakarta.servlet.AsyncContext getAsyncContext() -
getRequestId
-
getProtocolRequestId
-
getServletConnection
public jakarta.servlet.ServletConnection getServletConnection()
-