<chapter id="ContentRange">
   <title>Content-Range Support</title>
   <para>
      RESTEasy supports <literal>Range</literal> requests for <literal>java.io.File</literal> response entities.
   </para>
      <programlisting><![CDATA[
   @Path("/")
   public class Resource {
      @GET
      @Path("file")
      @Produces("text/plain")
      public File getFile()
      {
         return file;
      }
   }

      Response response = client.target(generateURL("/file")).request()
              .header("Range", "1-4").get();
      Assert.assertEquals(response.getStatus(), 206);
      Assert.assertEquals(4, response.getLength());
      System.out.println("Content-Range: " + response.getHeaderString("Content-Range"));

]]>
      </programlisting>
</chapter>
