Class GenericRestClient


  • public class GenericRestClient
    extends Object
    • Field Detail

      • objectMapper

        public final com.fasterxml.jackson.databind.ObjectMapper objectMapper
      • wsClient

        public final jakarta.ws.rs.client.Client wsClient
    • Constructor Detail

      • GenericRestClient

        public GenericRestClient()
      • GenericRestClient

        public GenericRestClient​(SSLContext sslContext)
    • Method Detail

      • setCookies

        public void setCookies​(String cookieString)
      • setBasicAuthorization

        public void setBasicAuthorization​(String username,
                                          String password)
      • setBearerAuthorization

        public void setBearerAuthorization​(String token)
      • GET

        public <OUT> OUT GET​(String url,
                             Class<OUT> resultClass)
      • PUT

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

        public <IN,​OUT> OUT PUT​(String url,
                                      IN requestEntity,
                                      Class<OUT> outClass)
      • POST

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

        public <IN,​OUT> OUT POST​(String url,
                                       IN requestEntity,
                                       Class<OUT> outClass)
      • setUrlRewrites

        public void setUrlRewrites​(URLRewrites urlRewrites)