@Test public void requestURL_getUrlWithCustomBasePath_expectCustomBasePath() { AwsProxyRequestBuilder req = getRequestWithHeaders(); LambdaContainerHandler.getContainerConfig().setServiceBasePath("test"); HttpServletRequest servletRequest = getRequest(req, null, null); String requestUrl = servletRequest.getRequestURL().toString(); assertTrue(requestUrl.contains("/test/hello")); LambdaContainerHandler.getContainerConfig().setServiceBasePath(null); }
@Override public StringBuffer getRequestURL() { return generateRequestURL(request.getPath()); }
AwsProxyHttpServletRequest extends AwsHttpServletRequest { @Override public StringBuffer getRequestURL() { return generateRequestURL(request.getPath()); } }
AwsProxyHttpServletRequest extends AwsHttpServletRequest { @Override public StringBuffer getRequestURL() { return generateRequestURL(request.getPath()); } AwsProxyHttpServletRequest(AwsProxyRequest awsProxyRequest, Context lambdaContext, SecurityContext awsSecurityContext);  AwsProxyHttpServletRequest(AwsProxyRequest awsProxyRequest, Context lambdaContext, SecurityContext awsSecurityContext, ContainerConfig config); }
AwsProxyHttpServletRequest extends AwsHttpServletRequest { @Override public StringBuffer getRequestURL() { return generateRequestURL(request.getPath()); } AwsProxyHttpServletRequest(AwsProxyRequest awsProxyRequest, Context lambdaContext, SecurityContext awsSecurityContext);  AwsProxyHttpServletRequest(AwsProxyRequest awsProxyRequest, Context lambdaContext, SecurityContext awsSecurityContext, ContainerConfig config); AwsProxyRequest getAwsProxyRequest(); @Override String getAuthType(); @Override Cookie[] getCookies(); @Override long getDateHeader(String s); @Override String getHeader(String s); @Override Enumeration<String> getHeaders(String s); @Override Enumeration<String> getHeaderNames(); @Override int getIntHeader(String s); @Override String getMethod(); @Override String getPathInfo(); @Override String getPathTranslated(); @Override String getContextPath(); @Override String getQueryString(); @Override String getRemoteUser(); @Override boolean isUserInRole(String s); @Override Principal getUserPrincipal(); @Override String getRequestURI(); @Override StringBuffer getRequestURL(); @Override boolean authenticate(HttpServletResponse httpServletResponse); @Override void login(String s, String s1); @Override void logout(); @Override Collection<Part> getParts(); @Override Part getPart(String s); @Override T upgrade(Class<T> aClass); @Override String getCharacterEncoding(); @Override void setCharacterEncoding(String s); @Override int getContentLength(); @Override long getContentLengthLong(); @Override String getContentType(); @Override String getParameter(String s); @Override Enumeration<String> getParameterNames(); @Override @SuppressFBWarnings("PZLA_PREFER_ZERO_LENGTH_ARRAYS") // suppressing this as according to the specs we should be returning null here if we can't find params String[] getParameterValues(String s); @Override Map<String, String[]> getParameterMap(); @Override String getProtocol(); @Override String getScheme(); @Override String getServerName(); @Override int getServerPort(); @Override ServletInputStream getInputStream(); @Override BufferedReader getReader(); @Override String getRemoteAddr(); @Override String getRemoteHost(); @Override Locale getLocale(); @Override Enumeration<Locale> getLocales(); @Override boolean isSecure(); @Override RequestDispatcher getRequestDispatcher(String s); @Override @Deprecated String getRealPath(String s); @Override int getRemotePort(); @Override boolean isAsyncSupported(); @Override boolean isAsyncStarted(); @Override AsyncContext startAsync(); @Override AsyncContext startAsync(ServletRequest servletRequest, ServletResponse servletResponse); @Override AsyncContext getAsyncContext(); }
AwsProxyHttpServletRequest extends AwsHttpServletRequest { @Override public StringBuffer getRequestURL() { return generateRequestURL(request.getPath()); } AwsProxyHttpServletRequest(AwsProxyRequest awsProxyRequest, Context lambdaContext, SecurityContext awsSecurityContext);  AwsProxyHttpServletRequest(AwsProxyRequest awsProxyRequest, Context lambdaContext, SecurityContext awsSecurityContext, ContainerConfig config); AwsProxyRequest getAwsProxyRequest(); @Override String getAuthType(); @Override Cookie[] getCookies(); @Override long getDateHeader(String s); @Override String getHeader(String s); @Override Enumeration<String> getHeaders(String s); @Override Enumeration<String> getHeaderNames(); @Override int getIntHeader(String s); @Override String getMethod(); @Override String getPathInfo(); @Override String getPathTranslated(); @Override String getContextPath(); @Override String getQueryString(); @Override String getRemoteUser(); @Override boolean isUserInRole(String s); @Override Principal getUserPrincipal(); @Override String getRequestURI(); @Override StringBuffer getRequestURL(); @Override boolean authenticate(HttpServletResponse httpServletResponse); @Override void login(String s, String s1); @Override void logout(); @Override Collection<Part> getParts(); @Override Part getPart(String s); @Override T upgrade(Class<T> aClass); @Override String getCharacterEncoding(); @Override void setCharacterEncoding(String s); @Override int getContentLength(); @Override long getContentLengthLong(); @Override String getContentType(); @Override String getParameter(String s); @Override Enumeration<String> getParameterNames(); @Override @SuppressFBWarnings("PZLA_PREFER_ZERO_LENGTH_ARRAYS") // suppressing this as according to the specs we should be returning null here if we can't find params String[] getParameterValues(String s); @Override Map<String, String[]> getParameterMap(); @Override String getProtocol(); @Override String getScheme(); @Override String getServerName(); @Override int getServerPort(); @Override ServletInputStream getInputStream(); @Override BufferedReader getReader(); @Override String getRemoteAddr(); @Override String getRemoteHost(); @Override Locale getLocale(); @Override Enumeration<Locale> getLocales(); @Override boolean isSecure(); @Override RequestDispatcher getRequestDispatcher(String s); @Override @Deprecated String getRealPath(String s); @Override int getRemotePort(); @Override boolean isAsyncSupported(); @Override boolean isAsyncStarted(); @Override AsyncContext startAsync(); @Override AsyncContext startAsync(ServletRequest servletRequest, ServletResponse servletResponse); @Override AsyncContext getAsyncContext();  }