Lines Matching refs:port
73 * <code>//<em>[host[</em>:<em>port]][url-path]</em></code>
85 * <p>The <code><em>port</em></code> is a decimal port number. 0
86 * means a default or anonymous port, depending on the protocol.</p>
88 * <p>The <code><em>host</em></code> and <code><em>port</em></code>
89 * can be omitted. The <code><em>port</em></code> cannot be supplied
194 // Parse the port number
198 throw new MalformedURLException("Cannot give port number " +
206 this.port = Integer.parseInt(portString);
208 throw new MalformedURLException("Bad port number: \"" +
213 this.port = 0;
228 * host, and port. This constructor is equivalent to
230 * JMXServiceURL(protocol, host, port, null)}.</p>
241 * @param port the port part of the URL.
246 * <code>port</code> is negative.
248 public JMXServiceURL(String protocol, String host, int port)
250 this(protocol, host, port, null);
265 * @param port the port part of the URL.
273 * <code>port</code> is negative.
275 public JMXServiceURL(String protocol, String host, int port,
330 this.port = port;
354 // Check port
356 if (port < 0)
357 throw new MalformedURLException("Bad port: " + port);
369 if (port != 0) {
370 throw new MalformedURLException("Cannot give port number " +
512 * <p>The port of the Service URL. If no port was
515 * @return the port of the Service URL, or 0 if none.
518 return port;
544 * <p>The <code><em>port</em></code> part of the returned string
676 private final int port;