Uses of Class
com.sun.net.httpserver.Filter
Packages that use 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
Methods in com.sun.net.httpserver that return FilterModifier 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.Methods in com.sun.net.httpserver that return types with arguments of type FilterMethods in com.sun.net.httpserver with parameters of type FilterModifier 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.Constructor parameters in com.sun.net.httpserver with type arguments of type FilterModifierConstructorDescriptionChain
(List<Filter> filters, HttpHandler handler) Creates aChain
instance with given filters and handler.