Class DownloadHttpHandlerSample

java.lang.Object
org.glassfish.grizzly.samples.httpserver.nonblockinghandler.DownloadHttpHandlerSample

public class DownloadHttpHandlerSample extends Object
The sample shows how the HttpHandler should be implemented in order to send large amount of data to a client in a non-blocking mode. This sample is not intended to show the most optimal way to transfer file data to a client. It supposed to demonstrate how to work with NIO output stream.
Author:
Alexey Stashok
  • Constructor Details

    • DownloadHttpHandlerSample

      public DownloadHttpHandlerSample()
  • Method Details

    • main

      public static void main(String[] args)