public final class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
atmosphereProtocol(AtmosphereRequest r) |
static boolean |
closeMessage(jakarta.servlet.http.HttpServletRequest request) |
static void |
destroyMeteor(AtmosphereRequest req) |
static boolean |
firefoxWebSocketEnabled(jakarta.servlet.http.HttpServletRequest request) |
static Set<Field> |
getInheritedPrivateFields(Class<?> type) |
static Set<Method> |
getInheritedPrivateMethod(Class<?> type) |
static void |
inject(AtmosphereResource r) |
static void |
inject(Object object,
Class<?> clazz,
AtmosphereConfig config) |
static void |
inject(Object object,
Class<?> clazz,
AtmosphereResource r) |
static Object |
invoke(Object proxiedInstance,
Method m,
Object o)
Manages the invocation of the given method on the specified 'proxied' instance.
|
static boolean |
isRunningTest() |
static String |
pathInfo(AtmosphereRequest request) |
static boolean |
pollableTransport(AtmosphereResource.TRANSPORT t) |
static boolean |
properProtocol(jakarta.servlet.http.HttpServletRequest request) |
static boolean |
pushMessage(AtmosphereResource.TRANSPORT t) |
static boolean |
rawWebSocket(jakarta.servlet.http.HttpServletRequest request) |
static boolean |
requestScopedInjection(AtmosphereConfig config,
AtmosphereHandler h) |
static boolean |
requestScopedInjection(AtmosphereConfig config,
Object o)
Inject custom object.
|
static boolean |
resumableTransport(AtmosphereResource.TRANSPORT t) |
static boolean |
twoConnectionsTransport(AtmosphereResource.TRANSPORT t) |
static boolean |
webSocketEnabled(jakarta.servlet.http.HttpServletRequest request) |
static boolean |
webSocketMessage(AtmosphereResource r) |
static boolean |
webSocketQueryStringPresentOrNull(jakarta.servlet.http.HttpServletRequest request) |
static AtmosphereResource |
websocketResource(AtmosphereResource r) |
public static boolean webSocketEnabled(jakarta.servlet.http.HttpServletRequest request)
public static boolean rawWebSocket(jakarta.servlet.http.HttpServletRequest request)
public static boolean firefoxWebSocketEnabled(jakarta.servlet.http.HttpServletRequest request)
public static boolean twoConnectionsTransport(AtmosphereResource.TRANSPORT t)
public static boolean webSocketQueryStringPresentOrNull(jakarta.servlet.http.HttpServletRequest request)
public static boolean resumableTransport(AtmosphereResource.TRANSPORT t)
public static boolean pollableTransport(AtmosphereResource.TRANSPORT t)
public static boolean pushMessage(AtmosphereResource.TRANSPORT t)
public static boolean atmosphereProtocol(AtmosphereRequest r)
public static boolean webSocketMessage(AtmosphereResource r)
public static boolean properProtocol(jakarta.servlet.http.HttpServletRequest request)
public static AtmosphereResource websocketResource(AtmosphereResource r)
public static boolean closeMessage(jakarta.servlet.http.HttpServletRequest request)
public static Object invoke(Object proxiedInstance, Method m, Object o)
Manages the invocation of the given method on the specified 'proxied' instance. Logs any invocation failure.
proxiedInstance - the instancem - the method to invoke that belongs to the instanceo - the optional parameterpublic static void inject(AtmosphereResource r) throws IllegalAccessException
IllegalAccessExceptionpublic static void inject(Object object, Class<?> clazz, AtmosphereResource r) throws IllegalAccessException
IllegalAccessExceptionpublic static void inject(Object object, Class<?> clazz, AtmosphereConfig config) throws IllegalAccessException
IllegalAccessExceptionpublic static boolean requestScopedInjection(AtmosphereConfig config, AtmosphereHandler h)
public static boolean requestScopedInjection(AtmosphereConfig config, Object o)
public static void destroyMeteor(AtmosphereRequest req)
public static String pathInfo(AtmosphereRequest request)
public static boolean isRunningTest()
Copyright © 2024. All rights reserved.