| net.homeip.donaldm.httpdbase4j.Postable
All known Subclasses: net.homeip.donaldm.httpdbase4j.FileStringTemplateHandler, net.homeip.donaldm.httpdbase4j.ArchiveHttpd, net.homeip.donaldm.httpdbase4j.ArchiveStringTemplateHandler, net.homeip.donaldm.httpdbase4j.Httpd, net.homeip.donaldm.httpdbase4j.FileHttpd, net.homeip.donaldm.httpdbase4j.StringTemplateHandler,
Postable | public interface Postable (Code) | | An interface that must be implemented by classes processing POST requests.
See Also: Httpd.addPostHandler author: Donald Munro |
onHandlePost | public Object onHandlePost(long id, HttpExchange ex, Request request, HttpResponse response, File dir, Object... extraParameters)(Code) | | Called when the server is about to perform a POST. May be used by an
overiding class to generate dynamic content. The overiding class should
return a new File or if it does not handle the post then it should
return null. The resulting file will be processed as a GET request,
Parameters: id - Unique transaction id Parameters: ex - The HttpExchange instance for this request. Parameters: request - The Request Parameters: response - Response instance Parameters: dir - - Directory where output can be created Parameters: extraParameters - Extra parameters that can be used by overiding classes return either an HttpResponse instance or a new File instance within the base directory structure of the Httpd instance. If a File isreturned it will be processed as a GET request. |
|
|