| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| private class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final LRUCache | |
| private static final int | |
| private static final int | |
| private final HttpHandler | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| protected Session | |
| public void | handleRequest(HttpServerExchange
the HTTP request/response exchange exchange)Implements io. Handle the request. |
| cache | back to summary |
|---|---|
| private final LRUCache<String, Map<String, LearningPushHandler. | |
| DEFAULT_MAX_CACHE_AGE | back to summary |
|---|---|
| private static final int DEFAULT_MAX_CACHE_AGE | |
| DEFAULT_MAX_CACHE_ENTRIES | back to summary |
|---|---|
| private static final int DEFAULT_MAX_CACHE_ENTRIES | |
| next | back to summary |
|---|---|
| private final HttpHandler next | |
| SESSION_ATTRIBUTE | back to summary |
|---|---|
| private static final String SESSION_ATTRIBUTE | |
| LearningPushHandler | back to summary |
|---|---|
| public LearningPushHandler(final HttpHandler next) | |
| LearningPushHandler | back to summary |
|---|---|
| public LearningPushHandler(int maxEntries, int maxAge, HttpHandler next) | |
| doPush | back to summary |
|---|---|
| private void doPush(HttpServerExchange exchange, String fullPath) | |
| getSession | back to summary |
|---|---|
| protected Session getSession(HttpServerExchange exchange) | |
| handleRequest | back to summary |
|---|---|
| public void handleRequest(HttpServerExchange exchange) throws Exception Implements io. Doc from io. Handle the request.
| |
| 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 String | |
| private final String | |
| private final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | exchangeEvent(HttpServerExchange exchange, ExchangeCompletionListener.
Implements io.
|
| fullPath | back to summary |
|---|---|
| private final String fullPath | |
| referer | back to summary |
|---|---|
| private final String referer | |
| requestPath | back to summary |
|---|---|
| private final String requestPath | |
| PushCompletionListener | back to summary |
|---|---|
| private PushCompletionListener(String fullPath, String requestPath, String referer) | |
| exchangeEvent | back to summary |
|---|---|
| public void exchangeEvent(HttpServerExchange exchange, ExchangeCompletionListener. Implements io.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final long | |
| private final String | |
| private final HeaderMap |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public long | |
| public String | |
| public HeaderMap |
| etag | back to summary |
|---|---|
| private final String etag | |
| lastModified | back to summary |
|---|---|
| private final long lastModified | |
| path | back to summary |
|---|---|
| private final String path | |
| requestHeaders | back to summary |
|---|---|
| private final HeaderMap requestHeaders | |
| PushedRequest | back to summary |
|---|---|
| private PushedRequest(HeaderMap requestHeaders, String path, String etag, long lastModified) | |
| getEtag | back to summary |
|---|---|
| public String getEtag() | |
| getLastModified | back to summary |
|---|---|
| public long getLastModified() | |
| getPath | back to summary |
|---|---|
| public String getPath() | |
| getRequestHeaders | back to summary |
|---|---|
| public HeaderMap getRequestHeaders() | |