Class HttpClients


  • public final class HttpClients
    extends Object
    General logic for HTTP requests.
    Author:
    XIMA MEDIA GmbH
    • 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, use websocketClientAsync() or websocketClientSync().
        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 the ajaxStatus (=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.