test.org.benow.web
Class SampleUserAgentMatcher
java.lang.Object
test.org.benow.web.SampleUserAgentMatcher
- All Implemented Interfaces:
- UserAgentMatcher
public class SampleUserAgentMatcher
- extends java.lang.Object
- implements UserAgentMatcher
A Sample UserAgentMatcher, that maps User-Agent request headers containing
'Sample' to the file suffix of 'sample'. If a User-Agent of this type
were to access images/test.png, the images/test.sample.png would be delivered,
if it existed.
The Position annotation is used to determine match order. A value of
Position.FIRST means that this matcher will occur before other user
agent matchers (ipod, ie, ie5, etc).
- Author:
- andy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SampleUserAgentMatcher
public SampleUserAgentMatcher()
getTypeName
public java.lang.String getTypeName()
- Specified by:
getTypeName in interface UserAgentMatcher
matches
public boolean matches(java.lang.String uaString)
- Specified by:
matches in interface UserAgentMatcher