com.vaadin.flow.server.
Class UnsupportedBrowserHandler
- java.lang.Object
-
- com.vaadin.flow.server.SynchronizedRequestHandler
-
- com.vaadin.flow.server.UnsupportedBrowserHandler
-
All Implemented Interfaces:
public class UnsupportedBrowserHandler extends SynchronizedRequestHandler
A
RequestHandler
that presents an informative page if the browser in use is unsupported.Since:
1.0
See Also:
-
-
Field Summary
Fields Modifier and Type Field and Description static String
CLOSING_BRACKET
static String
FORCE_LOAD_COOKIE
Cookie used to ignore browser checks.
-
Constructor Summary
Constructors Constructor and Description UnsupportedBrowserHandler()
-
Method Summary
All Methods Modifier and Type Method and Description boolean
synchronizedHandleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response)
Identical to
SynchronizedRequestHandler.handleRequest(VaadinSession, VaadinRequest, VaadinResponse)
except theVaadinSession
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.flow.server.SynchronizedRequestHandler
canHandleRequest, handleRequest
-
-
-
-
Field Detail
-
FORCE_LOAD_COOKIE
public static final String FORCE_LOAD_COOKIE
Cookie used to ignore browser checks.
See Also:
-
CLOSING_BRACKET
public static final String CLOSING_BRACKET
See Also:
-
-
Method Detail
-
synchronizedHandleRequest
public boolean synchronizedHandleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response) throws IOException
Description copied from class:
SynchronizedRequestHandler
Identical to
SynchronizedRequestHandler.handleRequest(VaadinSession, VaadinRequest, VaadinResponse)
except theVaadinSession
is locked before this is called and unlocked after this has completed.Specified by:
synchronizedHandleRequest
in 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 occurredSee 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
- The request to handleresponse
- The response object to which a response can be written.Throws:
IOException
- if an IO error occurred
-
-