Uses of Class
java.net.InetSocketAddress
| 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.
|
| java.net |
Provides the classes for implementing networking applications.
|
-
Uses of InetSocketAddress in com.sun.net.httpserver
Methods in com.sun.net.httpserver that return InetSocketAddress Modifier and Type Method Description abstract InetSocketAddressHttpServer. getAddress()returns the address this server is listening onabstract InetSocketAddressHttpsParameters. getClientAddress()Returns the address of the remote client initiating the connection.abstract InetSocketAddressHttpExchange. getLocalAddress()Returns the local address on which the request was receivedabstract InetSocketAddressHttpExchange. getRemoteAddress()Returns the address of the remote entity invoking this requestMethods in com.sun.net.httpserver with parameters of type InetSocketAddress Modifier and Type Method Description abstract voidHttpServer. bind(InetSocketAddress addr, int backlog)Binds a currently unbound HttpServer to the given address and port number.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.static HttpsServerHttpsServer. create(InetSocketAddress addr, int backlog)Create aHttpsServerinstance which will bind to the specifiedInetSocketAddress(IP address and port number) A maximum backlog can also be specified. -
Uses of InetSocketAddress in com.sun.net.httpserver.spi
Methods in com.sun.net.httpserver.spi with parameters of type InetSocketAddress Modifier and Type Method Description abstract HttpServerHttpServerProvider. createHttpServer(InetSocketAddress addr, int backlog)creates a HttpServer from this providerabstract HttpsServerHttpServerProvider. createHttpsServer(InetSocketAddress addr, int backlog)creates a HttpsServer from this provider -
Uses of InetSocketAddress in java.net
Methods in java.net that return InetSocketAddress Modifier and Type Method Description static InetSocketAddressInetSocketAddress. createUnresolved(String host, int port)Creates an unresolved socket address from a hostname and a port number.Methods in java.net with parameters of type InetSocketAddress Modifier and Type Method Description static ProxySelectorProxySelector. of(InetSocketAddress proxyAddress)Returns a ProxySelector which uses the given proxy address for all HTTP and HTTPS requests.