Class ImageDownloadWebservice


  • public class ImageDownloadWebservice
    extends Webservice
    • Constructor Detail

      • ImageDownloadWebservice

        protected ImageDownloadWebservice​(android.content.Context context,
                                          java.lang.String imageURL,
                                          java.util.List<java.lang.Double> availableDensities)
                                   throws java.net.MalformedURLException
        Throws:
        java.net.MalformedURLException
    • Method Detail

      • buildImageURL

        public static java.lang.String buildImageURL​(android.content.Context context,
                                                     java.lang.String imageURL,
                                                     java.util.List<java.lang.Double> availableDensities)
        Build image url based on the device density and available ones
        Parameters:
        context -
        imageURL -
        availableDensities -
        Returns:
      • run

        public android.graphics.Bitmap run()
      • getPostDataProvider

        protected PostDataProvider<?> getPostDataProvider()
        Description copied from class: Webservice
        Return the POST body you want to add to the request
        Specified by:
        getPostDataProvider in class Webservice
        Returns:
        the post data provider if any, null otherwise
      • getURLSorterPatternParameterKey

        protected java.lang.String getURLSorterPatternParameterKey()
        Description copied from class: Webservice
        Return the parameter key to get the URL sorter pattern
        Specified by:
        getURLSorterPatternParameterKey in class Webservice
        Returns:
        key of the parameter or null if no sortor is wanted
      • getCryptorTypeParameterKey

        protected java.lang.String getCryptorTypeParameterKey()
        Description copied from class: Webservice
        Return the type of the get cryptor wanted for this webservice
        Specified by:
        getCryptorTypeParameterKey in class Webservice
        Returns:
        type or null if no encryption is wanted
      • getPostCryptorTypeParameterKey

        protected java.lang.String getPostCryptorTypeParameterKey()
        Description copied from class: Webservice
        Return the type of the post cryptor wanted for this webservice
        Specified by:
        getPostCryptorTypeParameterKey in class Webservice
        Returns:
        type or null if no encryption is wanted
      • getReadCryptorTypeParameterKey

        protected java.lang.String getReadCryptorTypeParameterKey()
        Description copied from class: Webservice
        Return the type of the read cryptor wanted for this webservice
        Specified by:
        getReadCryptorTypeParameterKey in class Webservice
        Returns:
        type or null if no encryption is wanted
      • getSpecificConnectTimeoutKey

        protected java.lang.String getSpecificConnectTimeoutKey()
        Description copied from class: Webservice
        Return the Parameters key to search specific connect timeout for this webservice
        Specified by:
        getSpecificConnectTimeoutKey in class Webservice
        Returns:
        key if we need specific value, null otherwise
      • getSpecificReadTimeoutKey

        protected java.lang.String getSpecificReadTimeoutKey()
        Description copied from class: Webservice
        Return the Parameters key to search specific read timeout for this webservice
        Specified by:
        getSpecificReadTimeoutKey in class Webservice
        Returns:
        key if we need specific value, null otherwise
      • getSpecificRetryCountKey

        protected java.lang.String getSpecificRetryCountKey()
        Description copied from class: Webservice
        Return the Parameters key to search specific number of retry for this webservice
        Specified by:
        getSpecificRetryCountKey in class Webservice
        Returns:
        key if we need specific value, null otherwise