Uses of Class
com.sun.net.httpserver.HttpExchange
Package
Description
Provides a simple high-level Http server API, which can be used to build
embedded HTTP servers.
-
Uses of HttpExchange in com.sun.net.httpserver
Modifier and TypeClassDescriptionclass
This class encapsulates a HTTPS request received and a response to be generated in one exchange and defines the extensions toHttpExchange
that are specific to the HTTPS protocol.Modifier and TypeMethodDescriptionabstract Authenticator.Result
Authenticator.authenticate
(HttpExchange exch) Called to authenticate each incoming request.BasicAuthenticator.authenticate
(HttpExchange t) void
Filter.Chain.doFilter
(HttpExchange exchange) Calls the next filter in the chain, or else the users exchange handler, if this is the final filter in the chain.abstract void
Filter.doFilter
(HttpExchange exchange, Filter.Chain chain) Asks this filter to pre/post-process the given exchange.void
HttpHandler.handle
(HttpExchange exchange) Handle the given request and generate an appropriate response.Modifier and TypeMethodDescriptionstatic Filter
Filter.afterHandler
(String description, Consumer<HttpExchange> operation) Returns a post-processingFilter
with the given description and operation.static Filter
Filter.beforeHandler
(String description, Consumer<HttpExchange> operation) Returns a pre-processingFilter
with the given description and operation.