Hello world insertion example
This script is somewhat similar to the Javascript version, but shows you some specific options only available with Java language.
demo_Java_Hello_World.resp.server.java
Modify requests headers
This script demonstrates how to delete/insert/rewrite custom information on users requests. To test with http://www.ericgiguere.com/tools/http-header-viewer.html for example.
demo_RewriteReqExample.req.server.java
Clam Antivirus Scanner
A couple of notes:
1. You need a clam av server running at the ip address and ports you set up the top of the script.
2. This can only handle small files right now due to time outs and lack of file chunking.
3. GreasySpoon Mime types must be configured to support binary content (check services.properties file).
demo_clamav.resp.server.java