Class DefaultHttpLoader

    • Field Detail

      • LOGGER

        private static final java.util.logging.Logger LOGGER
      • maxRedirections

        private final int maxRedirections
    • Constructor Detail

      • DefaultHttpLoader

        public DefaultHttpLoader​(HttpClient httpClient)
      • DefaultHttpLoader

        public DefaultHttpLoader​(HttpClient httpClient,
                                 int maxRedirections)
    • Method Detail

      • getAcceptHeader

        public static final java.lang.String getAcceptHeader()
      • getAcceptHeader

        public static final java.lang.String getAcceptHeader​(java.util.Collection<java.lang.String> profiles)
      • setFallbackContentType

        @Deprecated
        public void setFallbackContentType​(MediaType fallbackContentType)
        Deprecated.
        use DefaultHttpLoader#fallbackContentType(MediaType) Set fallback content-type used when received content-type is not supported. e.g. setFallbackContentType(MediaType.JSON_LD)
        Parameters:
        fallbackContentType - a content type that overrides unsupported received content-type
      • fallbackContentType

        public DefaultHttpLoader fallbackContentType​(MediaType fallbackContentType)
        Set fallback content-type used when received content-type is not supported. e.g. setFallbackContentType(MediaType.JSON_LD)
        Parameters:
        fallbackContentType - a content type that overrides unsupported received content-type
        Returns:
        DefaultHttpLoader instance
        Since:
        1.4.0
      • timeount

        @Deprecated
        public DefaultHttpLoader timeount​(java.time.Duration timeount)
        Deprecated.
        use #timeout() instead
        Set read timeout
        Parameters:
        timeount - to set or null for no timeout
        Returns:
        DefaultHttpLoader instance
        Since:
        1.4.0
      • timeout

        public DefaultHttpLoader timeout​(java.time.Duration timeout)
        Set read timeout
        Parameters:
        timeout - to set or null for no timeout
        Returns:
        DefaultHttpLoader instance
        Since:
        1.6.1