Class GenericRestClient


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

      Fields 
      Modifier and Type Field Description
      com.fasterxml.jackson.databind.ObjectMapper objectMapper  
      jakarta.ws.rs.client.Client wsClient  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <OUT> OUT GET​(java.lang.String url, java.lang.Class<OUT> resultClass)  
      <IN> jakarta.ws.rs.core.Response POST​(java.lang.String url, IN requestEntity)  
      <IN,​OUT>
      OUT
      POST​(java.lang.String url, IN requestEntity, java.lang.Class<OUT> outClass)  
      <IN> jakarta.ws.rs.core.Response PUT​(java.lang.String url, IN requestEntity)  
      <IN,​OUT>
      OUT
      PUT​(java.lang.String url, IN requestEntity, java.lang.Class<OUT> outClass)  
      void setBasicAuthorization​(java.lang.String username, java.lang.String password)  
      void setBearerAuthorization​(java.lang.String token)  
      void setCookies​(java.lang.String cookieString)  
      void setUrlRewrites​(URLRewrites urlRewrites)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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​(javax.net.ssl.SSLContext sslContext)
    • Method Detail

      • setCookies

        public void setCookies​(java.lang.String cookieString)
      • setBasicAuthorization

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

        public void setBearerAuthorization​(java.lang.String token)
      • GET

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

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

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

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

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

        public void setUrlRewrites​(URLRewrites urlRewrites)