Class MultiPartByteRanges.PathContentSource

java.lang.Object
org.eclipse.jetty.http.MultiPartByteRanges.PathContentSource
All Implemented Interfaces:
org.eclipse.jetty.io.Content.Source
Enclosing class:
MultiPartByteRanges

@Deprecated(forRemoval=true, since="12.0.11") public static class MultiPartByteRanges.PathContentSource extends Object implements org.eclipse.jetty.io.Content.Source
Deprecated, for removal: This API element is subject to removal in a future version.
use Content.Source.from(ByteBufferPool.Sized, Path, long, long)

A specialized Content.Source whose Path content is sliced by a byte range.

  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.eclipse.jetty.io.Content.Source

    org.eclipse.jetty.io.Content.Source.Factory
  • Constructor Summary

    Constructors
    Constructor
    Description
    PathContentSource(Path path, ByteRange byteRange)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    demand(Runnable demandCallback)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    fail(Throwable failure)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    fail(Throwable failure, boolean last)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    long
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    org.eclipse.jetty.io.Content.Chunk
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PathContentSource

      public PathContentSource(Path path, ByteRange byteRange)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • demand

      public void demand(Runnable demandCallback)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      demand in interface org.eclipse.jetty.io.Content.Source
    • fail

      public void fail(Throwable failure)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      fail in interface org.eclipse.jetty.io.Content.Source
    • fail

      public void fail(Throwable failure, boolean last)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      fail in interface org.eclipse.jetty.io.Content.Source
    • getLength

      public long getLength()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getLength in interface org.eclipse.jetty.io.Content.Source
    • read

      public org.eclipse.jetty.io.Content.Chunk read()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      read in interface org.eclipse.jetty.io.Content.Source
    • rewind

      public boolean rewind()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      rewind in interface org.eclipse.jetty.io.Content.Source