Package org.atmosphere.util
Class Utils
java.lang.Object
org.atmosphere.util.Utils
Utils class.
- Author:
- Jeanfrancois Arcand
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic booleancloseMessage(jakarta.servlet.http.HttpServletRequest request) static voidstatic booleanfirefoxWebSocketEnabled(jakarta.servlet.http.HttpServletRequest request) getInheritedPrivateFields(Class<?> type) getInheritedPrivateMethod(Class<?> type) static voidinject(Object object, Class<?> clazz, AtmosphereConfig config) static voidinject(Object object, Class<?> clazz, AtmosphereResource r) static voidstatic ObjectManages the invocation of the given method on the specified 'proxied' instance.static booleanstatic StringpathInfo(AtmosphereRequest request) static booleanstatic booleanproperProtocol(jakarta.servlet.http.HttpServletRequest request) static booleanstatic booleanrawWebSocket(jakarta.servlet.http.HttpServletRequest request) static booleanrequestScopedInjection(AtmosphereConfig config, Object o) Inject custom object.static booleanstatic booleanstatic booleanstatic booleanwebSocketEnabled(jakarta.servlet.http.HttpServletRequest request) static booleanstatic booleanwebSocketQueryStringPresentOrNull(jakarta.servlet.http.HttpServletRequest request) static AtmosphereResource
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
webSocketEnabled
public static boolean webSocketEnabled(jakarta.servlet.http.HttpServletRequest request) -
rawWebSocket
public static boolean rawWebSocket(jakarta.servlet.http.HttpServletRequest request) -
firefoxWebSocketEnabled
public static boolean firefoxWebSocketEnabled(jakarta.servlet.http.HttpServletRequest request) -
twoConnectionsTransport
-
webSocketQueryStringPresentOrNull
public static boolean webSocketQueryStringPresentOrNull(jakarta.servlet.http.HttpServletRequest request) -
resumableTransport
-
pollableTransport
-
pushMessage
-
atmosphereProtocol
-
webSocketMessage
-
properProtocol
public static boolean properProtocol(jakarta.servlet.http.HttpServletRequest request) -
websocketResource
-
closeMessage
public static boolean closeMessage(jakarta.servlet.http.HttpServletRequest request) -
invoke
Manages the invocation of the given method on the specified 'proxied' instance. Logs any invocation failure.
- Parameters:
proxiedInstance- the instancem- the method to invoke that belongs to the instanceo- the optional parameter- Returns:
- the result of the invocation
-
inject
- Throws:
IllegalAccessException
-
inject
public static void inject(Object object, Class<?> clazz, AtmosphereResource r) throws IllegalAccessException - Throws:
IllegalAccessException
-
inject
public static void inject(Object object, Class<?> clazz, AtmosphereConfig config) throws IllegalAccessException - Throws:
IllegalAccessException
-
getInheritedPrivateFields
-
getInheritedPrivateMethod
-
requestScopedInjection
-
requestScopedInjection
Inject custom object. This method is mostly for external framework. -
destroyMeteor
-
pathInfo
-
isRunningTest
public static boolean isRunningTest()
-