com.caucho.server.rewrite
Class AbstractCondition

java.lang.Object
  extended by com.caucho.server.rewrite.AbstractCondition
All Implemented Interfaces:
Condition
Direct Known Subclasses:
AbstractConditions, AuthTypeCondition, CookieCondition, ExistsCondition, ExprCondition, HeaderCondition, LocaleCondition, LocalPortCondition, MethodCondition, QueryParamCondition, RemoteAddrCondition, RemoteUserCondition, SecureCondition, ServerNameCondition, ServerPortCondition, UserInRoleCondition

public abstract class AbstractCondition
extends java.lang.Object
implements Condition


Constructor Summary
AbstractCondition()
           
 
Method Summary
protected  void addHeaderValue(HttpServletResponse response, java.lang.String header, java.lang.String value)
           
 void destroy()
          Called at destruction time.
 java.lang.String getTagName()
          Returns a descriptive name for the tag, for logging and for error messages.
 void init()
          Called at initialization time.
protected  void required(java.lang.Object value, java.lang.String name)
          Throws an exception if the passed value is null.
 
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

AbstractCondition

public AbstractCondition()
Method Detail

init

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

Specified by:
init in interface Condition

getTagName

public java.lang.String getTagName()
Description copied from interface: Condition
Returns a descriptive name for the tag, for logging and for error messages.

Specified by:
getTagName in interface Condition

required

protected void required(java.lang.Object value,
                        java.lang.String name)
                 throws ConfigException
Throws an exception if the passed value is null.

Throws:
ConfigException

addHeaderValue

protected void addHeaderValue(HttpServletResponse response,
                              java.lang.String header,
                              java.lang.String value)

destroy

public void destroy()
Description copied from interface: Condition
Called at destruction time.

Specified by:
destroy in interface Condition