Package de.xima.fc.http
Class HttpClients
java.lang.Object
de.xima.fc.http.HttpClients
General logic for HTTP requests.
- Author:
 - XIMA MEDIA GmbH
 
- 
Method Summary
Modifier and TypeMethodDescriptionstatic de.xima.ximahttp.api.open.IHttpClientajaxClient(boolean saveRender, boolean clearRender) Deprecated.static de.xima.ximahttp.jakarta_faces.api.IWebSocketExecutorConfiggetDefaultWebsocketExecutorConfig(boolean global) static de.xima.ximahttp.api.open.IHttpClientstatic de.xima.ximahttp.api.open.IHttpClientstatic de.xima.ximahttp.api.open.IHttpClient 
- 
Method Details
- 
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 configurationto 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.
 
 
 - 
 
websocketClientAsync()orwebsocketClientSync().