Uses of Class
com.sun.net.httpserver.HttpServer
Packages that use HttpServer
Package
Description
Provides a simple high-level Http server API, which can be used to build
embedded HTTP servers.
Provides a pluggable service provider interface, which allows the HTTP server
implementation to be replaced with other implementations.
-
Uses of HttpServer in com.sun.net.httpserver
Subclasses of HttpServer in com.sun.net.httpserverModifier and TypeClassDescriptionclassThis class is an extension ofHttpServerwhich provides support for HTTPS.Methods in com.sun.net.httpserver that return HttpServerModifier and TypeMethodDescriptionstatic HttpServerHttpServer.create()Creates aHttpServerinstance which is initially not bound to any local address/port.static HttpServerHttpServer.create(InetSocketAddress addr, int backlog) Create aHttpServerinstance which will bind to the specifiedInetSocketAddress(IP address and port number).static HttpServerHttpServer.create(InetSocketAddress addr, int backlog, String path, HttpHandler handler, Filter... filters) Creates anHttpServerinstance with an initial context.static HttpServerSimpleFileServer.createFileServer(InetSocketAddress addr, Path rootDirectory, SimpleFileServer.OutputLevel outputLevel) Creates a file server that serves files from a given path.abstract HttpServerHttpContext.getServer()Returns the server this context was created with. -
Uses of HttpServer in com.sun.net.httpserver.spi
Methods in com.sun.net.httpserver.spi that return HttpServerModifier and TypeMethodDescriptionabstract HttpServerHttpServerProvider.createHttpServer(InetSocketAddress addr, int backlog) creates a HttpServer from this provider