|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.oroad.stxx.util.UserAgentRegexpSelector
Tries to match based on the configured browser types, using regular
expressions Based on UserAgentSelector
Constructor Summary | |
UserAgentRegexpSelector()
|
Method Summary | |
java.util.ArrayList |
findSelector(javax.servlet.http.HttpServletRequest request)
Finds all matching selectors |
void |
initialize(StxxProperties props)
Initializes the selector from the properties and builds the list of browser types and a regular expression pattern to match for each type. |
boolean |
matches(java.lang.String value,
javax.servlet.http.HttpServletRequest request)
Determines if the transform name is a browser type and if so, if the user agent matches the configured user agent pattern |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UserAgentRegexpSelector()
Method Detail |
public void initialize(StxxProperties props)
initialize
in interface Selector
props
- The stxx propertiespublic java.util.ArrayList findSelector(javax.servlet.http.HttpServletRequest request)
findSelector
in interface Selector
request
- The request object
public boolean matches(java.lang.String value, javax.servlet.http.HttpServletRequest request)
matches
in interface Selector
value
- The selector to matchrequest
- The request object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |