public final class Utils
extends java.lang.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 java.util.Set<java.lang.reflect.Field> |
getInheritedPrivateFields(java.lang.Class<?> type) |
static java.util.Set<java.lang.reflect.Method> |
getInheritedPrivateMethod(java.lang.Class<?> type) |
static void |
inject(AtmosphereResource r) |
static void |
inject(java.lang.Object object,
java.lang.Class<?> clazz,
AtmosphereConfig config) |
static void |
inject(java.lang.Object object,
java.lang.Class<?> clazz,
AtmosphereResource r) |
static java.lang.Object |
invoke(java.lang.Object proxiedInstance,
java.lang.reflect.Method m,
java.lang.Object o)
Manages the invocation of the given method on the specified 'proxied' instance.
|
static boolean |
isRunningTest() |
static java.lang.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,
java.lang.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 java.lang.Object invoke(java.lang.Object proxiedInstance,
java.lang.reflect.Method m,
java.lang.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 java.lang.IllegalAccessException
java.lang.IllegalAccessExceptionpublic static void inject(java.lang.Object object,
java.lang.Class<?> clazz,
AtmosphereResource r)
throws java.lang.IllegalAccessException
java.lang.IllegalAccessExceptionpublic static void inject(java.lang.Object object,
java.lang.Class<?> clazz,
AtmosphereConfig config)
throws java.lang.IllegalAccessException
java.lang.IllegalAccessExceptionpublic static java.util.Set<java.lang.reflect.Field> getInheritedPrivateFields(java.lang.Class<?> type)
public static java.util.Set<java.lang.reflect.Method> getInheritedPrivateMethod(java.lang.Class<?> type)
public static boolean requestScopedInjection(AtmosphereConfig config, AtmosphereHandler h)
public static boolean requestScopedInjection(AtmosphereConfig config, java.lang.Object o)
public static void destroyMeteor(AtmosphereRequest req)
public static java.lang.String pathInfo(AtmosphereRequest request)
public static boolean isRunningTest()
Copyright © 2022. All Rights Reserved.