/** * This is used to acquire all cookies that were sent in the header. * If any cookies exists within the HTTP header they are returned * as <code>Cookie</code> objects. Otherwise this method will an * empty list. Each cookie object will contain the name, value and * path of the cookie as well as the optional domain part. * * @return this returns all cookie objects from the HTTP header */ public List<Cookie> getCookies() { return request.getCookies(); }
/** * This is used to acquire all cookies that were sent in the header. * If any cookies exists within the HTTP header they are returned * as <code>Cookie</code> objects. Otherwise this method will an * empty list. Each cookie object will contain the name, value and * path of the cookie as well as the optional domain part. * * @return this returns all cookie objects from the HTTP header */ public List<Cookie> getCookies() { return request.getCookies(); }
/** * This is used to acquire all cookies that were sent in the header. * If any cookies exists within the HTTP header they are returned * as <code>Cookie</code> objects. Otherwise this method will an * empty list. Each cookie object will contain the name, value and * path of the cookie as well as the optional domain part. * * @return this returns all cookie objects from the HTTP header */ public List<Cookie> getCookies() { return request.getCookies(); }
@Override public Iterator<Cookie> iterator() { return request.getCookies().stream().<Cookie>map(SimpleCookie::new).iterator(); }
@Override public Map<String, String> keyValues() { return request.getCookies().stream().collect(toMap(org.simpleframework.http.Cookie::getName, org.simpleframework.http.Cookie::getValue)); }
public List<Cookie> getCookies() { ArrayList<Cookie> list = new ArrayList<Cookie>(); for (org.simpleframework.http.Cookie c : baseRequest.getCookies()) { list.add(new SimpletonCookie(c)); } return list; }
@Override public ImmutableMap<String, String> getCookiesMap() { Map<String, String> cookies = Maps.newLinkedHashMap(); for (Cookie cookie : request.getCookies()) { cookies.put(cookie.getName(), cookie.getValue().replace("\\\"", "\"")); } return ImmutableMap.copyOf(cookies); }
@Override public ImmutableMap<String, String> getCookiesMap() { Map<String, String> cookies = Maps.newLinkedHashMap(); for (Cookie cookie : request.getCookies()) { cookies.put(cookie.getName(), cookie.getValue().replace("\\\"", "\"")); } return ImmutableMap.copyOf(cookies); }
public Cookie getCookie(String name) { for (org.simpleframework.http.Cookie c : baseRequest.getCookies()) { if (c.getName().equals(name)) { return new SimpletonCookie(c); } } return null; }