sunlabs.brazil.sunlabs

Class PutHandler

public class PutHandler extends Object implements Handler

Simple PUT and DELETE method handler. Create, update, or delete files implied by the URL. returns: (for PUT) (for DELETE) To be uploaded, the file suffix must match the content type defined on the server and the content type of the request.
root
The document root. Can be used to override the default document root.
prefix, suffix, glob, match
Specifies which URL's trigger this handler. (See MatchString).

TODO:

NOTES:
This handler mostly overlaps the functionallity of the PublishHandler, and they should be combined.
Method Summary
booleaninit(Server server, String prefix)
booleanrespond(Request request)

Method Detail

init

public boolean init(Server server, String prefix)

respond

public boolean respond(Request request)