Class PathContentProvider

    • Constructor Detail

      • PathContentProvider

        public PathContentProvider​(java.nio.file.Path filePath)
                            throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
      • PathContentProvider

        public PathContentProvider​(java.nio.file.Path filePath,
                                   int bufferSize)
                            throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
      • PathContentProvider

        public PathContentProvider​(java.lang.String contentType,
                                   java.nio.file.Path filePath)
                            throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
      • PathContentProvider

        public PathContentProvider​(java.lang.String contentType,
                                   java.nio.file.Path filePath,
                                   int bufferSize)
                            throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
    • Method Detail

      • getLength

        public long getLength()
        Deprecated.
        Returns:
        the content length, if known, or -1 if the content length is unknown
      • isReproducible

        public boolean isReproducible()
        Deprecated.
        Description copied from interface: ContentProvider

        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.

        Returns:
        whether the content can be produced more than once
      • getByteBufferPool

        public org.eclipse.jetty.io.ByteBufferPool getByteBufferPool()
        Deprecated.
      • setByteBufferPool

        public void setByteBufferPool​(org.eclipse.jetty.io.ByteBufferPool byteBufferPool)
        Deprecated.
      • isUseDirectByteBuffers

        public boolean isUseDirectByteBuffers()
        Deprecated.
      • setUseDirectByteBuffers

        public void setUseDirectByteBuffers​(boolean useDirectByteBuffers)
        Deprecated.
      • iterator

        public java.util.Iterator<java.nio.ByteBuffer> iterator()
        Deprecated.