EchoPoint
1.0

echopoint.util
Class BrowserKit

java.lang.Object
  extended byechopoint.util.BrowserKit

public class BrowserKit
extends java.lang.Object

A utility to class to help with Browser information

Author:
Brad Baker

Method Summary
static java.lang.String buildEchoAppDirectLink(nextapp.echo.EchoInstance instance, java.lang.String otherEchoServletURL)
          This helper method will build an URL link to another Echo web application so that the ClientProperties are shared between the two instances.
static boolean isDHTMLBrowser(nextapp.echoservlet.RenderingContext rc)
          Returns true of the current browser is capable of full CSS and DHTML support.
static boolean isIE(nextapp.echoservlet.RenderingContext rc)
          Returns true of the current browser is a IE browser
static boolean isMozilla(nextapp.echoservlet.RenderingContext rc)
          Returns true of the current browser is a Mozilla browser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isDHTMLBrowser

public static boolean isDHTMLBrowser(nextapp.echoservlet.RenderingContext rc)
Returns true of the current browser is capable of full CSS and DHTML support.


isMozilla

public static boolean isMozilla(nextapp.echoservlet.RenderingContext rc)
Returns true of the current browser is a Mozilla browser


isIE

public static boolean isIE(nextapp.echoservlet.RenderingContext rc)
Returns true of the current browser is a IE browser


buildEchoAppDirectLink

public static java.lang.String buildEchoAppDirectLink(nextapp.echo.EchoInstance instance,
                                                      java.lang.String otherEchoServletURL)
This helper method will build an URL link to another Echo web application so that the ClientProperties are shared between the two instances.

This means the the usual client detection and splash screen step can be bypassed and the 2nd Echo application instance can be started directly by sharing the same properties.

In some cases this behaviour may make linking to another Echo application more seamless. The down side is that users may bookmark the resultant URL and hence the client detections parameters will not be the latest ones.

Parameters:
instance - - the Echo istance whose ClientProperties are to be shared
otherEchoServletURL - - complete or partial URL to the other Echo Echo application to be started. For example /echopointdemo/demo
Returns:
an URL with the same client detection parameters as the provided Echo instance.
See Also:
ClientProperties, ServerContext, ServerContext.suspend(String), ServerContext.exit(String)

EchoPoint
1.0