com.opensymphony.webwork.views.jsp.vui
Class BrowserSupport

java.lang.Object
  extended bycom.opensymphony.webwork.views.jsp.vui.BrowserSupport

public final class BrowserSupport
extends Object

Utility class for handling multiple types of voice browsers

Version:
$Revision: 1.3 $
Author:
Jeff Haynie (jhaynie@vocalocity.net)

Constructor Summary
BrowserSupport()
           
 
Method Summary
static void addBrowserMatch(String uaString, String templateDir)
          add a browser match pattern to use when trying to match a user-agent if the exact user agent string is specified.
static String getBrowserTemplateDirectory(String userAgent)
          for a given user agent, return a vxml browser template directory
static String getTemplateDirectoryFromMatch(String userAgent)
          for a given user agent, return a near match if any
static void loadBrowserInfo(Properties p)
          load browser settings from properties file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrowserSupport

public BrowserSupport()
Method Detail

getBrowserTemplateDirectory

public static String getBrowserTemplateDirectory(String userAgent)
for a given user agent, return a vxml browser template directory


getTemplateDirectoryFromMatch

public static String getTemplateDirectoryFromMatch(String userAgent)
for a given user agent, return a near match if any


addBrowserMatch

public static void addBrowserMatch(String uaString,
                                   String templateDir)
add a browser match pattern to use when trying to match a user-agent if the exact user agent string is specified. The uaString can contain a wildcard, such as VocalOS/* which will match up to VocalOS/.


loadBrowserInfo

public static void loadBrowserInfo(Properties p)
load browser settings from properties file


WebWork Project Page