| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final HttpHandler | |
| private final RequestLimit |
| Access | Constructor and Description |
|---|---|
| public | RequestLimitingHandler(int
the maximum concurrent requests maximumConcurrentRequests, HttpHandler the next handler nextHandler)Construct a new instance. |
| public | RequestLimitingHandler(int
the maximum concurrent requests maximumConcurrentRequests, int the maximum number of requests to queue queueSize, HttpHandler the next handler nextHandler)Construct a new instance. |
| public | RequestLimitingHandler(RequestLimit
the request limit information. requestLimit, HttpHandler the next handler nextHandler)Construct a new instance. |
| Modifier and Type | Method and Description |
|---|---|
| public RequestLimit | |
| public void | handleRequest(final HttpServerExchange
the HTTP request/response exchange exchange)Implements io. Handle the request. |
| public String |
| nextHandler | back to summary |
|---|---|
| private final HttpHandler nextHandler | |
| requestLimit | back to summary |
|---|---|
| private final RequestLimit requestLimit | |
| RequestLimitingHandler | back to summary |
|---|---|
| public RequestLimitingHandler(int maximumConcurrentRequests, HttpHandler nextHandler) Construct a new instance. The maximum number of concurrent requests must be at least one. The next handler
must not be
| |
| RequestLimitingHandler | back to summary |
|---|---|
| public RequestLimitingHandler(int maximumConcurrentRequests, int queueSize, HttpHandler nextHandler) Construct a new instance. The maximum number of concurrent requests must be at least one. The next handler
must not be
| |
| RequestLimitingHandler | back to summary |
|---|---|
| public RequestLimitingHandler(RequestLimit requestLimit, HttpHandler nextHandler) Construct a new instance. This version takes a
| |
| getRequestLimit | back to summary |
|---|---|
| public RequestLimit getRequestLimit() | |
| handleRequest | back to summary |
|---|---|
| public void handleRequest(final HttpServerExchange exchange) throws Exception Implements io. Doc from io. Handle the request.
| |
| 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 int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public HttpHandler |
| requests | back to summary |
|---|---|
| private final int requests | |
| Wrapper | back to summary |
|---|---|
| private Wrapper(int requests) | |
| wrap | back to summary |
|---|---|
| public HttpHandler wrap(HttpHandler handler) Implements io.
| |