public class BaseUriDecorator extends AbstractHandlerAndFilterDecorator
Filter
and Handler
instances.
It has to be declared inside of the heap objects section:
{
"name": "myBaseUri",
"type": "BaseUriDecorator"
}
To decorate a component, just add the decorator declaration next to the config
element:
{
"type": "...",
"myBaseUri": "http://www.example.com",
"config": { ... }
}
The baseURI has to be a string otherwise, the decoration will be ignored.
N.B: The Gateway Servlet creates a default BaseUriDecorator named "baseURI" at startup time.
Modifier and Type | Class and Description |
---|---|
static class |
BaseUriDecorator.Heaplet
Creates and initializes a baseUri in a heap environment.
|
Constructor and Description |
---|
BaseUriDecorator(String name)
Builds a new
BaseUriDecorator . |
Modifier and Type | Method and Description |
---|---|
protected org.forgerock.http.Filter |
decorateFilter(org.forgerock.http.Filter delegate,
org.forgerock.json.JsonValue decoratorConfig,
Context context)
Decorates the provided
delegate Filter instance with the provided decoratorConfig
configuration. |
protected org.forgerock.http.Handler |
decorateHandler(org.forgerock.http.Handler delegate,
org.forgerock.json.JsonValue decoratorConfig,
Context context)
Decorates the provided
delegate Handler instance with the provided decoratorConfig
configuration. |
accepts, decorate
getLogger
public BaseUriDecorator(String name)
BaseUriDecorator
.name
- The name of this decorator.protected org.forgerock.http.Filter decorateFilter(org.forgerock.http.Filter delegate, org.forgerock.json.JsonValue decoratorConfig, Context context) throws HeapException
AbstractHandlerAndFilterDecorator
delegate
Filter
instance with the provided decoratorConfig
configuration.decorateFilter
in class AbstractHandlerAndFilterDecorator
delegate
- Filter instance to be decorateddecoratorConfig
- the decorator configuration to applycontext
- contextual information of the decorated instanceHeapException
- when decoration failsprotected org.forgerock.http.Handler decorateHandler(org.forgerock.http.Handler delegate, org.forgerock.json.JsonValue decoratorConfig, Context context)
AbstractHandlerAndFilterDecorator
delegate
Handler
instance with the provided decoratorConfig
configuration.decorateHandler
in class AbstractHandlerAndFilterDecorator
delegate
- Handler instance to be decorateddecoratorConfig
- the decorator configuration to applycontext
- contextual information of the decorated instanceCopyright © 2025 Open Identity Platform Community. All rights reserved.