public class MvcHandler extends Object implements Route.MethodHandler
Constructor and Description |
---|
MvcHandler(Method handler,
RequestParamProvider provider) |
Modifier and Type | Method and Description |
---|---|
void |
handle(Request req,
Response rsp)
Callback method for a HTTP request.
|
Object |
invoke(Request req,
Response rsp) |
Method |
method() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handle
public MvcHandler(Method handler, RequestParamProvider provider)
public Method method()
method
in interface Route.MethodHandler
public void handle(Request req, Response rsp) throws Throwable
Route.Handler
handle
in interface Route.Handler
req
- A HTTP request.rsp
- A HTTP response.Throwable
- If something goes wrong. The exception will processed by Jooby.Copyright © 2016. All rights reserved.