Class ResourceAbstract


  • public abstract class ResourceAbstract
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String baseUrl  
      protected org.apache.http.client.HttpClient httpClient  
      protected com.fasterxml.jackson.databind.ObjectMapper objectMapper  
    • Constructor Summary

      Constructors 
      Constructor Description
      ResourceAbstract​(java.lang.String baseUrl, org.apache.http.client.HttpClient httpClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected <T> T parse​(java.lang.String data, java.lang.Class<T> type)  
      • Methods inherited from class java.lang.Object

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

      • baseUrl

        protected java.lang.String baseUrl
      • httpClient

        protected org.apache.http.client.HttpClient httpClient
      • objectMapper

        protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
    • Constructor Detail

      • ResourceAbstract

        public ResourceAbstract​(java.lang.String baseUrl,
                                org.apache.http.client.HttpClient httpClient,
                                com.fasterxml.jackson.databind.ObjectMapper objectMapper)
    • Method Detail

      • parse

        protected <T> T parse​(java.lang.String data,
                              java.lang.Class<T> type)
                       throws com.fasterxml.jackson.core.JsonProcessingException
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException