HttpContext context) throws HttpException, IOException {
super.onLog(Level.FINE, "Handlig Class: " + this.getClass().getName());
super.validate(request,
new String[]{METHOD_GET, METHOD_POST});
final RESTfulCommand command = new RESTfulCommand(
request.getRequestLine().getUri());
if (command.isValid()) {
final WebContext webcontext = new WebContext(request, response,
context);
// decode parameters
HTMLUtils.URLDecodeAll(command.getParameters());
try {
if (request instanceof HttpEntityEnclosingRequest) {
// UPLOAD
this.handleHttpEntityEnclosingRequest(
(HttpEntityEnclosingRequest) request,
command.getServiceName(),
command.getMethodName(),
command.getParameters(),
webcontext, trigger);
} else {
this.handleHttpRequest(
command.getServiceName(),
command.getMethodName(),
command.getParameters(),
webcontext, trigger);
}
} catch (Throwable t) {
super.getLogger().log(Level.SEVERE, null, t);
}