public abstract class AbstractResponseDispatcher extends java.lang.Object implements ResponseDispatcher
HttpServletResponse
that can contain SSO provider specific status code, headers or cookies to initiate a particular SSO flow.
Note that concrete class implementation of this class is not required to be synchronized. If multiple threads access an instance of such a concrete class concurrently, and at least one of the threads modifies the dispatcher structurally, it must be synchronized externally.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
UTF_8
UTF_8 encoding.
|
Constructor and Description |
---|
AbstractResponseDispatcher(javax.servlet.http.HttpServletResponse response)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addCookie(javax.servlet.http.Cookie cookie)
This method calls
HttpServletResponse.addCookie() to add the specified cookie to the response. |
void |
addHeader(java.lang.String name, java.lang.String value)
This method calls
HttpServletResponse.addHeader() to add a response header with the given name and value to the response. |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dispatch
public static final java.lang.String UTF_8
public AbstractResponseDispatcher(javax.servlet.http.HttpServletResponse response)
response
- the response associated with the HttpServletRequest
that requires a particular SSO process to be performedpublic void addCookie(javax.servlet.http.Cookie cookie)
HttpServletResponse.addCookie()
to add the specified cookie to the response. Adds the specified cookie to the response.addCookie
in interface ResponseDispatcher
cookie
- the Cookie to be addedpublic void addHeader(java.lang.String name, java.lang.String value)
HttpServletResponse.addHeader()
to add a response header with the given name and value to the response. Adds a response header with the given name and value.addHeader
in interface ResponseDispatcher
name
- the name of the headervalue
- the value of the header