Package de.xima.fc.http
Class HttpClients
- java.lang.Object
-
- de.xima.fc.http.HttpClients
-
public final class HttpClients extends Object
General logic for HTTP requests.- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static de.xima.ximahttp.api.open.IHttpClient
ajaxClient(boolean saveRender, boolean clearRender)
Deprecated.Not working with latest RESTEasy version for now, usewebsocketClientAsync()
orwebsocketClientSync()
.static de.xima.ximahttp.jakarta_faces.api.IWebSocketExecutorConfig
getDefaultWebsocketExecutorConfig(boolean global)
static de.xima.ximahttp.api.open.IHttpClient
nativeClient()
static de.xima.ximahttp.api.open.IHttpClient
websocketClientAsync()
static de.xima.ximahttp.api.open.IHttpClient
websocketClientSync()
-
-
-
Method Detail
-
ajaxClient
@Deprecated public static de.xima.ximahttp.api.open.IHttpClient ajaxClient(boolean saveRender, boolean clearRender)
Deprecated.Not working with latest RESTEasy version for now, usewebsocketClientAsync()
orwebsocketClientSync()
.- Parameters:
saveRender
- Whether to restore the cleared render IDs to the new Faces request when the HTTP request is done.clearRender
- Whether to clear the render IDs of the original Faces request.- Returns:
- The HTTP client for sending requests via AJAX.
-
getDefaultWebsocketExecutorConfig
public static de.xima.ximahttp.jakarta_faces.api.IWebSocketExecutorConfig getDefaultWebsocketExecutorConfig(boolean global)
- Parameters:
global
- Whether the AJAX request should trigger theajaxStatus
(=loading dialog).- Returns:
- The default
web socket executor configuration
to use for this application (i.e. currently the one which uses PrimeFaces.ab to send postback requests).
-
nativeClient
public static de.xima.ximahttp.api.open.IHttpClient nativeClient()
- Returns:
- An HTTP client for sending requests via the native Java API.
-
websocketClientAsync
public static de.xima.ximahttp.api.open.IHttpClient websocketClientAsync()
- Returns:
- The HTTP client for sending requests via web sockets asynchronously.
-
websocketClientSync
public static de.xima.ximahttp.api.open.IHttpClient websocketClientSync()
- Returns:
- The HTTP client for sending requests via web sockets synchronously.
-
-