com.waveset.ui
Class RedirectFilter

java.lang.Object
  extended bycom.waveset.ui.RedirectFilter
All Implemented Interfaces:
javax.servlet.Filter

public class RedirectFilter
extends java.lang.Object
implements javax.servlet.Filter

A servlet Filter that provides redirection controls for the Identity Manager Pages. This filter allows the user to create custom Filters without creating a new Filter class. To create a redirect filter you must modify web.xml and redirectFilterConfig.xml. Changes to web.xml:

  1. Add a filter specifying the filter-class as com.waveset.ui.RedirectFilter. The init parameter configFileMappingrepresents the name of then configuration file to look in for the filter object The init parameter configFilePathrepresents the path to retrieve the list of filter GenericObjects from.
  2. Add a filter mapping specifying the servlet or urls that need to be filtered.
Changes to redirectFilterConfig.xml
  1. Add a top level attribute specifying the new path to the list of filter GenericObjects
  2. Add GenericObjects that represent the action to be taken along with the source and target urls. The action can contain only one of the following two attributes: 'forward' or 'redirect'

Version:
$Revision: 1.3 $

Nested Class Summary
protected  class RedirectFilter.RedirectRule
           
 
Field Summary
static java.lang.String ACTION
           
static java.lang.String ACTION_FORWARD
           
static java.lang.String ACTION_REDIRECT
           
static java.lang.String CLASS
           
static java.lang.String code_id
           
static java.lang.String DEFAULT_REPOSITORY_ID
          The repository ID for the default User Action Configuration object.
static java.lang.String PARAM_CONFIG_MAPPING
           
static java.lang.String PARAM_CONFIG_PATH
           
static java.lang.String REDIRECT_FILTER_CONFIG_MAPPING
          The System Configuration attribute name that contains the mapping for the User Actions Config.
static java.lang.String SOURCE
           
static java.lang.String TARGET
           
static Trace trace
           
 
Constructor Summary
RedirectFilter()
           
 
Method Summary
 void destroy()
          Destroy the filter.
 void doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse resp, javax.servlet.FilterChain chain)
          Perform the matching routine on the loaded urls.
 void init(javax.servlet.FilterConfig config)
          Initialize the filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

code_id

public static final java.lang.String code_id
See Also:
Constant Field Values

CLASS

public static final java.lang.String CLASS
See Also:
Constant Field Values

trace

public static final Trace trace

DEFAULT_REPOSITORY_ID

public static final java.lang.String DEFAULT_REPOSITORY_ID
The repository ID for the default User Action Configuration object.

See Also:
Constant Field Values

REDIRECT_FILTER_CONFIG_MAPPING

public static final java.lang.String REDIRECT_FILTER_CONFIG_MAPPING
The System Configuration attribute name that contains the mapping for the User Actions Config.

See Also:
Constant Field Values

PARAM_CONFIG_MAPPING

public static final java.lang.String PARAM_CONFIG_MAPPING
See Also:
Constant Field Values

PARAM_CONFIG_PATH

public static final java.lang.String PARAM_CONFIG_PATH
See Also:
Constant Field Values

ACTION_FORWARD

public static final java.lang.String ACTION_FORWARD
See Also:
Constant Field Values

ACTION_REDIRECT

public static final java.lang.String ACTION_REDIRECT
See Also:
Constant Field Values

ACTION

public static final java.lang.String ACTION
See Also:
Constant Field Values

SOURCE

public static final java.lang.String SOURCE
See Also:
Constant Field Values

TARGET

public static final java.lang.String TARGET
See Also:
Constant Field Values
Constructor Detail

RedirectFilter

public RedirectFilter()
Method Detail

init

public void init(javax.servlet.FilterConfig config)
          throws javax.servlet.ServletException
Initialize the filter.

Specified by:
init in interface javax.servlet.Filter
Parameters:
config - The FilterConfig with which to initialize the filter.
Throws:
javax.servlet.ServletException

destroy

public void destroy()
Destroy the filter.

Specified by:
destroy in interface javax.servlet.Filter

doFilter

public void doFilter(javax.servlet.ServletRequest req,
                     javax.servlet.ServletResponse resp,
                     javax.servlet.FilterChain chain)
              throws java.io.IOException,
                     javax.servlet.ServletException
Perform the matching routine on the loaded urls.

Specified by:
doFilter in interface javax.servlet.Filter
Parameters:
req - The ServletRequest.
resp - The ServletResponse.
chain - The FilterChange to be processed after this filter has been executed.
Throws:
java.io.IOException
javax.servlet.ServletException