com.vaadin.terminal.gwt.server
Class UnsupportedBrowserHandler

java.lang.Object
  extended by com.vaadin.terminal.gwt.server.UnsupportedBrowserHandler
All Implemented Interfaces:
RequestHandler, Serializable

public class UnsupportedBrowserHandler
extends Object
implements RequestHandler

A RequestHandler that presents an informative page if the browser in use is unsupported. Recognizes Chrome Frame and allow it to be used.

This handler is usually added to the application by AbstractCommunicationManager.

See Also:
Serialized Form

Field Summary
static String FORCE_LOAD_COOKIE
          Cookie used to ignore browser checks
 
Constructor Summary
UnsupportedBrowserHandler()
           
 
Method Summary
 boolean handleRequest(Application application, WrappedRequest request, WrappedResponse response)
          Handles a non-UIDL request.
protected  void writeBrowserTooOldPage(WrappedRequest request, WrappedResponse response)
          Writes a page encouraging the user to upgrade to a more current browser.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FORCE_LOAD_COOKIE

public static final String FORCE_LOAD_COOKIE
Cookie used to ignore browser checks

See Also:
Constant Field Values
Constructor Detail

UnsupportedBrowserHandler

public UnsupportedBrowserHandler()
Method Detail

handleRequest

public boolean handleRequest(Application application,
                             WrappedRequest request,
                             WrappedResponse response)
                      throws IOException
Description copied from interface: RequestHandler
Handles a non-UIDL request. If a response is written, this method should return false to indicate that no more request handlers should be invoked for the request.

Specified by:
handleRequest in interface RequestHandler
Parameters:
application - The application to which the request belongs
request - The request to handle
response - The response object to which a response can be written.
Returns:
true if a response has been written and no further request handlers should be called, otherwise false
Throws:
IOException

writeBrowserTooOldPage

protected void writeBrowserTooOldPage(WrappedRequest request,
                                      WrappedResponse response)
                               throws IOException
Writes a page encouraging the user to upgrade to a more current browser.

Parameters:
request -
response -
Throws:
IOException


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.