Package io.github.grumpystuff.grumpyrest
package io.github.grumpystuff.grumpyrest
-
ClassDescriptionInterface for a handler in case a
SimpleHandleris not flexible enough.This class is mostly useful for unit tests: If we hardcoded the error messages at the point these errors occur, then we would have to duplicate them in the tests.Holds the run-time state of processing a single request.This class is the main Entry point into grumpyrest.A route is, conceptually, a set of criteria that determine whether the route matches a specific requests, as well as a handler that defines what to do for requests that match.The result returned byRestApi.match(RequestCycle)andRoute.match(RequestCycle).Interface for a handler in the most common, "simple", case.