Class UserAgentHolder
- java.lang.Object
-
- org.apache.sling.testing.clients.interceptors.UserAgentHolder
-
public class UserAgentHolder extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
get()
Returns the current user-agent.static void
reset()
Remove value of the user-agentstatic void
set(String agent)
Override the current user-agent with a completely new one.
-
-
-
Method Detail
-
get
public static String get()
Returns the current user-agent.- Returns:
- the current user-agent
-
set
public static void set(String agent)
Override the current user-agent with a completely new one.- Parameters:
agent
- the desired new user-agent (or null for default)
-
reset
public static void reset()
Remove value of the user-agent
-
-