public class PostHandler extends ExistingEntityHandler
Handler.NamespaceNOT_FOUND_HTMLmanager, METHOD_NOT_ALLOWED_HTML| Constructor and Description |
|---|
PostHandler(HttpManager manager) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
doCheckRedirect(Request request,
Response response,
Resource resource)
We generally don't do redirects.
|
protected boolean |
isCompatible(Resource handler) |
Request.Method |
method()
The method that this handler handles
|
protected void |
process(HttpManager milton,
Request request,
Response response,
Resource resource)
Implement method specific processing.
|
protected String |
processForm(PostableResource r,
Map<String,String> parameters,
Map<String,FileItem> files)
Return a URL to perform a redirect.
|
protected void |
respondWithContent(Request request,
Response response,
PostableResource resource,
Map<String,String> parameters) |
process, processResource, respondNotFound_respondWithContent, calcExpiresAt, checkAuthorisation, generateNamespaceDeclarations, output, outputStreamForResponse, respondConflict, respondMethodNotAllowed, respondRedirect, respondUnauthorised, sendContent, sendContent, setCacheControl, setStatuspublic PostHandler(HttpManager manager)
public Request.Method method()
Handlerprotected boolean isCompatible(Resource handler)
isCompatible in class Handlerprotected void process(HttpManager milton, Request request, Response response, Resource resource)
ExistingEntityHandlerprocess in class ExistingEntityHandlerprotected String processForm(PostableResource r, Map<String,String> parameters, Map<String,FileItem> files)
protected void respondWithContent(Request request, Response response, PostableResource resource, Map<String,String> parameters)
protected boolean doCheckRedirect(Request request, Response response, Resource resource)
ExistingEntityHandlerdoCheckRedirect in class ExistingEntityHandlerCopyright © 2020. All rights reserved.