Class SimpleRestClient


  • public class SimpleRestClient
    extends Object
    • Field Detail

      • client

        protected final jakarta.ws.rs.client.Client client
    • Constructor Detail

      • SimpleRestClient

        public SimpleRestClient()
    • Method Detail

      • GET

        public jakarta.ws.rs.core.Response GET​(String url)
      • POST

        public <IN> jakarta.ws.rs.core.Response POST​(String url,
                                                     IN requestEntity)
      • send

        public jakarta.ws.rs.core.Response send​(String url,
                                                String method,
                                                jakarta.ws.rs.core.MultivaluedMap<String,​Object> headers,
                                                String body)
      • GET

        public <T> T GET​(String url,
                         Class<T> responseType)
      • POST

        public <IN,​OUT> OUT POST​(String url,
                                       IN request,
                                       Class<OUT> responseClass)