public interface Action
| Modifier and Type | Method and Description |
|---|---|
void |
run(Request request,
Response response)
If
run throws MissingParam exception when
calling request.param, response.respondMissingParam
will automatically be called, which by default responds "400 Bad Request". |
void run(Request request, Response response) throws java.lang.Exception
run throws MissingParam exception when
calling request.param, response.respondMissingParam
will automatically be called, which by default responds "400 Bad Request".
If run throws other exception, response.respondServerError
will automatically be called, which by default responds "500 Internal Server Error".
java.lang.Exception