Package com.vaadin.server
Class UnsupportedBrowserHandler
- java.lang.Object
-
- com.vaadin.server.SynchronizedRequestHandler
-
- com.vaadin.server.UnsupportedBrowserHandler
-
- All Implemented Interfaces:
RequestHandler,Serializable
public class UnsupportedBrowserHandler extends SynchronizedRequestHandler
ARequestHandlerthat 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
Fields Modifier and Type Field Description static StringFORCE_LOAD_COOKIECookie used to ignore browser checks.
-
Constructor Summary
Constructors Constructor Description UnsupportedBrowserHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleansynchronizedHandleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response)Identical toSynchronizedRequestHandler.handleRequest(VaadinSession, VaadinRequest, VaadinResponse)except theVaadinSessionis locked before this is called and unlocked after this has completed.protected voidwriteBrowserTooOldPage(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
canHandleRequest, handleRequest
-
-
-
-
Field Detail
-
FORCE_LOAD_COOKIE
public static final String FORCE_LOAD_COOKIE
Cookie used to ignore browser checks.- See Also:
- Constant Field Values
-
-
Method Detail
-
synchronizedHandleRequest
public boolean synchronizedHandleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response) throws IOException
Description copied from class:SynchronizedRequestHandlerIdentical toSynchronizedRequestHandler.handleRequest(VaadinSession, VaadinRequest, VaadinResponse)except theVaadinSessionis locked before this is called and unlocked after this has completed.- Specified by:
synchronizedHandleRequestin classSynchronizedRequestHandler- Parameters:
session- The session for the requestrequest- The request to handleresponse- 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- If an IO error occurred- See Also:
SynchronizedRequestHandler.handleRequest(VaadinSession, VaadinRequest, VaadinResponse)
-
writeBrowserTooOldPage
protected void writeBrowserTooOldPage(VaadinRequest request, VaadinResponse response) throws IOException
Writes a page encouraging the user to upgrade to a more current browser.- Parameters:
request-response-- Throws:
IOException
-
-