Class AbstractRebrickableService

    • Constructor Detail

      • AbstractRebrickableService

        protected AbstractRebrickableService​(String privateKey)
        Constructor.
        Parameters:
        privateKey - your Rebrickable private key.
    • Method Detail

      • returnJsonResponse

        protected String returnJsonResponse​(Method method,
                                            String uri)
                                     throws RebrickableException
        Call the service and return the response.
        Parameters:
        method - http methode
        uri - uri
        Returns:
        the string representation of the JSON response
        Throws:
        RebrickableException - exception
      • returnJsonResponse

        protected String returnJsonResponse​(Method method,
                                            String uri,
                                            Map<String,​String> parameters)
                                     throws RebrickableException
        Call the service and return the response.
        Parameters:
        method - http methode
        uri - uri
        parameters - request parameters
        Returns:
        the string representation of the JSON response
        Throws:
        RebrickableException - exception
      • setKey

        public void setKey​(String key)
        Specified by:
        setKey in interface IService
        Parameters:
        key - key