@Test public void headers_parseHeaderValue_encodedContentWithEquals() { AwsHttpServletRequest context = new AwsProxyHttpServletRequest(null,null,null); String value = Base64.getUrlEncoder().encodeToString("a".getBytes()); List<AwsHttpServletRequest.HeaderValue> result = context.parseHeaderValue(value); assertTrue(result.size() > 0); assertEquals("YQ==", result.get(0).getValue()); }
protected List<HeaderValue> parseHeaderValue(String headerValue) { return parseHeaderValue(headerValue, HEADER_VALUE_SEPARATOR, HEADER_QUALIFIER_SEPARATOR); }
AwsHttpServletRequest implements HttpServletRequest { protected List<HeaderValue> parseHeaderValue(String headerValue) { return parseHeaderValue(headerValue, HEADER_VALUE_SEPARATOR, HEADER_QUALIFIER_SEPARATOR); } }
AwsHttpServletRequest implements HttpServletRequest { protected List<HeaderValue> parseHeaderValue(String headerValue) { return parseHeaderValue(headerValue, HEADER_VALUE_SEPARATOR, HEADER_QUALIFIER_SEPARATOR); } AwsHttpServletRequest(Context lambdaContext); }
AwsHttpServletRequest implements HttpServletRequest { protected List<HeaderValue> parseHeaderValue(String headerValue) { return parseHeaderValue(headerValue, HEADER_VALUE_SEPARATOR, HEADER_QUALIFIER_SEPARATOR); } AwsHttpServletRequest(Context lambdaContext); AwsHttpServletResponse getResponse(); void setResponse(AwsHttpServletResponse response); void setContainerHandler(AwsLambdaServletContainerHandler containerHandler); @Override String getRequestedSessionId(); @Override HttpSession getSession(boolean b); @Override HttpSession getSession(); @Override String changeSessionId(); @Override boolean isRequestedSessionIdValid(); @Override boolean isRequestedSessionIdFromCookie(); @Override boolean isRequestedSessionIdFromURL(); @Override @Deprecated boolean isRequestedSessionIdFromUrl(); @Override Object getAttribute(String s); @Override Enumeration<String> getAttributeNames(); @Override String getServerName(); @Override int getServerPort(); @Override void setAttribute(String s, Object o); @Override void removeAttribute(String s); @Override String getLocalName(); @Override String getLocalAddr(); @Override int getLocalPort(); @Override ServletContext getServletContext(); @Override boolean isAsyncStarted(); @Override boolean isAsyncSupported(); @Override DispatcherType getDispatcherType(); @Override String getServletPath(); void setServletContext(ServletContext context); }
AwsHttpServletRequest implements HttpServletRequest { protected List<HeaderValue> parseHeaderValue(String headerValue) { return parseHeaderValue(headerValue, HEADER_VALUE_SEPARATOR, HEADER_QUALIFIER_SEPARATOR); } AwsHttpServletRequest(Context lambdaContext); AwsHttpServletResponse getResponse(); void setResponse(AwsHttpServletResponse response); void setContainerHandler(AwsLambdaServletContainerHandler containerHandler); @Override String getRequestedSessionId(); @Override HttpSession getSession(boolean b); @Override HttpSession getSession(); @Override String changeSessionId(); @Override boolean isRequestedSessionIdValid(); @Override boolean isRequestedSessionIdFromCookie(); @Override boolean isRequestedSessionIdFromURL(); @Override @Deprecated boolean isRequestedSessionIdFromUrl(); @Override Object getAttribute(String s); @Override Enumeration<String> getAttributeNames(); @Override String getServerName(); @Override int getServerPort(); @Override void setAttribute(String s, Object o); @Override void removeAttribute(String s); @Override String getLocalName(); @Override String getLocalAddr(); @Override int getLocalPort(); @Override ServletContext getServletContext(); @Override boolean isAsyncStarted(); @Override boolean isAsyncSupported(); @Override DispatcherType getDispatcherType(); @Override String getServletPath(); void setServletContext(ServletContext context);  }