Uses of Class
com.sun.net.httpserver.HttpExchange
Packages that use 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
Subclasses of HttpExchange in com.sun.net.httpserverModifier and TypeClassDescriptionclassThis class encapsulates a HTTPS request received and a response to be generated in one exchange and defines the extensions toHttpExchangethat are specific to the HTTPS protocol.Methods in com.sun.net.httpserver with parameters of type HttpExchangeModifier and TypeMethodDescriptionabstract Authenticator.ResultAuthenticator.authenticate(HttpExchange exch) Called to authenticate each incoming request.BasicAuthenticator.authenticate(HttpExchange t) voidFilter.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 voidFilter.doFilter(HttpExchange exchange, Filter.Chain chain) Asks this filter to pre/post-process the given exchange.voidHttpHandler.handle(HttpExchange exchange) Handle the given request and generate an appropriate response.Method parameters in com.sun.net.httpserver with type arguments of type HttpExchangeModifier and TypeMethodDescriptionstatic FilterFilter.afterHandler(String description, Consumer<HttpExchange> operation) Returns a post-processingFilterwith the given description and operation.static FilterFilter.beforeHandler(String description, Consumer<HttpExchange> operation) Returns a pre-processingFilterwith the given description and operation.