pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.component.core
Class RuleBasedRedirector

java.lang.Object
  extended by org.torweg.pulse.bundle.Controller
      extended by org.torweg.pulse.component.core.RuleBasedRedirector
All Implemented Interfaces:
DeprecatedConfigurable

public class RuleBasedRedirector
extends Controller
implements DeprecatedConfigurable

allows rule based redirects.

Each rule is set up by a CommandMatcher and a target Command.

Version:
$Revision: 1914 $
Author:
Thomas Weber

Nested Class Summary
 
Nested classes/interfaces inherited from class org.torweg.pulse.bundle.Controller
Controller.AlwaysRun
 
Constructor Summary
RuleBasedRedirector()
           
 
Method Summary
 java.lang.Object check(ServiceRequest request)
          checks whether one of the defined rules matches the current request.
 void init(ConfigBean c)
          configures the controller.
 
Methods inherited from class org.torweg.pulse.bundle.Controller
getAlwaysRun, isAlwaysRun, setAlwaysRun
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleBasedRedirector

public RuleBasedRedirector()
Method Detail

check

@AnyAction
public final java.lang.Object check(ServiceRequest request)
checks whether one of the defined rules matches the current request.

Parameters:
request - the current request
Returns:
null

init

public final void init(ConfigBean c)
configures the controller.

Specified by:
init in interface DeprecatedConfigurable
Parameters:
c - the configuration
See Also:
DeprecatedConfigurable.init(org.torweg.pulse.configuration.ConfigBean)