Todo
should we support non-regex values for performance reasons?
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| public static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final ExchangeAttribute | |
| private volatile boolean | |
| private volatile HttpHandler |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public AccessControlListHandler | |
| public AccessControlListHandler | |
| private AccessControlListHandler | |
| public AccessControlListHandler | |
| public HttpHandler | |
| public void | handleRequest(final HttpServerExchange
the HTTP request/response exchange exchange)Implements io. Handle the request. |
| pack-priv boolean | |
| public boolean | |
| public AccessControlListHandler | |
| public AccessControlListHandler |
| acl | back to summary |
|---|---|
| private final List<AccessControlListHandler. | |
| attribute | back to summary |
|---|---|
| private final ExchangeAttribute attribute | |
| defaultAllow | back to summary |
|---|---|
| private volatile boolean defaultAllow | |
| next | back to summary |
|---|---|
| private volatile HttpHandler next | |
| AccessControlListHandler | back to summary |
|---|---|
| public AccessControlListHandler(final HttpHandler next, ExchangeAttribute attribute) | |
| AccessControlListHandler | back to summary |
|---|---|
| public AccessControlListHandler(ExchangeAttribute attribute) | |
| addAllow | back to summary |
|---|---|
| public AccessControlListHandler addAllow(final String pattern) Adds an allowed user agent peer to the ACL list User agent may be given as regex
| |
| addDeny | back to summary |
|---|---|
| public AccessControlListHandler addDeny(final String pattern) Adds an denied user agent to the ACL list User agent may be given as regex
| |
| addRule | back to summary |
|---|---|
| private AccessControlListHandler addRule(final String userAgent, final boolean deny) | |
| clearRules | back to summary |
|---|---|
| public AccessControlListHandler clearRules() | |
| getNext | back to summary |
|---|---|
| public HttpHandler getNext() | |
| handleRequest | back to summary |
|---|---|
| public void handleRequest(final HttpServerExchange exchange) throws Exception Implements io. Doc from io. Handle the request.
| |
| isAllowed | back to summary |
|---|---|
| pack-priv boolean isAllowed(String attribute) | |
| isDefaultAllow | back to summary |
|---|---|
| public boolean isDefaultAllow() | |
| setDefaultAllow | back to summary |
|---|---|
| public AccessControlListHandler setDefaultAllow(final boolean defaultAllow) | |
| setNext | back to summary |
|---|---|
| public AccessControlListHandler setNext(final HttpHandler next) | |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final Pattern |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private Pattern | |
| pack-priv boolean | |
| pack-priv boolean | |
| public String |
| deny | back to summary |
|---|---|
| private final boolean deny | |
| pattern | back to summary |
|---|---|
| private final Pattern pattern | |
| AclMatch | back to summary |
|---|---|
| protected AclMatch(final boolean deny, final String pattern) | |
| createPattern | back to summary |
|---|---|
| private Pattern createPattern(final String pattern) | |
| isDeny | back to summary |
|---|---|
| pack-priv boolean isDeny() | |
| matches | back to summary |
|---|---|
| pack-priv boolean matches(final String attribute) | |
| 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 |
| Builder | back to summary |
|---|---|
| public Builder() | |
| 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 ExchangeAttribute | |
| private final boolean | |
| private final List |
| Access | Constructor and Description |
|---|---|
| private | Wrapper(List<AccessControlListHandler.
|
| Modifier and Type | Method and Description |
|---|---|
| public HttpHandler |
| attribute | back to summary |
|---|---|
| private final ExchangeAttribute attribute | |
| defaultAllow | back to summary |
|---|---|
| private final boolean defaultAllow | |
| peerMatches | back to summary |
|---|---|
| private final List<AccessControlListHandler. | |
| Wrapper | back to summary |
|---|---|
| private Wrapper(List<AccessControlListHandler. | |
| wrap | back to summary |
|---|---|
| public HttpHandler wrap(HttpHandler handler) Implements io.
| |