Uses of Class
com.sun.net.httpserver.Filter
Package
Description
Provides a simple high-level Http server API, which can be used to build
embedded HTTP servers.
-
Uses of Filter in com.sun.net.httpserver
Modifier and TypeMethodDescriptionstatic Filter
Filter.adaptRequest
(String description, UnaryOperator<Request> requestOperator) Returns a pre-processing Filter that inspects and possibly adapts the request state.static 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.static Filter
SimpleFileServer.createOutputFilter
(OutputStream out, SimpleFileServer.OutputLevel outputLevel) Creates a post-processing Filter that prints log messages about exchanges.Modifier and TypeMethodDescriptionstatic HttpServer
HttpServer.create
(InetSocketAddress addr, int backlog, String path, HttpHandler handler, Filter... filters) Creates anHttpServer
instance with an initial context.static HttpsServer
HttpsServer.create
(InetSocketAddress addr, int backlog, String path, HttpHandler handler, Filter... filters) Creates anHttpsServer
instance with an initial context.ModifierConstructorDescriptionChain
(List<Filter> filters, HttpHandler handler) Creates aChain
instance with given filters and handler.