Index
All Classes and Interfaces|All Packages
B
- Body - Interface in dev.mccue.jdk.httpserver
-
The body of an HTTP Response.
D
- defaultContentType() - Method in interface dev.mccue.jdk.httpserver.Body
-
The content type that should be used for this
Body. - dev.mccue.jdk.httpserver - module dev.mccue.jdk.httpserver
-
Utilities for working with the built-in JDK http server API.
- dev.mccue.jdk.httpserver - package dev.mccue.jdk.httpserver
E
- empty() - Static method in interface dev.mccue.jdk.httpserver.Body
-
Creates an empty
Bodywhich will send no bytes to the client. - equals(Object) - Method in class dev.mccue.jdk.httpserver.ResponseLength
H
- hashCode() - Method in class dev.mccue.jdk.httpserver.ResponseLength
- HttpExchanges - Class in dev.mccue.jdk.httpserver
-
Helpers for working with an
HttpExchange. - HttpExchangeUtils - Class in dev.mccue.jdk.httpserver
K
- known(long) - Static method in class dev.mccue.jdk.httpserver.ResponseLength
-
Construct a
ResponseLengthgiven a known response length that will be sent.
O
- of(byte[]) - Static method in interface dev.mccue.jdk.httpserver.Body
-
Creates a
Bodywrapping the givenbyte[]. - of(InputStream) - Static method in interface dev.mccue.jdk.httpserver.Body
-
Creates a
Bodywrapping the givenbyte[]. - of(InputStream, ResponseLength) - Static method in interface dev.mccue.jdk.httpserver.Body
-
Creates a
Bodywrapping the givenbyte[]. - of(String) - Static method in interface dev.mccue.jdk.httpserver.Body
-
Constructs a body which wraps the given
String. - of(String, Charset) - Static method in interface dev.mccue.jdk.httpserver.Body
-
Constructs a body which wraps the given
String.
R
- responseLength() - Method in interface dev.mccue.jdk.httpserver.Body
-
The length of the response body that will be written when
writeTo(OutputStream)is called. - ResponseLength - Class in dev.mccue.jdk.httpserver
-
The length (in bytes)of a response body that will be sent through an
HttpExchange.
S
- sendResponse(HttpExchange, int, Body) - Static method in class dev.mccue.jdk.httpserver.HttpExchanges
-
Sends a response to the client.
- sendResponse(HttpExchange, int, Body) - Static method in class dev.mccue.jdk.httpserver.HttpExchangeUtils
-
HttpExchanges.sendResponse(HttpExchange, int, Body)(HttpExchange, int, ResponseLength)} - sendResponseHeaders(HttpExchange, int, ResponseLength) - Static method in class dev.mccue.jdk.httpserver.HttpExchanges
-
Starts sending the response back to the client using the current set of response headers and the numeric response code as specified in this method.
- sendResponseHeaders(HttpExchange, int, ResponseLength) - Static method in class dev.mccue.jdk.httpserver.HttpExchangeUtils
T
- toString() - Method in class dev.mccue.jdk.httpserver.ResponseLength
U
- unknown() - Static method in class dev.mccue.jdk.httpserver.ResponseLength
-
Construct a
ResponseLengthwhich represents an unknown number of bytes to be sent in a response.
W
- writeTo(OutputStream) - Method in interface dev.mccue.jdk.httpserver.Body
-
Writes the response body to the provided
OutputStream.
All Classes and Interfaces|All Packages