public static Condition newUserAgentCondition ( StringComparisonType comparisonType , String value ) { return new StringCondition ( comparisonType , USER_AGENT_CONDITION_KEY , value ) ; }
Constructs a new access control policy condition that tests the incoming request s user agent field against the specified value using the specified comparison type . This condition can be used to allow or deny access to a resource based on what user agent is specified in the request .