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

public class AwsProxyHttpServletRequest extends AwsHttpServletRequest
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.
  • 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

      public AwsProxyRequest getAwsProxyRequest()
    • getAuthType

      public String getAuthType()
    • getCookies

      public jakarta.servlet.http.Cookie[] getCookies()
    • getDateHeader

      public long getDateHeader(String s)
    • getHeader

      public String getHeader(String s)
    • getHeaders

      public Enumeration<String> getHeaders(String s)
    • getHeaderNames

      public Enumeration<String> getHeaderNames()
    • getIntHeader

      public int getIntHeader(String s)
    • getMethod

      public String getMethod()
    • getPathInfo

      public String getPathInfo()
    • getPathTranslated

      public String getPathTranslated()
    • getContextPath

      public String getContextPath()
    • getQueryString

      public String getQueryString()
    • getRemoteUser

      public String getRemoteUser()
    • isUserInRole

      public boolean isUserInRole(String s)
    • getUserPrincipal

      public Principal getUserPrincipal()
    • getRequestURI

      public String getRequestURI()
    • getRequestURL

      public StringBuffer getRequestURL()
    • authenticate

      public boolean authenticate(jakarta.servlet.http.HttpServletResponse httpServletResponse) throws IOException, jakarta.servlet.ServletException
      Throws:
      IOException
      jakarta.servlet.ServletException
    • login

      public void login(String s, String s1) throws jakarta.servlet.ServletException
      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:
      IOException
      jakarta.servlet.ServletException
    • getCharacterEncoding

      public String getCharacterEncoding()
    • setCharacterEncoding

      public void setCharacterEncoding(String s) throws UnsupportedEncodingException
      Throws:
      UnsupportedEncodingException
    • getContentLength

      public int getContentLength()
    • getContentLengthLong

      public long getContentLengthLong()
    • getContentType

      public String getContentType()
    • getParameter

      public String getParameter(String s)
    • getParameterNames

      public Enumeration<String> getParameterNames()
    • getParameterValues

      public String[] getParameterValues(String s)
    • getParameterMap

      public Map<String,String[]> getParameterMap()
    • getProtocol

      public String getProtocol()
    • getScheme

      public String getScheme()
    • getServerName

      public String getServerName()
      Specified by:
      getServerName in interface jakarta.servlet.ServletRequest
      Overrides:
      getServerName in class AwsHttpServletRequest
    • getServerPort

      public int getServerPort()
      Specified by:
      getServerPort in interface jakarta.servlet.ServletRequest
      Overrides:
      getServerPort in class AwsHttpServletRequest
    • getInputStream

      public jakarta.servlet.ServletInputStream getInputStream() throws IOException
      Throws:
      IOException
    • getReader

      public BufferedReader getReader() throws IOException
      Throws:
      IOException
    • getRemoteAddr

      public String getRemoteAddr()
    • getRemoteHost

      public String getRemoteHost()
    • getLocale

      public Locale getLocale()
    • getLocales

      public Enumeration<Locale> getLocales()
    • isSecure

      public boolean isSecure()
    • getRequestDispatcher

      public jakarta.servlet.RequestDispatcher getRequestDispatcher(String s)
    • getRemotePort

      public int getRemotePort()
    • isAsyncSupported

      public boolean isAsyncSupported()
      Specified by:
      isAsyncSupported in interface jakarta.servlet.ServletRequest
      Overrides:
      isAsyncSupported in class AwsHttpServletRequest
    • isAsyncStarted

      public boolean isAsyncStarted()
      Specified by:
      isAsyncStarted in interface jakarta.servlet.ServletRequest
      Overrides:
      isAsyncStarted in class AwsHttpServletRequest
    • startAsync

      public jakarta.servlet.AsyncContext startAsync() throws IllegalStateException
      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

      public String getRequestId()
    • getProtocolRequestId

      public String getProtocolRequestId()
    • getServletConnection

      public jakarta.servlet.ServletConnection getServletConnection()