| Package | Description |
|---|---|
| org.spincast.core.routing | |
| org.spincast.plugins.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> |
IRouteBuilder.after(IHandler<R> afterFilter)
Adds an "after" filter which will only be applied to this particular route.
|
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> |
IRouteBuilder.before(IHandler<R> beforeFilter)
Adds a "before" filter which will only be applied to this particular route.
|
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.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. |
| Modifier and Type | Class and Description |
|---|---|
class |
RouteBuilder<R extends IRequestContext<?>,W extends IWebsocketContext<?>> |
| Modifier and Type | Method and Description |
|---|---|
IRouteBuilder<R> |
RouteBuilder.accept(ContentTypeDefaults... acceptedContentTypes) |
IRouteBuilder<R> |
RouteBuilder.accept(Set<ContentTypeDefaults> acceptedContentTypes) |
IRouteBuilder<R> |
RouteBuilder.acceptAsString(Set<String> acceptedContentTypes) |
IRouteBuilder<R> |
RouteBuilder.acceptAsString(String... acceptedContentTypes) |
protected IRouteBuilder<R> |
SpincastRouter.addFilterDefaultRoutingTypes(IRouteBuilder<R> builder) |
IRouteBuilder<R> |
RouteBuilder.after(IHandler<R> afterFilter) |
IRouteBuilder<R> |
RouteBuilder.ALL() |
IRouteBuilder<R> |
SpincastRouter.ALL(String path) |
IRouteBuilder<R> |
RouteBuilder.allRoutingTypes() |
IRouteBuilder<R> |
RouteBuilder.before(IHandler<R> beforeFilter) |
IRouteBuilder<R> |
RouteBuilder.cache() |
IRouteBuilder<R> |
RouteBuilder.cache(int seconds) |
IRouteBuilder<R> |
RouteBuilder.cache(int seconds,
boolean isPrivate) |
IRouteBuilder<R> |
RouteBuilder.cache(int seconds,
boolean isPrivate,
Integer secondsCdn) |
IRouteBuilder<R> |
RouteBuilder.DELETE() |
IRouteBuilder<R> |
SpincastRouter.DELETE(String path) |
IRouteBuilder<R> |
RouteBuilder.exception() |
IRouteBuilder<R> |
RouteBuilder.found() |
IRouteBuilder<R> |
RouteBuilder.GET() |
IRouteBuilder<R> |
SpincastRouter.GET(String path) |
IRouteBuilder<R> |
RouteBuilder.HEAD() |
IRouteBuilder<R> |
SpincastRouter.HEAD(String path) |
IRouteBuilder<R> |
RouteBuilder.html() |
IRouteBuilder<R> |
RouteBuilder.id(String id) |
IRouteBuilder<R> |
RouteBuilder.json() |
IRouteBuilder<R> |
RouteBuilder.noCache() |
IRouteBuilder<R> |
RouteBuilder.notFound() |
IRouteBuilder<R> |
RouteBuilder.OPTIONS() |
IRouteBuilder<R> |
SpincastRouter.OPTIONS(String path) |
IRouteBuilder<R> |
RouteBuilder.PATCH() |
IRouteBuilder<R> |
SpincastRouter.PATCH(String path) |
IRouteBuilder<R> |
RouteBuilder.path(String path) |
IRouteBuilder<R> |
RouteBuilder.pos(int position) |
IRouteBuilder<R> |
RouteBuilder.POST() |
IRouteBuilder<R> |
SpincastRouter.POST(String path) |
IRouteBuilder<R> |
RouteBuilder.PUT() |
IRouteBuilder<R> |
SpincastRouter.PUT(String path) |
IRouteBuilder<R> |
RouteBuilder.SOME(HttpMethod... httpMethods) |
IRouteBuilder<R> |
RouteBuilder.SOME(Set<HttpMethod> httpMethods) |
IRouteBuilder<R> |
SpincastRouter.SOME(String path,
HttpMethod... httpMethods) |
IRouteBuilder<R> |
SpincastRouter.SOME(String path,
Set<HttpMethod> httpMethods) |
IRouteBuilder<R> |
RouteBuilder.TRACE() |
IRouteBuilder<R> |
SpincastRouter.TRACE(String path) |
IRouteBuilder<R> |
RouteBuilder.xml() |
| Modifier and Type | Method and Description |
|---|---|
protected Class<? extends IRouteBuilder> |
SpincastRoutingPluginGuiceModule.getRouteBuilderImplClass() |
| Modifier and Type | Method and Description |
|---|---|
protected IRouteBuilder<R> |
SpincastRouter.addFilterDefaultRoutingTypes(IRouteBuilder<R> builder) |
Copyright © 2016. All rights reserved.