com.caucho.server.rewrite
Interface Condition

All Known Implementing Classes:
AbstractCondition, AbstractConditions, AndConditions, AuthTypeCondition, CookieCondition, ExistsCondition, ExprCondition, HeaderCondition, LocaleCondition, LocalPortCondition, MethodCondition, NotConditions, OrConditions, QueryParamCondition, RemoteAddrCondition, RemoteUserCondition, SecureCondition, ServerNameCondition, ServerPortCondition, UserInRoleCondition

public interface Condition


Method Summary
 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.
 boolean isMatch(HttpServletRequest request, HttpServletResponse response)
          Returns true if the condition passes.
 

Method Detail

init

void init()
Called at initialization time.


getTagName

java.lang.String getTagName()
Returns a descriptive name for the tag, for logging and for error messages.


isMatch

boolean isMatch(HttpServletRequest request,
                HttpServletResponse response)
Returns true if the condition passes.


destroy

void destroy()
Called at destruction time.