Class SimpleRestClient


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

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.ws.rs.core.Response GET​(java.lang.String url)  
      <T> T GET​(java.lang.String url, java.lang.Class<T> responseType)  
      <IN> javax.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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • client

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

      • SimpleRestClient

        public SimpleRestClient()
    • Method Detail

      • GET

        public javax.ws.rs.core.Response GET​(java.lang.String url)
      • POST

        public <IN> javax.ws.rs.core.Response POST​(java.lang.String url,
                                                   IN requestEntity)
      • 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)