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