public final class Endpoints extends Object
Handler
s from classes that contain annotated methods
that handle requests.Modifier and Type | Method and Description |
---|---|
static org.forgerock.http.Handler |
from(Class<?> cls)
Convenience method that produces a
Handler using the from(Object) method
and an object obtained from Guice. |
static org.forgerock.http.Handler |
from(com.google.inject.Key key)
Convenience method that produces a
Handler using the from(Object) method
and an object obtained from Guice. |
static org.forgerock.http.Handler |
from(Object obj)
Produce a
Handler from the annotated methods on the provided object. |
public static org.forgerock.http.Handler from(Object obj)
Handler
from the annotated methods on the provided object.
This method currently only distinguishes requests by their method type. In future this should be extended to support selection by request and response media types, and request path.
obj
- The object containing annotated methods.Handler
.public static org.forgerock.http.Handler from(Class<?> cls)
Handler
using the from(Object)
method
and an object obtained from Guice.cls
- The class to use.Handler
.public static org.forgerock.http.Handler from(com.google.inject.Key key)
Handler
using the from(Object)
method
and an object obtained from Guice.key
- The Guice key to use.Handler
.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.