com.oroad.stxx.util
Interface Selector

All Known Implementing Classes:
RequestAttributeSelector, UserAgentRegexpSelector, UserAgentSelector

public interface Selector

Chooses something

Author:
Don Brown

Method Summary
 java.util.ArrayList findSelector(javax.servlet.http.HttpServletRequest request)
          Finds the matching selectors
 void initialize(StxxProperties props)
          Initializes the selector from the properties
 boolean matches(java.lang.String value, javax.servlet.http.HttpServletRequest request)
          Determines if the value is a match or not.
 

Method Detail

initialize

public void initialize(StxxProperties props)
Initializes the selector from the properties

Parameters:
props - The properties

matches

public boolean matches(java.lang.String value,
                       javax.servlet.http.HttpServletRequest request)
Determines if the value is a match or not.

Parameters:
value - The value
request - The request
Returns:
True if the value is a match

findSelector

public java.util.ArrayList findSelector(javax.servlet.http.HttpServletRequest request)
Finds the matching selectors

Parameters:
request - The request object
Returns:
A list of selector names