Class Routers
java.lang.Object
org.glassfish.jersey.server.internal.routing.Routers
Routing tree assembly utilities.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
IDENTITY_ROUTER
-
-
Constructor Details
-
Routers
private Routers()
-
-
Method Details
-
noop
Create a terminal "no-op router" that accepts any input context and returns the unchanged request and an empty continuation iterator.- Returns:
- a terminal "no-op" router.
-
endpoint
Creates a terminalRouter
that wraps the givenendpoint
. TheRouter.apply(org.glassfish.jersey.server.internal.process.RequestProcessingContext)
method of the created hierarchical router returns the unchanged request and an empty continuation iterator.- Parameters:
endpoint
- a server-side endpoint to be wrapped in a router instance.- Returns:
- a router that wraps the supplied endpoint.
-
extractEndpoint
Extract endpoint stored in a router (if any).- Parameters:
router
- router from which a server endpoint should be extracted.- Returns:
- extracted endpoint or
null
if there was no endpoint stored in the router.
-