public class DynamicRedirector extends AbstractResponseDispatcher
HttpServletResponse.sendError()
to send an error response with SSO provider specific status code and descriptive message to initiate an SSO process.UTF_8
Constructor and Description |
---|
DynamicRedirector(javax.servlet.http.HttpServletResponse response, int statusCode, java.lang.String message)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
dispatch()
Sends an error response to the clients by calling
HttpServletResponse.sendError() with SSO provider specific status code and descriptive message. |
addCookie, addHeader
public DynamicRedirector(javax.servlet.http.HttpServletResponse response, int statusCode, java.lang.String message)
response
- the response associated with the HttpServletRequest
that requires a particular SSO process to be performedstatusCode
- the status codemessage
- the descriptive messagepublic void dispatch() throws SsoServiceException
HttpServletResponse.sendError()
with SSO provider specific status code and descriptive message.
Sends the response to initiate an SSO process.
SsoServiceException
- if failed to send the response