Interface ContentProvider

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static interface  ContentProvider.Typed
      The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
    • Method Detail

      • getLength

        long getLength()
        the content length, if known, or -1 if the content length is unknown
      • isReproducible

        default boolean isReproducible()

        Whether this ContentProvider can produce exactly the same content more than once.

        Implementations should return true only if the content can be produced more than once, which means that invocations to Iterable.iterator() must return a new, independent, iterator instance over the content.

        The HttpClient implementation may use this method in particular cases where it detects that it is safe to retry a request that failed.

        whether the content can be produced more than once