public abstract class UserAgent extends HttpCondition
Condition that inspects the value of ServletRequest.getScheme()| Constructor and Description |
|---|
UserAgent() |
| Modifier and Type | Method and Description |
|---|---|
static org.ocpsoft.rewrite.servlet.config.UserAgent.ClassificationUserAgent |
isDesktop()
Condition asserting that the user-agent is a non-mobile device.
|
static org.ocpsoft.rewrite.servlet.config.UserAgent.ClassificationUserAgent |
isMobile()
Condition asserting that the user-agent is a mobile device.
|
static org.ocpsoft.rewrite.servlet.config.UserAgent.ClassificationUserAgent |
isTablet()
Condition asserting that the user-agent is a tablet device.
|
static UserAgent |
matches(String pattern)
Condition asserting that the user-agent matches the given pattern.
|
evaluate, evaluateHttppublic static UserAgent matches(String pattern)
public static org.ocpsoft.rewrite.servlet.config.UserAgent.ClassificationUserAgent isMobile()
public static org.ocpsoft.rewrite.servlet.config.UserAgent.ClassificationUserAgent isTablet()
public static org.ocpsoft.rewrite.servlet.config.UserAgent.ClassificationUserAgent isDesktop()
Copyright © 2013 OCPsoft. All Rights Reserved.