org.moremotion.page
Class UserAgentAnalyzer
java.lang.Object
org.moremotion.page.UserAgentAnalyzer
public class UserAgentAnalyzer
- extends java.lang.Object
Analyzes user agent and decides if the requester browser is capable of performing XSL Transformation (XSLT) properly.
The XSL capable browsers are defined in two system parameters by means of
specifying "|" delimited substrings that are supposed to or must not exist in the User-Agent properties of the browsers.
These system parameters are:
xsltCapableBrowsers
. If one of the "|" delimited substrings exists in the User-Agent
then
the browser is considered to be XSLTCapable.
xsltInCapableBrowsers
. If one of the "|" delimited substrings
exist in the User-Agent then the browser is NOT XSLTCapable.
Examples:
<param name="xsltCapableBrowsers">MSIE 6.|MSIE 7.</param>
<param name="xsltInCapableBrowsers">Opera</param>
- Version:
- $Id: UserAgentAnalyzer.java 51 2008-03-10 11:46:54Z erkan $
Method Summary |
static void |
init()
|
static java.lang.String |
isXSLTCapable(javax.servlet.http.HttpServletRequest request)
|
static boolean |
isXSLTEnabled(javax.servlet.http.HttpServletRequest request)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserAgentAnalyzer
public UserAgentAnalyzer()
isXSLTEnabled
public static boolean isXSLTEnabled(javax.servlet.http.HttpServletRequest request)
init
public static void init()
isXSLTCapable
public static java.lang.String isXSLTCapable(javax.servlet.http.HttpServletRequest request)
Copyright © 2002-2008 MOR YAZILIM. All Rights Reserved.