Package | Description |
---|---|
org.forgerock.http.routing |
Provides routing functionality for HTTP requests.
|
org.forgerock.json.resource |
Classes and interfaces for core types including connections, request
handlers, resources, and their exceptions.
|
org.forgerock.services.routing |
This package provides a simple framework for implementing routers.
|
Modifier and Type | Method and Description |
---|---|
static RouteMatcher<Request> |
RouteMatchers.requestResourceApiVersionMatcher(Version version)
Creates a
RouteMatcher instance that matches the request
resource API version with the provided version. |
static RouteMatcher<Request> |
RouteMatchers.requestUriMatcher(RoutingMode mode,
String template)
Creates a
RouteMatcher instance that matches Request s
with the provided mode and template. |
static RouteMatcher<Version> |
RouteMatchers.resourceApiVersionMatcher(Version version)
Creates a
RouteMatcher instance that matches the request
resource API version with the provided version. |
static RouteMatcher<List<String>> |
RouteMatchers.uriMatcher(RoutingMode mode,
String template)
Creates a
RouteMatcher instance that matches
ResourcePath s with the provided mode and
template. |
Modifier and Type | Method and Description |
---|---|
RouteMatcher<Request> |
Router.addRoute(Router.UriTemplate uriTemplate,
CollectionResourceProvider provider)
Adds a new route to this router for the provided collection resource
provider.
|
RouteMatcher<Request> |
Router.addRoute(Router.UriTemplate uriTemplate,
SingletonResourceProvider provider)
Adds a new route to this router for the provided singleton resource
provider.
|
RouteMatcher<Request> |
Router.addRoute(RoutingMode mode,
Router.UriTemplate uriTemplate,
RequestHandler handler)
Adds a new route to this router for the provided request handler.
|
RouteMatcher<Request> |
Router.addRoute(Version version,
CollectionResourceProvider provider)
Adds a new route to this router for the provided collection resource
provider.
|
RouteMatcher<Request> |
Router.addRoute(Version version,
RequestHandler handler)
Adds a new route to this router for the provided request handler.
|
RouteMatcher<Request> |
Router.addRoute(Version version,
SingletonResourceProvider provider)
Adds a new route to this router for the provided singleton resource
provider.
|
static RouteMatcher<Request> |
RouteMatchers.requestResourceApiVersionMatcher(Version version)
Creates a
RouteMatcher instance that matches the request
resource API version with the provided version. |
static RouteMatcher<Request> |
RouteMatchers.requestUriMatcher(RoutingMode mode,
String template)
Creates a
RouteMatcher instance that matches Request s
with the provided mode and template. |
Modifier and Type | Method and Description |
---|---|
T |
AbstractRouter.addRoute(RouteMatcher<R> matcher,
H handler)
Adds a new route to this router for the provided handler.
|
boolean |
AbstractRouter.removeRoute(RouteMatcher<R>... routes)
Removes one or more routes from this router.
|
Copyright 2011-2015 ForgeRock AS.