Last updated May 14, 2009 07:30, by Igor Minar
Feedicon  

The AutoSendfile Mode

The AutoSendfile mode basically turns grizzly-sendfile into a regular webserver which listens on a specified URI prefix. When a request with this prefix arrives, grizzly-sendfile replies with a file which path matches the request URI.

Let's say that grizzly-sendfile is running in a server on port 8080 and is configure with these two options:

 com.igorminar.grizzlysendfile.AutoSendfileUriPrefix=/sendfile/
 com.igorminar.grizzlysendfile.AutoSendfileFileDir=/var/www/large-files/

Then wget http://host:8080/sendfile/some-file.tgz will result in /var/www/large-files/some-file.tgz to be served.

The advantages of this feature are:

  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2014, Oracle Corporation and/or its affiliates
(revision 20160708.bf2ac18)
 
 
Close
loading
Please Confirm
Close