blob: a24ada05b3d5af4c128286a4ca775c44c25819d9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.jdisc.http.servlet;
import com.yahoo.jdisc.HeaderFields;
import com.yahoo.jdisc.http.Cookie;
import java.util.List;
import java.util.Map;
/**
* Common interface for JDisc and servlet http responses.
*/
public interface ServletOrJdiscHttpResponse {
public void copyHeaders(HeaderFields target);
public int getStatus();
public Map<String, Object> context();
public List<Cookie> decodeSetCookieHeader();
}
|