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 java.lang.String getAcceptHeader()
      • getAcceptHeader

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

        public void setFallbackContentType​(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