org.benow.web.path.page.ua
Interface UserAgentMatcher
- All Known Implementing Classes:
- FirefoxUserAgentMatcher, IE5UserAgentMatcher, IE6UserAgentMatcher, IEUserAgentMatcher, IPodUserAgentMatcher, SampleUserAgentMatcher
public interface UserAgentMatcher
A thing which identifies user agent types from browser user agent
strings. Each type may have a separate page to handle the type.
To add new types, create a matcher and package with packager. Matchers
will be discovered and pages containing the type will be used.
ie if a UserAgentMatcher is created that resolves
uaString=SomeBrowser 1.4 http 4
to somebrowser
for a request to /some/dir/contents.page
then /some/dir/contents.somebrowser.page will be chosen first, if it exists.
A Position may be specified to hint at resolution position for the UserAgentMatcherManager
- See Also:
UserAgentMatcherManager
getTypeName
java.lang.String getTypeName()
matches
boolean matches(java.lang.String uaString)