Class AwsHttpApiV2ProxyHttpServletRequest
java.lang.Object
com.amazonaws.serverless.proxy.internal.servlet.AwsHttpServletRequest
com.amazonaws.serverless.proxy.internal.servlet.AwsHttpApiV2ProxyHttpServletRequest
- All Implemented Interfaces:
javax.servlet.http.HttpServletRequest,javax.servlet.ServletRequest
-
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
ConstructorsConstructorDescriptionAwsHttpApiV2ProxyHttpServletRequest(HttpApiV2ProxyRequest req, com.amazonaws.services.lambda.runtime.Context lambdaContext, javax.ws.rs.core.SecurityContext sc, ContainerConfig cfg)Protected constructors for implementing classes. -
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)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
-
AwsHttpApiV2ProxyHttpServletRequest
public AwsHttpApiV2ProxyHttpServletRequest(HttpApiV2ProxyRequest req, com.amazonaws.services.lambda.runtime.Context lambdaContext, javax.ws.rs.core.SecurityContext sc, ContainerConfig cfg)Protected constructors for implementing classes. This should be called first with the context received from AWS Lambda- Parameters:
lambdaContext- The Lambda function context. This object is used for utility methods such as log
-
-
Method Details
-
getRequest
-
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
-
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()
-