Lines Matching refs:host
43 * <li>java.util.logging.SocketHandler.host specifies the name of the host that
67 * the log manager, including the host name and port number. Default
71 * if failed to connect to the specified host and port.
73 * if the host name or port number is illegal.
78 "java.util.logging.SocketHandler.host"), LogManager
84 * Constructs a {@code SocketHandler} object using the specified host name
88 * @param host
89 * the host name
93 * if failed to connect to the specified host and port.
95 * if the host name or port number is illegal.
97 public SocketHandler(String host, int port) throws IOException {
99 initSocket(host, String.valueOf(port));
103 private void initSocket(String host, String port) throws IOException {
104 // check the validity of the host name
105 if (host == null || host.isEmpty()) {
106 throw new IllegalArgumentException("host == null || host.isEmpty()");
117 this.socket = new Socket(host, p);
127 * Closes this handler. The network connection to the host is also closed.