| Package | Description |
|---|---|
| org.spincast.core.routing |
| Modifier and Type | Method and Description |
|---|---|
RouteBuilder<R> |
RouteBuilder.accept(ContentTypeDefaults... acceptedContentTypes)
Sets the accepted
Content-Types. |
RouteBuilder<R> |
RouteBuilder.accept(Set<ContentTypeDefaults> acceptedContentTypes)
Sets the accepted
Content-Types. |
RouteBuilder<R> |
RouteBuilder.acceptAsString(Set<String> acceptedContentTypes)
Sets the accepted
Content-Types. |
RouteBuilder<R> |
RouteBuilder.acceptAsString(String... acceptedContentTypes)
Sets the accepted
Content-Types. |
RouteBuilder<R> |
Router.after()
Creates an "after" filter.
|
RouteBuilder<R> |
RouteBuilder.after(Handler<R> afterFilter)
Adds an "after" filter which will only be applied to this particular route.
|
RouteBuilder<R> |
Router.after(String path)
Creates an "after" filter.
|
RouteBuilder<R> |
RouteBuilder.ALL()
Adds all HTTP methods as being supported.
|
RouteBuilder<R> |
Router.ALL(String path)
Starts the creation of a route matching any HTTP method.
|
RouteBuilder<R> |
RouteBuilder.allRoutingTypes()
This route will be considered for all routing types.
|
RouteBuilder<R> |
Router.before()
Creates a "before" filter.
|
RouteBuilder<R> |
RouteBuilder.before(Handler<R> beforeFilter)
Adds a "before" filter which will only be applied to this particular route.
|
RouteBuilder<R> |
Router.before(String path)
Creates a "before" filter.
|
RouteBuilder<R> |
Router.beforeAndAfter()
Creates a "before" and an "after" filters.
|
RouteBuilder<R> |
Router.beforeAndAfter(String path)
Creates a "before" and an "after" filters.
|
RouteBuilder<R> |
RouteBuilder.cache()
Adds cache headers.
|
RouteBuilder<R> |
RouteBuilder.cache(int seconds)
Adds public cache headers.
|
RouteBuilder<R> |
RouteBuilder.cache(int seconds,
boolean isPrivate)
Adds cache headers.
|
RouteBuilder<R> |
RouteBuilder.cache(int seconds,
boolean isPrivate,
Integer secondsCdn)
Adds cache headers.
|
RouteBuilder<R> |
RouteBuilderFactory.create()
Creates a route builder without using a router.
|
RouteBuilder<R> |
RouteBuilderFactory.create(Router<R,W> router)
Creates a route builder using the specified router.
|
RouteBuilder<R> |
RouteBuilder.DELETE()
Adds
DELETE as a supported HTTP method. |
RouteBuilder<R> |
Router.DELETE(String path)
Starts the creation of a
DELETE route. |
RouteBuilder<R> |
RouteBuilder.exception()
This route will be considered during an
Exception routing process. |
RouteBuilder<R> |
RouteBuilder.found()
This route will be considered during a
Found routing process. |
RouteBuilder<R> |
RouteBuilder.GET()
Addss
GET as a supported HTTP method. |
RouteBuilder<R> |
Router.GET(String path)
Starts the creation of a
GET route. |
RouteBuilder<R> |
RouteBuilder.HEAD()
Adds
HEAD as a supported HTTP method. |
RouteBuilder<R> |
Router.HEAD(String path)
Starts the creation of a
HEAD route. |
RouteBuilder<R> |
RouteBuilder.html()
Adds
application/html as an accepted Content-Type. |
RouteBuilder<R> |
RouteBuilder.id(String id)
An id that can be used to identify the route.
|
RouteBuilder<R> |
RouteBuilder.json()
Adds
application/json as an accepted Content-Type. |
RouteBuilder<R> |
RouteBuilder.noCache()
Automatically adds "no-cache" headers to the response.
|
RouteBuilder<R> |
RouteBuilder.notFound()
This route will be considered during a
Not Found routing process. |
RouteBuilder<R> |
RouteBuilder.OPTIONS()
Adds
OPTIONS as a supported HTTP method. |
RouteBuilder<R> |
Router.OPTIONS(String path)
Starts the creation of a
OPTIONS route. |
RouteBuilder<R> |
RouteBuilder.PATCH()
Adds
PATCH as a supported HTTP method. |
RouteBuilder<R> |
Router.PATCH(String path)
Starts the creation of a
PATCH route. |
RouteBuilder<R> |
RouteBuilder.path(String path)
The path of the route.
|
RouteBuilder<R> |
RouteBuilder.pos(int position)
The position of the handler.
|
RouteBuilder<R> |
RouteBuilder.POST()
Adds
POST as a supported HTTP method. |
RouteBuilder<R> |
Router.POST(String path)
Starts the creation of a
POST route. |
RouteBuilder<R> |
RouteBuilder.PUT()
Adds
PUT as a supported HTTP method. |
RouteBuilder<R> |
Router.PUT(String path)
Starts the creation of a
PUT route. |
RouteBuilder<R> |
RouteBuilder.skip(String filterId)
Skip a "before" and "after" filter for this route.
|
RouteBuilder<R> |
RouteBuilder.SOME(HttpMethod... httpMethods)
Adds the specified HTTP methods as being supported.
|
RouteBuilder<R> |
RouteBuilder.SOME(Set<HttpMethod> httpMethods)
Adds the specified HTTP methods as being supported.
|
RouteBuilder<R> |
Router.SOME(String path,
HttpMethod... httpMethods)
Starts the creation of a route matching the specified
HTTP methods.
|
RouteBuilder<R> |
Router.SOME(String path,
Set<HttpMethod> httpMethods)
Starts the creation of a route matching the specified
HTTP methods.
|
RouteBuilder<R> |
RouteBuilder.TRACE()
Adds
TRACE as a supported HTTP method. |
RouteBuilder<R> |
Router.TRACE(String path)
Starts the creation of a
TRACE route. |
RouteBuilder<R> |
RouteBuilder.xml()
Adds
application/xml as an accepted Content-Type. |
Copyright © 2017. All rights reserved.