Uses of Class
com.sun.net.httpserver.HttpServer
| Package | Description |
|---|---|
| com.sun.net.httpserver |
Provides a simple high-level Http server API, which can be used to build
embedded HTTP servers.
|
| com.sun.net.httpserver.spi |
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.httpserver Modifier and Type Class Description classHttpsServerThis class is an extension ofHttpServerwhich provides support for HTTPS.Methods in com.sun.net.httpserver that return HttpServer Modifier and Type Method Description static HttpServerHttpServer. create()creates a HttpServer instance 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) A maximum backlog can also be specified.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 Modifier and Type Method Description abstract HttpServerHttpServerProvider. createHttpServer(InetSocketAddress addr, int backlog)creates a HttpServer from this provider