Uses of Class
io.jooby.Route
-
Uses of Route in io.jooby
Modifier and TypeMethodDescriptionAdd a tag to this route.default Route
Router.assets
(String pattern, AssetHandler handler) Add a static resource handler.default Route
Router.assets
(String pattern, AssetSource source, AssetSource... sources) Add a static resource handler.default Route
Add a static resource handler.default Route
Add a static resource handler.Add one or more attributes applied to this route.Add one or more request types (format) consumed by this route.default Route
Router.delete
(String pattern, Route.Handler handler) Add a HTTP DELETE handler.Route.description
(String description) Route description useful for documentation purpose from openAPI generator.default Route
Router.get
(String pattern, Route.Handler handler) Add a HTTP GET handler.Context.getRoute()
Matching route.ForwardingContext.getRoute()
default Route
Router.head
(String pattern, Route.Handler handler) Add a HTTP HEAD handler.Set mvc/controller method.default Route
Router.options
(String pattern, Route.Handler handler) Add a HTTP OPTIONS handler.default Route
Router.patch
(String pattern, Route.Handler handler) Add a HTTP PATCH handler.default Route
Router.post
(String pattern, Route.Handler handler) Add a HTTP POST handler.Add one or more response types (format) produces by this route.default Route
Router.put
(String pattern, Route.Handler handler) Add a HTTP PUT handler.Jooby.route
(String method, String pattern, Route.Handler handler) Router.Match.route()
Matched route.Router.route
(String method, String pattern, Route.Handler handler) Add a route.Route.setAfter
(Route.After after) Set after filter.Route.setAttributes
(Map<String, Object> attributes) Add one or more attributes applied to this route.Route.setConsumes
(Collection<MediaType> consumes) Add one or more request types (format) consumed by this route.Route.setDecoders
(Map<String, MessageDecoder> decoders) Set message decoders.Route.setDescription
(String description) Route description useful for documentation purpose from openAPI generator.Route.setEncoder
(MessageEncoder encoder) Set encoder.Route.setExecutorKey
(String executorKey) Set executor key.Route.setFilter
(Route.Filter filter) Set route filter.Set route handle instance, required when handle is different fromgetHandler()
.Route.setHttpHead
(boolean enabled) Enabled or disabled HTTP HEAD.Route.setHttpOptions
(boolean enabled) Enabled or disabled HTTP Options.Route.setHttpTrace
(boolean enabled) Enabled or disabled HTTP TRACE.Route.setMvcMethod
(Method mvcMethod) Set mvc/controller method.Route.setNonBlocking
(boolean nonBlocking) Set when the route is blocking or non-blocking.Route.setPathKeys
(List<String> pathKeys) Set path keys.Route.setPipeline
(Route.Handler pipeline) Set route pipeline.Route.setProduces
(Collection<MediaType> produces) Add one or more response types (format) produces by this route.Route.setReturnType
(Type returnType) Set route return type.Route.setSummary
(String summary) Route summary useful for documentation purpose from openAPI generator.Tag this route.Jooby.sse
(String pattern, ServerSentEmitter.Handler handler) Router.sse
(String pattern, ServerSentEmitter.Handler handler) Add a server-sent event handler.Route summary useful for documentation purpose from openAPI generator.Tag this route.default Route
Router.trace
(String pattern, Route.Handler handler) Add a HTTP TRACE handler.Jooby.ws
(String pattern, WebSocket.Initializer handler) Router.ws
(String pattern, WebSocket.Initializer handler) Add a websocket handler.Modifier and TypeMethodDescriptionJooby.getRoutes()
Router.getRoutes()
Returns all routes.RouteSet.getRoutes()
Sub-routes.Modifier and TypeMethodDescriptionSet matching route.default void
Allows a handler to listen for route metadata. -
Uses of Route in io.jooby.handler