final class Routers
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
Routers.EndpointRouter |
Modifier and Type | Field and Description |
---|---|
private static Router |
IDENTITY_ROUTER |
Modifier | Constructor and Description |
---|---|
private |
Routers() |
Modifier and Type | Method and Description |
---|---|
static Router |
endpoint(Endpoint endpoint)
|
static Endpoint |
extractEndpoint(Router router)
Extract endpoint stored in a router (if any).
|
static Router |
noop()
Create a terminal "no-op router" that accepts any input context and returns the unchanged request and an empty
continuation iterator.
|
private static final Router IDENTITY_ROUTER
public static Router noop()
public static Router endpoint(Endpoint endpoint)
Router
that wraps the given endpoint
.
The Router.apply(org.glassfish.jersey.server.internal.process.RequestProcessingContext)
method of the created hierarchical router returns the unchanged request and an empty
continuation iterator.endpoint
- a server-side endpoint to be wrapped in a router instance.