Uses of Class
java.net.InetSocketAddress
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.
Provides the classes for implementing networking applications.
-
Uses of InetSocketAddress in com.sun.net.httpserver
Modifier and TypeMethodDescriptionabstract InetSocketAddress
HttpServer.getAddress()
Returns the address this server is listening onabstract InetSocketAddress
HttpsParameters.getClientAddress()
Returns the address of the remote client initiating the connection.abstract InetSocketAddress
HttpExchange.getLocalAddress()
Returns the local address on which the request was received.abstract InetSocketAddress
HttpExchange.getRemoteAddress()
Returns the address of the remote entity invoking this request.Modifier and TypeMethodDescriptionabstract void
HttpServer.bind
(InetSocketAddress addr, int backlog) Binds a currently unboundHttpServer
to the given address and port number.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 HttpsServer
HttpsServer.create
(InetSocketAddress addr, int backlog) Create aHttpsServer
instance which will bind to the specifiedInetSocketAddress
(IP address and port number).static HttpsServer
HttpsServer.create
(InetSocketAddress addr, int backlog, String path, HttpHandler handler, Filter... filters) Creates anHttpsServer
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. -
Uses of InetSocketAddress in com.sun.net.httpserver.spi
Modifier and TypeMethodDescriptionabstract HttpServer
HttpServerProvider.createHttpServer
(InetSocketAddress addr, int backlog) creates a HttpServer from this providerabstract HttpsServer
HttpServerProvider.createHttpsServer
(InetSocketAddress addr, int backlog) creates a HttpsServer from this provider -
Uses of InetSocketAddress in java.net
Modifier and TypeMethodDescriptionstatic InetSocketAddress
InetSocketAddress.createUnresolved
(String host, int port) Creates an unresolved socket address from a hostname and a port number.Modifier and TypeMethodDescriptionstatic ProxySelector
ProxySelector.of
(InetSocketAddress proxyAddress) Returns a ProxySelector which uses the given proxy address for all HTTP and HTTPS requests.