Class NativeHttpClient

    • Constructor Detail

      • NativeHttpClient

        public NativeHttpClient()
    • Method Detail

      • post

        public <T> T post​(String url,
                          String requestBody,
                          Class<T> responseType)
        Description copied from interface: CustomHttpClient
        Executes HTTP POST request with JSON body.
        Specified by:
        post in interface CustomHttpClient
        Type Parameters:
        T - response type
        Parameters:
        url - target URL
        requestBody - JSON request body
        responseType - expected response type class
        Returns:
        deserialized response object or null if no response expected
      • put

        public <T> T put​(String url,
                         String requestBody,
                         Class<T> responseType)
        Description copied from interface: CustomHttpClient
        Executes HTTP PUT request with JSON body.
        Specified by:
        put in interface CustomHttpClient
        Type Parameters:
        T - response type
        Parameters:
        url - target URL
        requestBody - JSON request body
        responseType - expected response type class
        Returns:
        deserialized response object or null if no response expected