HandlerHelper
instead@Deprecated public class ServletHelper extends Object implements Serializable
VaadinServlet
and generally for handling
VaadinRequests
.Modifier and Type | Class and Description |
---|---|
static class |
ServletHelper.RequestType
Deprecated.
Framework internal enum for tracking the type of a request.
|
Modifier and Type | Method and Description |
---|---|
static Locale |
findLocale(VaadinSession session,
VaadinRequest request)
Deprecated.
|
static String |
getCancelingRelativePath(String pathToCancel)
Deprecated.
Use
HandlerHelper.getCancelingRelativePath(String)
instead |
static String |
getContextRootRelativePath(VaadinServletRequest request)
Deprecated.
Don't use this method since it's tied to
VaadinServletRequest |
static boolean |
isRequestType(VaadinRequest request,
ServletHelper.RequestType requestType)
Deprecated.
|
static void |
setResponseNoCacheHeaders(BiConsumer<String,String> headerSetter,
BiConsumer<String,Long> longHeaderSetter)
Deprecated.
|
@Deprecated public static boolean isRequestType(VaadinRequest request, ServletHelper.RequestType requestType)
HandlerHelper.isRequestType(VaadinRequest, com.vaadin.flow.server.HandlerHelper.RequestType)
insteadrequest
- the request to checkrequestType
- the type to check fortrue
if the request is of the given type,
false
otherwise@Deprecated public static Locale findLocale(VaadinSession session, VaadinRequest request)
HandlerHelper.findLocale(VaadinSession, VaadinRequest)
insteadUI.getCurrent()
if definedVaadinSession.getCurrent()
if definedVaadinService.getCurrentRequest()
if definedLocale.getDefault()
session
- the session that is searched for locale or null
if not availablerequest
- the request that is searched for locale or null
if not available@Deprecated public static void setResponseNoCacheHeaders(BiConsumer<String,String> headerSetter, BiConsumer<String,Long> longHeaderSetter)
HandlerHelper.setResponseNoCacheHeaders(BiConsumer, BiConsumer)
insteadheaderSetter
- setter for string value headerslongHeaderSetter
- setter for long value headers@Deprecated public static String getCancelingRelativePath(String pathToCancel)
HandlerHelper.getCancelingRelativePath(String)
insteadpathToCancel
- the path that should be canceled@Deprecated public static String getContextRootRelativePath(VaadinServletRequest request)
VaadinServletRequest
request
- the request for which the location should be determinedCopyright © 2023. All rights reserved.