Uses of Class
com.sun.net.httpserver.HttpServer
Packages that use HttpServer
包
描述
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.httpserverMethods in com.sun.net.httpserver that return HttpServer修饰符和类方法描述static 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 HttpServer修饰符和类方法描述abstract HttpServerHttpServerProvider.createHttpServer(InetSocketAddress addr, int backlog) creates a HttpServer from this provider