Class UserAgentInfo
- java.lang.Object
-
- com.github.bordertech.wcomponents.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 Summary
Constructors Constructor Description UserAgentInfo()Creates a UserAgentInfo with an unknown browser.UserAgentInfo(String headerStr)Creates a UserAgentInfo from the given browser header string.
-
-
-
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.
-
-