io.undertow.predicate.PredicatesHandler.Holder
instances will make the stack grow to large, so this class is used that can deal with a large number of predicates.
| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| private static class | |
| public static class | |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final AttachmentKey | |
| public static final AttachmentKey | DONE
static done marker. |
| private volatile PredicatesHandler. | |
| private volatile HttpHandler | |
| private final boolean | |
| public static final AttachmentKey | |
| private static final boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public PredicatesHandler | addPredicatedHandler(final Predicate predicate, final HandlerWrapper handlerWrapper, final HandlerWrapper elseBranch)
Adds a new predicated handler. |
| public PredicatesHandler | addPredicatedHandler(final Predicate predicate, final HandlerWrapper handlerWrapper)
Adds a new predicated handler. |
| public PredicatesHandler | |
| public HttpHandler | |
| public void | handleRequest(HttpServerExchange
the HTTP request/response exchange exchange)Implements io. Handle the request. |
| public void | |
| private boolean | |
| public String |
| CURRENT_POSITION | back to summary |
|---|---|
| private final AttachmentKey<Integer> CURRENT_POSITION | |
| DONE | back to summary |
|---|---|
| public static final AttachmentKey<Boolean> DONE static done marker. If this is attached to the exchange it will drop out immediately. | |
| handlers | back to summary |
|---|---|
| private volatile PredicatesHandler. | |
| next | back to summary |
|---|---|
| private volatile HttpHandler next | |
| outerHandler | back to summary |
|---|---|
| private final boolean outerHandler | |
| RESTART | back to summary |
|---|---|
| public static final AttachmentKey<Boolean> RESTART | |
| traceEnabled | back to summary |
|---|---|
| private static final boolean traceEnabled | |
| PredicatesHandler | back to summary |
|---|---|
| public PredicatesHandler(HttpHandler next) | |
| PredicatesHandler | back to summary |
|---|---|
| public PredicatesHandler(HttpHandler next, boolean outerHandler) | |
| addPredicatedHandler | back to summary |
|---|---|
| public PredicatesHandler addPredicatedHandler(final Predicate predicate, final HandlerWrapper handlerWrapper, final HandlerWrapper elseBranch) Adds a new predicated handler.
| |
| addPredicatedHandler | back to summary |
|---|---|
| public PredicatesHandler addPredicatedHandler(final Predicate predicate, final HandlerWrapper handlerWrapper) Adds a new predicated handler.
| |
| addPredicatedHandler | back to summary |
|---|---|
| public PredicatesHandler addPredicatedHandler(final PredicatedHandler handler) | |
| getNext | back to summary |
|---|---|
| public HttpHandler getNext() | |
| handleRequest | back to summary |
|---|---|
| public void handleRequest(HttpServerExchange exchange) throws Exception Implements io. Doc from io. Handle the request.
| |
| setNext | back to summary |
|---|---|
| public void setNext(HttpHandler next) | |
| shouldRestart | back to summary |
|---|---|
| private boolean shouldRestart(HttpServerExchange exchange, Integer current) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public HandlerWrapper | build(Map<String, Object>
The handler config config)Implements io. Creates the handler |
| public String | |
| public String | name()
Implements io. The string representation of the handler name. |
| public Map | parameters()
Implements io. Returns a map of parameters and their types. |
| public Set |
| DoneHandlerBuilder | back to summary |
|---|---|
| public DoneHandlerBuilder() | |
| build | back to summary |
|---|---|
| public HandlerWrapper build(Map<String, Object> config) Implements io. Doc from io. Creates the handler
| |
| defaultParameter | back to summary |
|---|---|
| public String defaultParameter() Implements io.
| |
| name | back to summary |
|---|---|
| public String name() Implements io. Doc from io. The string representation of the handler name. | |
| parameters | back to summary |
|---|---|
| public Map Implements io. Doc from io. Returns a map of parameters and their types.
| |
| requiredParameters | back to summary |
|---|---|
| public Set Implements io.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final HttpHandler | |
| pack-priv final HttpHandler | |
| pack-priv final Predicate |
| Access | Constructor and Description |
|---|---|
| private |
| elseBranch | back to summary |
|---|---|
| pack-priv final HttpHandler elseBranch | |
| handler | back to summary |
|---|---|
| pack-priv final HttpHandler handler | |
| predicate | back to summary |
|---|---|
| pack-priv final Predicate predicate | |
| Holder | back to summary |
|---|---|
| private Holder(Predicate predicate, HttpHandler handler, HttpHandler elseBranch) | |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final AttachmentKey |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public HandlerWrapper | build(Map<String, Object>
The handler config config)Implements io. Creates the handler |
| public String | |
| public String | name()
Implements io. The string representation of the handler name. |
| public Map | parameters()
Implements io. Returns a map of parameters and their types. |
| public Set |
| MAX_RESTARTS | back to summary |
|---|---|
| private static final int MAX_RESTARTS | |
| RESTART_COUNT | back to summary |
|---|---|
| private static final AttachmentKey<Integer> RESTART_COUNT | |
| RestartHandlerBuilder | back to summary |
|---|---|
| public RestartHandlerBuilder() | |
| build | back to summary |
|---|---|
| public HandlerWrapper build(Map<String, Object> config) Implements io. Doc from io. Creates the handler
| |
| defaultParameter | back to summary |
|---|---|
| public String defaultParameter() Implements io.
| |
| name | back to summary |
|---|---|
| public String name() Implements io. Doc from io. The string representation of the handler name. | |
| parameters | back to summary |
|---|---|
| public Map Implements io. Doc from io. Returns a map of parameters and their types.
| |
| requiredParameters | back to summary |
|---|---|
| public Set Implements io.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public HttpHandler |
| handlers | back to summary |
|---|---|
| private final List<PredicatedHandler> handlers | |
| outerHandler | back to summary |
|---|---|
| private final boolean outerHandler | |
| Wrapper | back to summary |
|---|---|
| public Wrapper(List<PredicatedHandler> handlers, boolean outerHandler) | |
| wrap | back to summary |
|---|---|
| public HttpHandler wrap(HttpHandler handler) Implements io.
| |