Interface VitamClientFactoryInterface<T extends MockOrRestClient>

    • Method Detail

      • getHttpClient

        javax.ws.rs.client.Client getHttpClient()
        Get the internal Http client
        Returns:
        the client
      • getHttpClient

        javax.ws.rs.client.Client getHttpClient​(boolean useChunkedMode)
        Get the internal Http client according to the chunk mode
        Parameters:
        useChunkedMode -
        Returns:
        the client
      • getClient

        T getClient()
        This method returns the correct Client adapted to the business case
        Returns:
        the Vitam client
      • getResourcePath

        java.lang.String getResourcePath()
        Get the resource path of the server.
        Returns:
        the resource path as string
      • getServiceUrl

        java.lang.String getServiceUrl()
        Get the service URL
        Returns:
        the service URL
      • getDefaultConfigCient

        java.util.Map<VitamRestEasyConfiguration,​java.lang.Object> getDefaultConfigCient()
        Returns:
        the Default Client configuration (Chunked Mode)
      • getDefaultConfigCient

        java.util.Map<VitamRestEasyConfiguration,​java.lang.Object> getDefaultConfigCient​(boolean chunkedMode)
        Parameters:
        chunkedMode -
        Returns:
        the Default Client configuration according to the chunked mode
      • getClientConfiguration

        ClientConfiguration getClientConfiguration()
        Returns:
        the Vitam client configuration
      • changeResourcePath

        void changeResourcePath​(java.lang.String resourcePath)
        Change the server resourcePath to use. Only in JUNIT
        Parameters:
        resourcePath -
      • changeServerPort

        void changeServerPort​(int port)
        Change the server port to use. Only in JUNIT
        Parameters:
        port -
      • shutdown

        void shutdown()
        Shutdown the Factory
      • resume

        void resume​(javax.ws.rs.client.Client client,
                    boolean chunk)
        Reset the client into the Client pool if possible
        Parameters:
        client -
        chunk -