Class UserAgentHolder


  • public class UserAgentHolder
    extends Object
    • 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