public final class Utils extends Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
atmosphereProtocol(AtmosphereRequest r) |
static boolean |
closeMessage(javax.servlet.http.HttpServletRequest request) |
static void |
destroyMeteor(AtmosphereRequest req) |
static boolean |
firefoxWebSocketEnabled(javax.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 String |
pathInfo(AtmosphereRequest request) |
static boolean |
pollableTransport(AtmosphereResource.TRANSPORT t) |
static boolean |
properProtocol(javax.servlet.http.HttpServletRequest request) |
static boolean |
pushMessage(AtmosphereResource.TRANSPORT t) |
static boolean |
rawWebSocket(javax.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(javax.servlet.http.HttpServletRequest request) |
static boolean |
webSocketMessage(AtmosphereResource r) |
static boolean |
webSocketQueryStringPresentOrNull(javax.servlet.http.HttpServletRequest request) |
static AtmosphereResource |
websocketResource(AtmosphereResource r) |
public static final boolean webSocketEnabled(javax.servlet.http.HttpServletRequest request)
public static final boolean rawWebSocket(javax.servlet.http.HttpServletRequest request)
public static final boolean firefoxWebSocketEnabled(javax.servlet.http.HttpServletRequest request)
public static final boolean twoConnectionsTransport(AtmosphereResource.TRANSPORT t)
public static final boolean webSocketQueryStringPresentOrNull(javax.servlet.http.HttpServletRequest request)
public static final boolean resumableTransport(AtmosphereResource.TRANSPORT t)
public static final boolean pollableTransport(AtmosphereResource.TRANSPORT t)
public static final boolean pushMessage(AtmosphereResource.TRANSPORT t)
public static final boolean atmosphereProtocol(AtmosphereRequest r)
public static final boolean webSocketMessage(AtmosphereResource r)
public static boolean properProtocol(javax.servlet.http.HttpServletRequest request)
public static final AtmosphereResource websocketResource(AtmosphereResource r)
public static final boolean closeMessage(javax.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 final void inject(AtmosphereResource r) throws IllegalAccessException
IllegalAccessException
public static final void inject(Object object, Class clazz, AtmosphereResource r) throws IllegalAccessException
IllegalAccessException
public static final void inject(Object object, Class clazz, AtmosphereConfig config) throws IllegalAccessException
IllegalAccessException
public static final boolean requestScopedInjection(AtmosphereConfig config, AtmosphereHandler h)
public static final boolean requestScopedInjection(AtmosphereConfig config, Object o)
config
- o
- public static final void destroyMeteor(AtmosphereRequest req)
public static String pathInfo(AtmosphereRequest request)
Copyright © 2016. All rights reserved.