Package com.yahoo.jdisc.http.filter
Class DiscFilterResponse
java.lang.Object
com.yahoo.jdisc.http.filter.DiscFilterResponse
Response type for
SecurityResponseFilter
.- Author:
- Tejal Knot, bjorncs
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCookie
(JDiscCookieWrapper cookie) void
Adds a header with the given name and valuegetAttribute
(String name) int
Returns the untreatedCookies from the parent requestcom.yahoo.jdisc.HeaderFields
Returns the untreatedHeaders from the parent requestvoid
removeAttribute
(String name) void
removeHeaders
(String name) void
sendError
(int errorCode) This method does not actually send the response as it does not have access to responseHandler but just sets the status.void
setAttribute
(String name, Object value) void
void
setCookies
(List<Cookie> cookies) void
Sets a header with the given name and value.void
setHeaders
(String name, String value) Sets a header with the given name and value.void
setHeaders
(String name, List<String> values) Sets a header with the given name and value.void
setStatus
(int status)
-
Constructor Details
-
DiscFilterResponse
-
-
Method Details
-
getAttributeNames
-
getAttribute
-
setAttribute
-
removeAttribute
-
getUntreatedHeaders
public com.yahoo.jdisc.HeaderFields getUntreatedHeaders()Returns the untreatedHeaders from the parent request -
getUntreatedCookies
Returns the untreatedCookies from the parent request -
setHeader
Sets a header with the given name and value.If the header had already been set, the new value overwrites the previous one.
-
removeHeaders
-
setHeaders
Sets a header with the given name and value.If the header had already been set, the new value overwrites the previous one.
-
setHeaders
Sets a header with the given name and value.If the header had already been set, the new value overwrites the previous one.
-
addHeader
Adds a header with the given name and value- See Also:
-
HeaderFields.add(java.lang.String, java.lang.String)
-
getHeader
-
getCookies
-
setCookies
-
getStatus
public int getStatus() -
setStatus
public void setStatus(int status) -
addCookie
-
sendError
This method does not actually send the response as it does not have access to responseHandler but just sets the status. The methodName is misleading for historical reasons.- Throws:
IOException
-
setCookie
-