Interface MockOrRestClient

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void checkStatus()
      Check the status from the service
      void checkStatus​(javax.ws.rs.core.MultivaluedHashMap<java.lang.String,​java.lang.Object> headers)
      Check the status from the service used to passe "X-SSL-CLIENT-CERT" header that contain a pem certificate
      void close()
      Close the underneath http client
      void consumeAnyEntityAndClose​(javax.ws.rs.core.Response response)
      Helper when an error occurs on client usage side to consume response however
      java.lang.String getResourcePath()
      Get the resource path of the server.
      java.lang.String getServiceUrl()
      Get the service URL
    • Method Detail

      • 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
      • checkStatus

        void checkStatus​(javax.ws.rs.core.MultivaluedHashMap<java.lang.String,​java.lang.Object> headers)
                  throws VitamApplicationServerException
        Check the status from the service used to passe "X-SSL-CLIENT-CERT" header that contain a pem certificate
        Parameters:
        headers -
        Throws:
        VitamApplicationServerException - if the Server is unavailable
      • consumeAnyEntityAndClose

        void consumeAnyEntityAndClose​(javax.ws.rs.core.Response response)
        Helper when an error occurs on client usage side to consume response however
        Parameters:
        response -
      • close

        void close()
        Close the underneath http client
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface VitamAutoCloseable