Class StorageFetcherRequest

    • Constructor Detail

      • StorageFetcherRequest

        public StorageFetcherRequest​(Request innerRequest)
        Constructs an instance of StorageFetcherRequest.
        Parameters:
        innerRequest - An instance of underlying request
    • Method Detail

      • prependHeaders

        public final StorageFetcherRequest prependHeaders​(Map<String,​String> preHeaders)
        Prepend headers to the current headers.
        Parameters:
        preHeaders - Headers to be prepended
        Returns:
        A new instance of http fetcher request
      • getMethod

        @NotNull
        public final Request.Method getMethod()
        Description copied from interface: Request
        Returns the method type of the request.
        Specified by:
        getMethod in interface Request
        Returns:
        method type
      • getBody

        public final String getBody()
        Description copied from interface: Request
        Returns the request body of the request or null if none specified.
        Specified by:
        getBody in interface Request
        Returns:
        request body
      • getUrl

        @NotNull
        public final @NotNull String getUrl()
        Description copied from interface: Request
        Returns the url of the request.
        Specified by:
        getUrl in interface Request
        Returns:
        url
      • getHeaders

        @NotNull
        public final @NotNull Map<String,​String> getHeaders()
        Description copied from interface: Request
        Returns the headers set for the request.
        Specified by:
        getHeaders in interface Request
        Returns:
        a map of the headers set
      • getProxy

        public final org.apache.http.HttpHost getProxy()
        Description copied from interface: Request
        Returns the proxy set to be used for the request or default to fetcher if none specified.
        Specified by:
        getProxy in interface Request
        Returns:
        proxy
      • getSleepScheduler

        @NotNull
        public final @NotNull SleepScheduler getSleepScheduler()
        Description copied from interface: Request
        Returns information about the amount of sleep before this request is made.
        Specified by:
        getSleepScheduler in interface Request
        Returns:
        an instance of SleepScheduler
      • getInner

        public final Request getInner()
        Description copied from interface: Unwrappable
        Returns the unwrapped version of this request.
        Specified by:
        getInner in interface Unwrappable
        Returns:
        an instance of request