@Test public void testGetValidCookie() { httpHeaders.add(COOKIE_HEADER_NAME, COOKIE_NAME + "=" + COOKIE_VALUE); assertEquals(COOKIE_VALUE, request.getCookie(COOKIE_NAME)); }
@Override public String getCookie(final String cookieName) { if (cookies == null) { populateCookies(); } final Cookie cookie = cookies.get(cookieName); return cookie != null ? cookie.getValue() : null; }
NettyRequest implements Request { @Override public String getCookie(final String cookieName) { if (cookies == null) { populateCookies(); } final Cookie cookie = cookies.get(cookieName); return cookie != null ? cookie.getValue() : null; } }
NettyRequest implements Request { @Override public String getCookie(final String cookieName) { if (cookies == null) { populateCookies(); } final Cookie cookie = cookies.get(cookieName); return cookie != null ? cookie.getValue() : null; } NettyRequest(final HttpRequest inner,
               final HttpContent content,
               final Channel channel,
               final String contextPath); }
NettyRequest implements Request { @Override public String getCookie(final String cookieName) { if (cookies == null) { populateCookies(); } final Cookie cookie = cookies.get(cookieName); return cookie != null ? cookie.getValue() : null; } NettyRequest(final HttpRequest inner,
               final HttpContent content,
               final Channel channel,
               final String contextPath); @Override HttpRequestMethodType getMethod(); @Override String getUri(); @Override String getHeader(final String name); @Override List<String> getHeaders(final String name); @Override Map<String, String> getHeaders(); @Override Map<String, List<String>> getAllHeaders(); @Override long getContentLength(); @Override String getContentType(); @Override String getRequestBody(); @Override InputStream getRequestInputStream(); @Override InetSocketAddress getLocalAddress(); @Override InetSocketAddress getRemoteAddress(); @Override Map<String, String> getPathParams(); @Override String getPathParam(final String key); @Override String getQueryParam(final String key); @Override String getPostQueryParam(final String key); @Override String getPostQueryParam(final String key, final String defaultValue); @Override String getQueryParam(final String key, final String defaultValue); @Override List<String> getQueryParams(final String key); @Override Map<String, String> getQueryParams(); @Override String getPath(); @Override String getContextPath(); @Override String getCookie(final String cookieName); @Override String getProtocol(); }
NettyRequest implements Request { @Override public String getCookie(final String cookieName) { if (cookies == null) { populateCookies(); } final Cookie cookie = cookies.get(cookieName); return cookie != null ? cookie.getValue() : null; } NettyRequest(final HttpRequest inner,
               final HttpContent content,
               final Channel channel,
               final String contextPath); @Override HttpRequestMethodType getMethod(); @Override String getUri(); @Override String getHeader(final String name); @Override List<String> getHeaders(final String name); @Override Map<String, String> getHeaders(); @Override Map<String, List<String>> getAllHeaders(); @Override long getContentLength(); @Override String getContentType(); @Override String getRequestBody(); @Override InputStream getRequestInputStream(); @Override InetSocketAddress getLocalAddress(); @Override InetSocketAddress getRemoteAddress(); @Override Map<String, String> getPathParams(); @Override String getPathParam(final String key); @Override String getQueryParam(final String key); @Override String getPostQueryParam(final String key); @Override String getPostQueryParam(final String key, final String defaultValue); @Override String getQueryParam(final String key, final String defaultValue); @Override List<String> getQueryParams(final String key); @Override Map<String, String> getQueryParams(); @Override String getPath(); @Override String getContextPath(); @Override String getCookie(final String cookieName); @Override String getProtocol();  }