Class UserAgentInfo

  • All Implemented Interfaces:
    Serializable

    public class UserAgentInfo
    extends Object
    implements Serializable
    This server side browser detection code is required as the client side browser detection code doesn't work for WebSeal's URL re-writing. The client side browser detection uses Microsoft specific code that is embedded in comments. The comments are ignored by all browsers except Microsoft browsers which secretly parses the comments for special keywords. WebSeal behaves as any other normal browser and only URL re-writes html code (and ignores comments) so the screen.css file cannot be located correctly as it's URL doesn't get re-written.
    Since:
    1.0.0
    Author:
    Martin Shevchenko
    See Also:
    Serialized Form
    • Constructor Detail

      • UserAgentInfo

        public UserAgentInfo()
        Creates a UserAgentInfo with an unknown browser.
      • UserAgentInfo

        public UserAgentInfo​(String headerStr)
        Creates a UserAgentInfo from the given browser header string.
        Parameters:
        headerStr - the browser header String.
    • Method Detail

      • isIE

        public boolean isIE()
        Returns:
        true if the browser is some version of IE.
      • isIE6

        public boolean isIE6()
        Returns:
        true if the browser is IE 6.
      • isUnknown

        public boolean isUnknown()
        Returns:
        true if the browser is unknown.