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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCookie(JDiscCookieWrapper cookie) voidAdds a header with the given name and valuegetAttribute(String name) intReturns the untreatedCookies from the parent requestReturns the untreatedHeaders from the parent requestvoidremoveAttribute(String name) voidremoveHeaders(String name) voidsendError(int errorCode) This method does not actually send the response as it does not have access to responseHandler but just sets the status.voidsetAttribute(String name, Object value) voidvoidsetCookies(List<Cookie> cookies) voidSets a header with the given name and value.voidsetHeaders(String name, String value) Sets a header with the given name and value.voidsetHeaders(String name, List<String> values) Sets a header with the given name and value.voidsetStatus(int status)
-
Constructor Details
-
DiscFilterResponse
-
-
Method Details
-
getAttributeNames
-
getAttribute
-
setAttribute
-
removeAttribute
-
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 -
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
-