com.caucho.server.rewrite
Class AbstractConditions

java.lang.Object
  extended by com.caucho.server.rewrite.AbstractCondition
      extended by com.caucho.server.rewrite.AbstractConditions
All Implemented Interfaces:
Condition
Direct Known Subclasses:
AndConditions, NotConditions, OrConditions

public abstract class AbstractConditions
extends AbstractCondition


Constructor Summary
AbstractConditions(RewriteDispatch rewriteDispatch)
           
 
Method Summary
<T extends Condition>
T
add(T condition)
           
 void addAnd(AndConditions and)
           
 void addNot(NotConditions not)
           
 void addOr(OrConditions or)
           
 void addUnless(ConditionConfig condition)
           
 void addWhen(ConditionConfig condition)
           
 AndConditions createAnd()
           
 NotConditions createNot()
           
 OrConditions createOr()
           
protected  Condition[] getConditions()
           
 void init()
          Called at initialization time.
 
Methods inherited from class com.caucho.server.rewrite.AbstractCondition
addHeaderValue, destroy, getTagName, required
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.caucho.server.rewrite.Condition
isMatch
 

Constructor Detail

AbstractConditions

public AbstractConditions(RewriteDispatch rewriteDispatch)
Method Detail

add

public <T extends Condition> T add(T condition)

addWhen

public void addWhen(ConditionConfig condition)

addUnless

public void addUnless(ConditionConfig condition)

createAnd

public AndConditions createAnd()

addAnd

public void addAnd(AndConditions and)

createNot

public NotConditions createNot()

addNot

public void addNot(NotConditions not)

createOr

public OrConditions createOr()

addOr

public void addOr(OrConditions or)

init

@PostConstruct
public void init()
Description copied from interface: Condition
Called at initialization time.

Specified by:
init in interface Condition
Overrides:
init in class AbstractCondition

getConditions

protected Condition[] getConditions()