Searched refs:host (Results 1 - 25 of 237) sorted by relevance

12345678910

/openjdk7/jdk/test/java/net/InetAddress/
H A DBadDottedIPAddress.java39 String host = "999.999.999.999";
43 InetAddress ia = InetAddress.getByName(host);
50 + host);
53 host = "[]";
56 InetAddress ia = InetAddress.getByName(host);
64 + host);
67 host = "[127.0.0.1]";
70 InetAddress ia = InetAddress.getByName(host);
78 + host);
81 host
[all...]
/openjdk7/jdk/src/share/classes/java/net/
H A DProtocolException.java45 * @param host the detail message.
47 public ProtocolException(String host) { argument
48 super(host);
H A DUnknownHostException.java31 * Thrown to indicate that the IP address of a host could not be determined.
44 * @param host the detail message.
46 public UnknownHostException(String host) { argument
47 super(host);
H A DInetAddress.java64 * corresponding host name (depending on whether it is constructed
65 * with a host name or whether it has already done reverse host name
80 * interface, in case the server host has multiple interfaces.
88 * host. This address is often used when testing a
128 * one. For any host name, its corresponding IP address is returned.
131 * the host associated with the IP address is returned.
133 * <p> The InetAddress class provides methods to resolve host names to
139 * unsuccessful host name resolutions.
143 * the result of positive host nam
755 put(String host, InetAddress[] addresses) argument
803 get(String host) argument
987 getByAddress(String host, byte[] addr) argument
1039 getByName(String host) argument
1045 getByName(String host, InetAddress reqAddr) argument
1089 getAllByName(String host) argument
1094 getAllByName(String host, InetAddress reqAddr) argument
1205 getAllByName0(String host) argument
1214 getAllByName0(String host, boolean check) argument
1219 getAllByName0(String host, InetAddress reqAddr, boolean check) argument
1248 getAddressesFromNameService(String host, InetAddress reqAddr) argument
1341 checkLookupTable(String host) argument
1377 updateLookupTable(String host) argument
[all...]
/openjdk7/jdk/test/sun/net/InetAddress/nameservice/simple/
H A DSimpleNameService.java45 public static void put(String host, String addr) { argument
46 hosts.put(host, addr);
49 public static void put(String host, byte addr[]) { argument
50 hosts.put(host, addrToString(addr));
53 public static void remove(String host) { argument
54 hosts.remove(host);
72 public InetAddress[] lookupAllHostAddr(String host) throws UnknownHostException { argument
76 String value = (String)hosts.get(host);
78 throw new UnknownHostException(host);
86 res[0] = InetAddress.getByAddress(host, add
[all...]
H A DDefaultCaching.java83 static void test (String host, String address, argument
85 test (host, address, shouldSucceed);
98 static void test (String host, String address, boolean shouldSucceed) { argument
101 addr = InetAddress.getByName (host);
103 throw new RuntimeException (host+":"+address+": should fail");
107 throw new RuntimeException(host+":"+address+": compare failed");
111 throw new RuntimeException(host+":"+address+": should succeed");
/openjdk7/jdk/src/share/classes/sun/rmi/transport/proxy/
H A DRMIHttpToCGISocketFactory.java35 * specified host that is comminicated within an HTTP request,
36 * forwarded through the default firewall proxy, to the target host's
42 public Socket createSocket(String host, int port) argument
45 return new HttpSendSocket(host, port,
46 new URL("http", host,
H A DRMIHttpToPortSocketFactory.java35 * specified host that is communicated within an HTTP request,
41 public Socket createSocket(String host, int port) argument
44 return new HttpSendSocket(host, port,
45 new URL("http", host, port, "/"));
/openjdk7/jdk/src/share/classes/java/rmi/server/
H A DRMIClientSocketFactory.java65 * Create a client socket connected to the specified host and port.
66 * @param host the host name
68 * @return a socket connected to the specified host and port.
72 public Socket createSocket(String host, int port) argument
/openjdk7/jdk/src/share/classes/javax/swing/text/html/
H A DEditableView.java74 Container host = getContainer();
76 if (host != null &&
77 isVisible != ((JTextComponent)host).isEditable()) {
78 isVisible = ((JTextComponent)host).isEditable();
80 host.repaint();
106 Container host = parent.getContainer();
107 if (host != null) {
108 if (host instanceof JTextComponent) {
109 isVisible = ((JTextComponent)host).isEditable();
H A DNoFramesView.java65 Container host = getContainer();
66 if (host != null &&
67 visible != ((JTextComponent)host).isEditable()) {
68 visible = ((JTextComponent)host).isEditable();
90 Container host = p.getContainer();
91 if (host != null) {
92 visible = ((JTextComponent)host).isEditable();
/openjdk7/jdk/test/sun/net/InetAddress/nameservice/chaining/
H A DSimpleNameService.java33 // host name <-> host addr mapping
36 public void put(String host, String addr) { argument
37 hosts.put(host, addr);
50 public InetAddress[] lookupAllHostAddr(String host) throws UnknownHostException { argument
51 String addr = hosts.get(host);
53 throw new UnknownHostException(host);
62 ret[0] = InetAddress.getByAddress(host, addrs);
70 String host = (String)i.next();
71 String value = (String)hosts.get(host);
[all...]
/openjdk7/jdk/src/share/classes/sun/jvmstat/monitor/event/
H A DHostEvent.java42 * @param host the MonitoredHost source of the event.
44 public HostEvent(MonitoredHost host) { argument
45 super(host);
/openjdk7/corba/src/share/classes/com/sun/corba/se/impl/ior/iiop/
H A DIIOPAddressClosureImpl.java40 private Closure host; field in class:IIOPAddressClosureImpl
43 public IIOPAddressClosureImpl( Closure host, Closure port ) argument
45 this.host = host ;
51 return (String)(host.evaluate()) ;
/openjdk7/corba/src/share/classes/com/sun/corba/se/impl/naming/namingutil/
H A DIIOPEndpointInfo.java32 * host information used in creating the Service Object reference
43 private String host; field in class:IIOPEndpointInfo
50 // Default host is localhost
51 host = ORBConstants.DEFAULT_INS_HOST;
57 host = theHost;
61 return host;
89 System.out.println( "host -> " + host );
/openjdk7/jdk/src/windows/classes/sun/misc/
H A DFileURLMapper.java57 String host = url.getHost();
58 if (host != null && !host.equals("") &&
59 !"localhost".equalsIgnoreCase(host)) {
61 String s = host + ParseUtil.decode (url.getFile());
/openjdk7/jdk/src/share/classes/sun/security/x509/
H A DURIName.java44 * address as the host.
47 * (e.g., "http" is equivalent to "HTTP"). The host part is also not
50 * MUST compare the scheme and host without regard to case, but assume
63 * of an IP-based protocol to a specified host on the Internet use a
66 * //<user>:<password>@<host>:<port>/<url-path>
85 private String host; field in class:URIName
116 host = uri.getHost();
117 // RFC 3280 says that the host should be non-null, but we allow it to
121 if (host != null) {
122 if (host
186 URIName(URI uri, String host, DNSName hostDNS) argument
[all...]
/openjdk7/jdk/src/share/classes/sun/net/util/
H A DURLUtil.java55 String host = url.getHost();
56 if (host != null) {
57 /* host is compared case-insensitive, so convert to lowercase */
58 host = host.toLowerCase();
59 strForm.append(host);
/openjdk7/jdk/src/share/classes/java/rmi/registry/
H A DLocateRegistry.java43 * remote object registry on a particular host (including the local host), or
47 * connection to the remote host. It simply creates a local reference to
49 * the remote host. Therefore, a subsequent method invocation to a remote
66 * the local host on the default registry port of 1099.
80 * the local host on the specified <code>port</code>.
95 * specified <code>host</code> on the default registry port of 1099. If
96 * <code>host</code> is <code>null</code>, the local host is used.
98 * @param host hos
103 getRegistry(String host) argument
120 getRegistry(String host, int port) argument
144 getRegistry(String host, int port, RMIClientSocketFactory csf) argument
[all...]
/openjdk7/jdk/src/share/classes/javax/net/
H A DSocketFactory.java133 * Creates a socket and connects it to the specified remote host
138 * method is called with the host address and <code>port</code>
141 * @param host the server host name with which to connect, or
148 * @throws UnknownHostException if the host is not known
155 public abstract Socket createSocket(String host, int port) argument
160 * Creates a socket and connects it to the specified remote host
167 * method is called with the host address and <code>port</code>
170 * @param host the server host nam
187 createSocket(String host, int port, InetAddress localHost, int localPort) argument
213 createSocket(InetAddress host, int port) argument
268 createSocket(String host, int port) argument
280 createSocket(String host, int port, InetAddress clientAddress, int clientPort) argument
[all...]
/openjdk7/jdk/test/java/rmi/Naming/
H A DUnderscoreHost.java27 * @summary Ensure that Naming.java correctly parses host names with '_' in
52 * The socket factory captures the host name of the parsed URL, and
53 * then connects to the local host.
56 String host; field in class:UnderscoreHost.HostVerifyingSocketFactory
58 public synchronized Socket createSocket(String host, int port) argument
60 if (this.host == null) {
62 // will be local host
63 this.host = host;
89 * If java.net.URI obeys RFC 3986, so host name
[all...]
/openjdk7/jdk/src/share/classes/sun/net/www/protocol/http/
H A DHttpCallerInfo.java48 final public String host, protocol, prompt, scheme; field in class:HttpCallerInfo
58 this.host = old.host;
73 host = url.getHost();
98 public HttpCallerInfo(URL url, String host, int port) { argument
100 this.host = host;
/openjdk7/jdk/src/share/classes/java/util/logging/
H A DSocketHandler.java55 * <li> java.util.logging.SocketHandler.host
56 * specifies the target host name to connect to (no default).
69 private String host; field in class:SocketHandler
94 host = manager.getStringProperty(cname + ".host", null);
101 * @throws IllegalArgumentException if the host or port are invalid or
104 * host and port.
114 System.err.println("SocketHandler: connect failed to " + host + ":" + port);
121 * Construct a <tt>SocketHandler</tt> using a specified host and port.
124 * properties (or their default values) except that the given target host
135 SocketHandler(String host, int port) argument
[all...]
/openjdk7/jdk/test/sun/security/provider/PolicyFile/
H A DCombinedPerms.java40 String host = "localhost";
46 p.add(new SocketPermission(host, "connect"));
49 if (pd.implies(new SocketPermission(host, "connect,accept"))) {
/openjdk7/jdk/test/javax/management/remote/mandatory/socketFactories/
H A DRMIClientFactory.java39 public Socket createSocket(String host, int port) throws IOException { argument
43 System.out.println("Calling createSocket("+host+","+port+")");
44 Socket s = new Socket(host, port);

Completed in 109 milliseconds

12345678910