Class JdkHttpClientHttpLayer

    • Method Detail

      • authorization

        public static String authorization​(String username,
                                           String password)
      • get

        public <T> T get​(URI uri,
                         Class<T> responseClass)
        Description copied from interface: HttpLayer
        GET operation when the expected class does not use generics.
        Specified by:
        get in interface HttpLayer
        Returns:
      • get

        public <T> T get​(URI uri,
                         com.rabbitmq.http.client.ParameterizedTypeReference<T> typeReference)
        Description copied from interface: HttpLayer
        Get operation when the expected class uses generics, like List<T> or Page<T>.
        Specified by:
        get in interface HttpLayer
        Returns:
      • post

        public <T> T post​(URI uri,
                          Object requestBody,
                          Class<T> responseClass)
        Description copied from interface: HttpLayer
        POST operation.

        Response class is optional.

        Specified by:
        post in interface HttpLayer
        Returns:
      • put

        public void put​(URI uri,
                        Object requestBody)
        Description copied from interface: HttpLayer
        PUT operation.
        Specified by:
        put in interface HttpLayer