com.plumtree.uiinfrastructure.interpreter.filter
Class SecurityModeFilter

java.lang.Object
  extended by com.plumtree.uiinfrastructure.interpreter.filter.BaseInterpreterFilter
      extended by com.plumtree.uiinfrastructure.interpreter.filter.SecurityModeFilter
All Implemented Interfaces:
IInterpreterFilter

public class SecurityModeFilter
extends BaseInterpreterFilter

A filter to check the security of the incoming request whether it conforms to the security mode setting, in particular the security mode 2. Security mode 1 check will be performed by the MVC controller.

Author:
Julie Fournier, William Adjie-Winoto (Writing this new class)

Constructor Summary
SecurityModeFilter()
           
 
Method Summary
 boolean PreFilter(RequestData requestData)
          Check the whether the incoming request satisfy the security mode setting.
 
Methods inherited from class com.plumtree.uiinfrastructure.interpreter.filter.BaseInterpreterFilter
PostFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityModeFilter

public SecurityModeFilter()
Method Detail

PreFilter

public boolean PreFilter(RequestData requestData)
Check the whether the incoming request satisfy the security mode setting. The filter is effective when security mode is 2, and the incoming request does not come from a secure port, in which case the PreFilter method will send an HTTP redirect to the corresponding secure URL (and return true to indicate that the Interpreter shall not process this request further).

Specified by:
PreFilter in interface IInterpreterFilter
Overrides:
PreFilter in class BaseInterpreterFilter
Parameters:
requestData - The request to be processed.
Returns:
a boolean indicating whether the request should be filtered out. A boolean true indicates that the filter has performed the necessary processing for the request and the Interpreter shall not do any further processing of it.



Copyright © 2002,2003,2004,2005 Plumtree Software, Inc., All Rights Reserved.