Class RangeHeaderResult


  • public class RangeHeaderResult
    extends Object
    Represents the result of processing an HTTP Range header This class encapsulates the starting byte position and the content length to be served in response to a range request
    • Constructor Detail

      • RangeHeaderResult

        public RangeHeaderResult​(long start,
                                 long contentLength)
        Constructs a new RangeHeaderResult with the specified start position and content length
        Parameters:
        start - the starting byte position of the range
        contentLength - the length of the content to be served
    • Method Detail

      • getStart

        public long getStart()
        Returns the starting byte position of the range to be served
        Returns:
        the start position of the range
      • getContentLength

        public long getContentLength()
        Returns the length of the content to be served
        Returns:
        the content length