| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static class | ResponseBodyHandlers.
A Path body handler. |
| public static class |
| Access | Constructor and Description |
|---|---|
| private |
| ResponseBodyHandlers | back to summary |
|---|---|
| private ResponseBodyHandlers() | |
| Modifier and Type | Field and Description |
|---|---|
| private final Path | |
| pack-priv static final String | DISPOSITION_TYPE
The "attachment" disposition-type and separator. |
| pack-priv static final Pattern | FILENAME
The "filename" parameter. |
| pack-priv static final Set | |
| private final List | |
| pack-priv static final List |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static boolean | |
| public HttpResponse. | apply(HttpResponse.
Implements java. Returns a |
| public static ResponseBodyHandlers. | |
| pack-priv static boolean | |
| pack-priv static boolean | |
| pack-priv static String | |
| pack-priv static String | |
| pack-priv static String | |
| pack-priv static final UncheckedIOException | |
| pack-priv static final UncheckedIOException |
| directory | back to summary |
|---|---|
| private final Path directory | |
| DISPOSITION_TYPE | back to summary |
|---|---|
| pack-priv static final String DISPOSITION_TYPE The "attachment" disposition-type and separator. | |
| FILENAME | back to summary |
|---|---|
| pack-priv static final Pattern FILENAME The "filename" parameter. | |
| NOT_ALLOWED_IN_TOKEN | back to summary |
|---|---|
| pack-priv static final Set<Character> NOT_ALLOWED_IN_TOKEN | |
| openOptions | back to summary |
|---|---|
| private final List<OpenOption> openOptions | |
| PROHIBITED | back to summary |
|---|---|
| pack-priv static final List<String> PROHIBITED | |
| FileDownloadBodyHandler | back to summary |
|---|---|
| private FileDownloadBodyHandler(Path directory, List<OpenOption> openOptions) | |
| allowedInToken | back to summary |
|---|---|
| pack-priv static boolean allowedInToken(char c) | |
| apply | back to summary |
|---|---|
| public HttpResponse. Implements java. Doc from java. Returns a The response body can be discarded using one of
| |
| create | back to summary |
|---|---|
| public static ResponseBodyHandlers. Factory for creating FileDownloadBodyHandler. | |
| isQuotedStringText | back to summary |
|---|---|
| pack-priv static boolean isQuotedStringText(char c) throws UncheckedIOException | |
| isTokenText | back to summary |
|---|---|
| pack-priv static boolean isTokenText(char c) throws UncheckedIOException | |
| processFilename | back to summary |
|---|---|
| pack-priv static String processFilename(String src) throws UncheckedIOException | |
| processQuotedString | back to summary |
|---|---|
| pack-priv static String processQuotedString(String src) throws UncheckedIOException | |
| processToken | back to summary |
|---|---|
| pack-priv static String processToken(String src) throws UncheckedIOException | |
| unchecked | back to summary |
|---|---|
| pack-priv static final UncheckedIOException unchecked(HttpResponse. | |
| unchecked | back to summary |
|---|---|
| pack-priv static final UncheckedIOException unchecked(String msg) | |
| Modifier and Type | Field and Description |
|---|---|
| private final Path | |
| private final List |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public HttpResponse. | apply(HttpResponse.
Implements java. Returns a |
| public static ResponseBodyHandlers. |
| file | back to summary |
|---|---|
| private final Path file | |
| openOptions | back to summary |
|---|---|
| private final List<OpenOption> openOptions | |
| PathBodyHandler | back to summary |
|---|---|
| private PathBodyHandler(Path file, List<OpenOption> openOptions) | |
| apply | back to summary |
|---|---|
| public HttpResponse. Implements java. Doc from java. Returns a The response body can be discarded using one of
| |
| create | back to summary |
|---|---|
| public static ResponseBodyHandlers. Factory for creating PathBodyHandler. | |
| Modifier and Type | Field and Description |
|---|---|
| private final Function | |
| private final ConcurrentMap |
| Access | Constructor and Description |
|---|---|
| public | PushPromisesHandlerWithMap(Function<HttpRequest, HttpResponse.
|
| Modifier and Type | Method and Description |
|---|---|
| public void | applyPushPromise(HttpRequest initiatingRequest, HttpRequest pushRequest, Function<HttpResponse.
Implements java. Notification of an incoming push promise. |
| pushPromiseHandler | back to summary |
|---|---|
| private final Function<HttpRequest, HttpResponse. | |
| pushPromisesMap | back to summary |
|---|---|
| private final ConcurrentMap<HttpRequest, CompletableFuture<HttpResponse<T>>> pushPromisesMap | |
| PushPromisesHandlerWithMap | back to summary |
|---|---|
| public PushPromisesHandlerWithMap(Function<HttpRequest, HttpResponse. | |
| applyPushPromise | back to summary |
|---|---|
| public void applyPushPromise(HttpRequest initiatingRequest, HttpRequest pushRequest, Function<HttpResponse. Implements java. Doc from java. Notification of an incoming push promise. This method is invoked once for each push promise received, up to the point where the response body of the initiating client-sent request has been fully received. A push promise is accepted by invoking the given If the This method is invoked for all HTTP/2 push promises and also
by default for the first promise of all HTTP/3 push promises.
If
| |