Package | Description |
---|---|
org.glassfish.jersey.server.internal.routing |
Jersey server-side internal resource routing classes.
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
MatchResultInitializerRouter
Request matching bootstrapping stage that pushes the whole request path to the routing
context as a right-hand path to be matched.
|
(package private) class |
MethodSelectingRouter
A single router responsible for selecting a single method from all the methods
bound to the same routed request path.
|
(package private) class |
PathMatchingRouter
Matches the un-matched right-hand request path to the configured collection of path pattern matching routes.
|
(package private) class |
PushMatchedMethodRouter
Router that pushes matched
resource method
to routing context . |
(package private) class |
PushMatchedRuntimeResourceRouter
Router that pushes
runtime resource matched during a any routing phase
to routing context . |
(package private) class |
PushMatchedTemplateRouter
Router that pushes
uri template of matched resource of subResource
to routing context . |
(package private) class |
PushMatchedUriRouter
Terminal router that pushes the URI matched so far to the stack returned
by
UriInfo.getMatchedURIs() method. |
(package private) class |
PushMethodHandlerRouter
Terminal router that pushes the matched method's handler instance to the stack
returned by
UriInfo.getMatchedResources() method. |
private static class |
Routers.EndpointRouter |
(package private) class |
SubResourceLocatorRouter
An methodAcceptorPair to accept sub-resource requests.
|
Modifier and Type | Field and Description |
---|---|
private static Router |
Routers.IDENTITY_ROUTER |
private Router |
PushMethodHandlerRouter.next |
private Router |
MatchResultInitializerRouter.rootRouter |
private Router |
MethodSelectingRouter.router |
(package private) Router |
LocatorRouting.router
Sub-resource locator router.
|
private Router |
RoutingStage.routingRoot |
Modifier and Type | Field and Description |
---|---|
private java.util.List<Router> |
PathMatchingRouterBuilder.currentRouters |
private java.lang.Iterable<Router> |
Router.Continuation.next |
private java.util.List<Router> |
Route.routers |
(package private) java.util.List<Router> |
MethodRouting.routers
Resource method routers.
|
Modifier and Type | Method and Description |
---|---|
Router |
RuntimeModelBuilder.buildModel(RuntimeResourceModel resourceModel,
boolean subResourceMode)
Build a runtime model of routers based on the
resourceModel . |
private Router |
MethodSelectingRouter.createHeadEnrichedRouter() |
private Router |
MethodSelectingRouter.createInternalRouter() |
private Router |
RuntimeModelBuilder.createMethodRouter(ResourceMethod resourceMethod) |
private Router |
RuntimeModelBuilder.createRootRouter(PathMatchingRouterBuilder lastRoutedBuilder,
boolean subResourceMode) |
static Router |
Routers.endpoint(Endpoint endpoint)
|
(package private) Router |
RuntimeLocatorModelBuilder.getRouter(ResourceMethod resourceMethod)
Obtain a sub-resource locator router for given resource method.
|
static Router |
Routers.noop()
Create a terminal "no-op router" that accepts any input context and returns the unchanged request and an empty
continuation iterator.
|
Modifier and Type | Method and Description |
---|---|
private java.util.List<Router> |
MethodSelectingRouter.getMethodRouter(RequestProcessingContext context) |
(package private) java.lang.Iterable<Router> |
Router.Continuation.next()
Get the next level routers to be invoked or
an empty if no next
level routers are present. |
java.util.List<Router> |
Route.next()
Get next-level routers to be processed in case the routing pattern matches
the unmatched right-hand part of the request path.
|
Modifier and Type | Method and Description |
---|---|
private RoutingStage.RoutingResult |
RoutingStage._apply(RequestProcessingContext request,
Router router) |
static Endpoint |
Routers.extractEndpoint(Router router)
Extract endpoint stored in a router (if any).
|
(package private) static Router.Continuation |
Router.Continuation.of(RequestProcessingContext request,
Router next)
Create a continuation from the routed request and a single
of next level routers.
|
PathMatchingRouterBuilder |
PathToRouterBuilder.to(Router router)
Register a new next-level router to be used for request routing in case the routing pattern matches the
unmatched right-hand part of the request path.
|
PathMatchingRouterBuilder |
PathMatchingRouterBuilder.to(Router router) |
Modifier and Type | Method and Description |
---|---|
(package private) static Route |
Route.of(PathPattern routingPattern,
java.util.List<Router> routers)
Create a new request route.
|
(package private) static Router.Continuation |
Router.Continuation.of(RequestProcessingContext result,
java.lang.Iterable<Router> next)
Create a continuation from the routed request and a collection
of next level routers.
|
Constructor and Description |
---|
LocatorRouting(ResourceModel locator,
Router router)
Create a new instance.
|
MatchResultInitializerRouter(Router rootRouter)
Create a new match result initializer.
|
MethodRouting(ResourceMethod method,
Router... routers)
Create a new instance.
|
PushMethodHandlerRouter(MethodHandler methodHandler,
Router next)
Create a new
PushMethodHandlerRouter instance. |
RoutingStage(Router routingRoot)
Create a new routing stage instance.
|
Constructor and Description |
---|
Continuation(RequestProcessingContext request,
java.lang.Iterable<Router> next) |
Route(PathPattern routingPattern,
java.util.List<Router> routers) |