use of org.webpieces.ctx.api.RouterCookie in project webpieces by deanhiller.
the class RequestStreamWriter method copy.
private Map<String, RouterCookie> copy(Map<String, String> cookies) {
Map<String, RouterCookie> map = new HashMap<>();
for (Entry<String, String> entry : cookies.entrySet()) {
RouterCookie c = copy(entry.getKey(), entry.getValue());
map.put(c.name, c);
}
return map;
}
use of org.webpieces.ctx.api.RouterCookie in project webpieces by deanhiller.
the class ResponseCreator method addDeleteCookie.
public void addDeleteCookie(Http2Response response, String badCookieName) {
RouterCookie cookie = cookieTranslator.createDeleteCookie(badCookieName);
Http2Header cookieHeader = create(cookie);
response.addHeader(cookieHeader);
}
use of org.webpieces.ctx.api.RouterCookie in project webpieces by deanhiller.
the class RequestStreamWriter method copy.
private RouterCookie copy(String name, String val) {
RouterCookie rCookie = new RouterCookie();
rCookie.name = name;
rCookie.value = val;
return rCookie;
}
Aggregations