com.vaadin.server
Class UnsupportedBrowserHandler

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

public class UnsupportedBrowserHandler
extends SynchronizedRequestHandler

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 LegacyCommunicationManager.

See Also:
Serialized Form

Field Summary
static java.lang.String FORCE_LOAD_COOKIE
          Cookie used to ignore browser checks
 
Constructor Summary
UnsupportedBrowserHandler()
           
 
Method Summary
 boolean synchronizedHandleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response)
          Identical to SynchronizedRequestHandler.handleRequest(VaadinSession, VaadinRequest, VaadinResponse) except the VaadinSession is locked before this is called and unlocked after this has completed.
protected  void writeBrowserTooOldPage(VaadinRequest request, VaadinResponse response)
          Writes a page encouraging the user to upgrade to a more current browser.
 
Methods inherited from class com.vaadin.server.SynchronizedRequestHandler
handleRequest
 
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 java.lang.String FORCE_LOAD_COOKIE
Cookie used to ignore browser checks

See Also:
Constant Field Values
Constructor Detail

UnsupportedBrowserHandler

public UnsupportedBrowserHandler()
Method Detail

synchronizedHandleRequest

public boolean synchronizedHandleRequest(VaadinSession session,
                                         VaadinRequest request,
                                         VaadinResponse response)
                                  throws java.io.IOException
Description copied from class: SynchronizedRequestHandler
Identical to SynchronizedRequestHandler.handleRequest(VaadinSession, VaadinRequest, VaadinResponse) except the VaadinSession is locked before this is called and unlocked after this has completed.

Specified by:
synchronizedHandleRequest in class SynchronizedRequestHandler
Parameters:
session - The session for the request
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:
java.io.IOException - If an IO error occurred
See Also:
SynchronizedRequestHandler.handleRequest(VaadinSession, VaadinRequest, VaadinResponse)

writeBrowserTooOldPage

protected void writeBrowserTooOldPage(VaadinRequest request,
                                      VaadinResponse response)
                               throws java.io.IOException
Writes a page encouraging the user to upgrade to a more current browser.

Parameters:
request -
response -
Throws:
java.io.IOException


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