Class SimpleRestClient


  • public class SimpleRestClient
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected jakarta.ws.rs.client.Client client  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      jakarta.ws.rs.core.Response GET​(java.lang.String url)  
      <T> T GET​(java.lang.String url, java.lang.Class<T> responseType)  
      <IN> jakarta.ws.rs.core.Response POST​(java.lang.String url, IN requestEntity)  
      <IN,​OUT>
      OUT
      POST​(java.lang.String url, IN request, java.lang.Class<OUT> responseClass)  
      jakarta.ws.rs.core.Response send​(java.lang.String url, java.lang.String method, jakarta.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.Object> headers, java.lang.String body)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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​(java.lang.String url)
      • POST

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

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

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

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