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 HttpServer
HttpServer.create()
Creates aHttpServer
instance which is initially not bound to any local address/port.static HttpServer
HttpServer.create
(InetSocketAddress addr, int backlog) Create aHttpServer
instance which will bind to the specifiedInetSocketAddress
(IP address and port number).static HttpServer
HttpServer.create
(InetSocketAddress addr, int backlog, String path, HttpHandler handler, Filter... filters) Creates anHttpServer
instance with an initial context.static HttpServer
SimpleFileServer.createFileServer
(InetSocketAddress addr, Path rootDirectory, SimpleFileServer.OutputLevel outputLevel) Creates a file server that serves files from a given path.abstract HttpServer
HttpContext.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 HttpServer
HttpServerProvider.createHttpServer
(InetSocketAddress addr, int backlog) creates a HttpServer from this provider