Modifier and Type | Method and Description |
---|---|
static Filter |
chainOf(Filter... filters)
Creates a
Filter which encapsulates the provided filters
into a single Filter . |
static Filter |
chainOf(List<Filter> filters)
Creates a
Filter which encapsulates the provided filters
into a single Filter . |
static Filter |
newOptionsFilter(String... allowedMethods)
Creates a
Filter which handles HTTP OPTIONS method requests. |
static Filter |
newSessionFilter(SessionManager sessionManager)
Creates a session
Filter that will use the provided
SessionManager to manage the users session. |
public static Filter newOptionsFilter(String... allowedMethods)
Filter
which handles HTTP OPTIONS method requests.allowedMethods
- The allowed HTTP methods of the endpoint.Filter
.public static Filter newSessionFilter(SessionManager sessionManager)
Filter
that will use the provided
SessionManager
to manage the users session.sessionManager
- The SessionManager
.Filter
.public static Filter chainOf(Filter... filters)
Filter
which encapsulates the provided filters
into a single Filter
.filters
- The list of filters to be invoked, in order.Filter
.chainOf(List)
Copyright 2011-2015 ForgeRock AS.