public class MvcHandler extends Object implements Route.MethodHandler
Constructor and Description |
---|
MvcHandler(Method handler,
Class<?> implementingClass,
RequestParamProvider provider)
Constructor for MvcHandler.
|
Modifier and Type | Method and Description |
---|---|
void |
handle(Request req,
Response rsp)
Callback method for a HTTP request.
|
Class<?> |
implementingClass()
Target class.
|
Object |
invoke(Request req,
Response rsp) |
Method |
method()
Target method.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handle
public MvcHandler(Method handler, Class<?> implementingClass, RequestParamProvider provider)
handler
- the method to handle the requestimplementingClass
- Target class (method owner).provider
- the request parameter providerpublic Method method()
Route.MethodHandler
method
in interface Route.MethodHandler
public Class<?> implementingClass()
Route.MethodHandler
implementingClass
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 © 2017. All rights reserved.