Skip navigation links

Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server
11g Release 1 (11.1.1)

E22649-02 ESAPI


oracle.security.jps.service.sso.dispatcher
Class Redirector

java.lang.Object
  extended by oracle.security.jps.service.sso.dispatcher.AbstractResponseDispatcher
      extended by oracle.security.jps.service.sso.dispatcher.Redirector

All Implemented Interfaces:
ResponseDispatcher

public class Redirector
extends AbstractResponseDispatcher

This class calls HttpServletResponse.sendRedirect() to send a temporary redirect response to clients to initiate an SSO process.

Since:
11gR1+
Version:
1.0
Author:
yiwawang

Field Summary

 

Fields inherited from class oracle.security.jps.service.sso.dispatcher.AbstractResponseDispatcher
UTF_8

 

Constructor Summary
Redirector(javax.servlet.http.HttpServletResponse response, java.lang.String baseUrl)
          The constructor.

 

Method Summary
 void addQuery(java.lang.String name, java.lang.String value)
          Adds query parameter to the redirect location URL.
 void dispatch()
          Sends a redirect response to the location URL constructed with endpointUrl appended with supplied query parameters.

 

Methods inherited from class oracle.security.jps.service.sso.dispatcher.AbstractResponseDispatcher
addCookie, addHeader

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

Redirector

public Redirector(javax.servlet.http.HttpServletResponse response,
                  java.lang.String baseUrl)
The constructor.
Parameters:
response - the response associated with the HttpServletRequest that requires a particular SSO process to be performed
baseUrl - the base url will be appended with the supplied query parameters to construct the location url that the redirect response is sent to, cannot be null

Method Detail

dispatch

public void dispatch()
              throws SsoServiceException
Sends a redirect response to the location URL constructed with endpointUrl appended with supplied query parameters. The supplied parameters can be urls that contain a query string or special characters. This method calls java.net.URLEncoder.encode(aString, "UTF-8") to do URL encoding for each supplied query parameter before concatenating them to form the URL returned to the caller. It is expected that the supplied urls are not url encoded. This method calls HttpServletResponse.sendRedirect(response.encodeRedirectURL(redirectUrl) to send a redirect.

Sends the response to initiate an SSO process.

Throws:
SsoServiceException - if failed to send the response

addQuery

public void addQuery(java.lang.String name,
                     java.lang.String value)
Adds query parameter to the redirect location URL.
Parameters:
name - the name of the query parameter
value - the value of the query parameter

Skip navigation links

Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server
11g Release 1 (11.1.1)

E22649-02 ESAPI


Copyright © 2011, Oracle. All rights reserved.