/openjdk7/jdk/src/share/classes/java/lang/ |
H A D | SecurityManager.java | 1014 * specified host and port number. 1018 * host name. 1021 * <code>SocketPermission(host+":"+port,"connect")</code> permission if 1024 * <code>SocketPermission(host,"resolve")</code> permission. 1031 * @param host the host name port to connect to. 1035 * <code>host</code> and <code>port</code>. 1036 * @exception NullPointerException if the <code>host</code> argument is 1040 public void checkConnect(String host, int port) { argument 1041 if (host 1095 checkConnect(String host, int port, Object context) argument 1167 checkAccept(String host, int port) argument [all...] |
/openjdk7/jdk/src/share/classes/sun/net/spi/nameservice/ |
H A D | NameService.java | 31 public java.net.InetAddress[] lookupAllHostAddr(String host) throws UnknownHostException; argument
|
/openjdk7/jdk/src/solaris/classes/sun/misc/ |
H A D | FileURLMapper.java | 38 * on to /net/host/... 61 String host = url.getHost(); 62 if (host == null || "".equals(host) || "localhost".equalsIgnoreCase (host)) {
|
/openjdk7/jdk/src/windows/classes/sun/net/www/protocol/file/ |
H A D | Handler.java | 46 String host = url.getHost(); 47 if (host == null) 48 host = ""; 49 return host; 80 String host = url.getHost(); 86 if ((host == null) || host.equals("") || 87 host.equalsIgnoreCase("localhost") || 88 host.equals("~")) { 95 path = "\\\\" + host [all...] |
/openjdk7/jdk/src/share/classes/sun/rmi/transport/proxy/ |
H A D | RMIDirectSocketFactory.java | 34 * specified port on the specified host. 38 public Socket createSocket(String host, int port) throws IOException argument 40 return new Socket(host, port);
|
H A D | RMIMasterSocketFactory.java | 40 * specified host using successively less efficient mechanisms 41 * until one succeeds. If the host is successfully connected to, 43 * hash table keyed by the host name, so that future attempts to 44 * connect to the same host will automatically use the same 130 * Create a new client socket. If we remember connecting to this host 135 public Socket createSocket(String host, int port) argument 139 proxyLog.log(Log.BRIEF, "host: " + host + ", port: " + port); 147 return initialFactory.createSocket(host, port); 153 * If we remember successfully connecting to this host befor 300 rememberFactory(String host, RMISocketFactory factory) argument 359 private String host; field in class:RMIMasterSocketFactory.AsyncConnector 379 AsyncConnector(RMISocketFactory factory, String host, int port, AccessControlContext acc) argument [all...] |
/openjdk7/corba/src/share/classes/com/sun/corba/se/impl/ior/iiop/ |
H A D | IIOPAddressImpl.java | 46 private String host; field in class:IIOPAddressImpl 49 public IIOPAddressImpl( ORB orb, String host, int port ) argument 58 this.host = host ; 64 host = is.read_string() ; 71 return host ;
|
/openjdk7/jdk/src/share/classes/com/sun/jndi/ldap/ |
H A D | LdapClientFactory.java | 45 final private String host; field in class:LdapClientFactory 52 LdapClientFactory(String host, int port, String socketFactory, argument 54 this.host = host; 64 return new LdapClient(host, port, socketFactory, 69 return host + ":" + port;
|
/openjdk7/jdk/test/sun/security/ssl/com/sun/net/ssl/internal/ssl/ServerHandshaker/ |
H A D | GetPeerHostServer.java | 31 * host name. 42 private String host; field in class:GetPeerHostServer 72 host = ((javax.net.ssl.SSLSocket)socket).getSession().getPeerHost(); 74 + host); 80 if (host != null && (host.charAt(0) > '9') || 81 (host.charAt(0) < '0')) {
|
/openjdk7/jdk/src/share/classes/sun/security/ssl/ |
H A D | SSLSocketFactoryImpl.java | 77 * Constructs an SSL connection to a named host at a specified port. 82 * @param host name of the host with which to connect 85 public Socket createSocket(String host, int port) argument 88 return new SSLSocketImpl(context, host, port); 93 * ServerSocket on the named host, at the given port. This 95 * host and port refer to the logical destination server. This 100 * @param host the server host 105 * @exception UnknownHostException if the host i 107 createSocket(Socket s, String host, int port, boolean autoClose) argument 136 createSocket(String host, int port, InetAddress clientAddress, int clientPort) argument [all...] |
/openjdk7/jdk/test/javax/management/remote/mandatory/ |
H A D | URLTest.java | 29 * @summary Tests that host names are parsed correctly in URLs 88 System.out.println("(Except that it allows empty host names and " + 101 final String host = hosts[i]; 102 System.out.print(" " + host + ": "); 113 final URI uri = new URI("http://" + host + "/"); 119 final int len = host.length(); 121 !(len > 1 && host.charAt(len - 1) == '.' 122 && host.charAt(len - 2) != '.')) { 123 // JMXServiceURL allows empty host name; also
|
/openjdk7/jdk/src/solaris/classes/sun/net/www/protocol/file/ |
H A D | Handler.java | 46 String host = url.getHost(); 47 if (host == null) 48 host = ""; 49 return host; 77 String host = u.getHost(); 78 if (host == null || host.equals("") || host.equals("~") || 79 host.equalsIgnoreCase("localhost")) { 91 ru = new URL("ftp", host, [all...] |
/openjdk7/jdk/src/share/classes/java/net/ |
H A D | URLStreamHandler.java | 130 String host = u.getHost(); 171 host = authority = spec.substring(start, i); 176 host = authority.substring(ind+1); 180 if (host != null) { 181 // If the host is surrounded by [ and ] then its an IPv6 183 if (host.length()>0 && (host.charAt(0) == '[')) { 184 if ((ind = host.indexOf(']')) > 2) { 186 String nhost = host ; 187 host 530 setURL(URL u, String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref) argument 558 setURL(URL u, String protocol, String host, int port, String file, String ref) argument [all...] |
H A D | SocketPermission.java | 51 * host specification and a set of "actions" specifying ways to 52 * connect to that host. The host is specified as 54 * host = (hostname | IPv4address | iPv6reference) [:portrange] 57 * The host is expressed as a DNS name, as a numerical IP address, 59 * The wildcard "*" may be included once in a DNS name host 81 * String host = url.getHost(); 82 * sp = new SocketPermission(host + ":" + port, action); 93 * The possible ways to connect to the host are 102 * The action "resolve" refers to host/i 274 SocketPermission(String host, String action) argument 281 SocketPermission(String host, int mask) argument 291 getHost(String host) argument 369 init(String host, int mask) argument [all...] |
/openjdk7/jdk/src/share/classes/com/sun/tools/jdi/ |
H A D | SocketAttachingConnector.java | 56 getString("socket_attaching.host.label"), 57 getString("socket_attaching.host"), 85 String host = argument(ARG_HOST, arguments).value(); 86 if (host.length() > 0) { 87 host = host + ":"; 89 String address = host + argument(ARG_PORT, arguments).value();
|
/openjdk7/jdk/test/sun/net/InetAddress/nameservice/chaining/ |
H A D | Providers.java | 40 // both providers know this host, but with different address 42 // provider1 knwos this host 44 // provider2 knows this host 62 private static void doLookup(String host, String addr) throws Exception { argument 63 String res = InetAddress.getByName(host).getHostAddress(); 65 throw new RuntimeException("Test failed: wrong address for host " + host); 69 private static void doReverseLookup(String addr, String host) throws Exception { argument 76 if (!res.equals(host)) { 77 throw new RuntimeException("Test failed: wrong host nam [all...] |
/openjdk7/jdk/src/share/classes/javax/management/remote/ |
H A D | JMXServiceURL.java | 64 * <code>user@host</code> syntax is not supported.</p> 73 * <code>//<em>[host[</em>:<em>port]][url-path]</em></code> 81 * <p>The <code><em>host</em></code> is a host name, an IPv4 numeric 82 * host address, or an IPv6 numeric address enclosed in square 88 * <p>The <code><em>host</em></code> and <code><em>port</em></code> 90 * without a <code><em>host</em></code>.</p> 105 * <code>service:jmx:<em>protocol</em></code> string or in the host 175 // Parse the host name 182 throw new MalformedURLException("Bad host nam 248 JMXServiceURL(String protocol, String host, int port) argument 275 JMXServiceURL(String protocol, String host, int port, String urlPath) argument 671 private final String host; field in class:JMXServiceURL [all...] |
/openjdk7/jdk/src/share/classes/com/sun/jndi/url/rmi/ |
H A D | rmiURLContext.java | 40 * rmi://[host][:port][/[object]] 70 String host = null; 76 if (url.startsWith("//", i)) { // parse "//host:port" 88 host = url.substring(i, brac + 1); // include brackets 90 } else { // at host name or IPv4 96 host = url.substring(i, hostEnd); 98 i = hostEnd; // skip past host 111 if ("".equals(host)) { 112 host = null; 128 //System.out.println("host [all...] |
/openjdk7/jdk/src/macosx/classes/java/util/prefs/ |
H A D | MacOSXPreferencesFile.java | 41 * simultaneous creation of two objects for the same name+user+host triplet 112 private long host; field in class:MacOSXPreferencesFile 116 long host() { return host; } method in class:MacOSXPreferencesFile 123 host = newHost; 127 // Always returns the same object for the given name+user+host 142 // Java user node == CF current user, any host 143 // Java system node == CF any user, current host 355 return addNode(path, appName, user, host); 363 removeNode(path, appName, user, host); 437 addNode(String path, String name, long user, long host) argument 439 removeNode(String path, String name, long user, long host) argument 441 addChildToNode(String path, String child, String name, long user, long host) argument 444 removeChildFromNode(String path, String child, String name, long user, long host) argument 447 addKeyToNode(String path, String key, String value, String name, long user, long host) argument 450 removeKeyFromNode(String path, String key, String name, long user, long host) argument 453 getKeyFromNode(String path, String key, String name, long user, long host) argument 456 getChildrenForNode(String path, String name, long user, long host) argument 458 getKeysForNode(String path, String name, long user, long host) argument 460 synchronize(String name, long user, long host) argument [all...] |
/openjdk7/jdk/src/share/classes/sun/net/www/protocol/mailto/ |
H A D | MailToURLConnection.java | 70 String host = System.getProperty("mail.host"); 71 if (host == null) { 73 host = InetAddress.getLocalHost().getHostName(); 77 str += "@" + host; 111 String host = client.getMailHost() + ":" + 25; 112 permission = new SocketPermission(host, "connect");
|
/openjdk7/jdk/src/windows/classes/sun/nio/fs/ |
H A D | WindowsUriSupport.java | 137 String host = uri.getHost(); 138 if (host == null) 139 throw new IllegalArgumentException("URI authority component has undefined host"); 150 if (host.startsWith("[")) { 151 host = host.substring(1, host.length()-1) 154 host += IPV6_LITERAL_SUFFIX; 158 path = "\\\\" + host + path;
|
/openjdk7/jdk/test/java/nio/channels/DatagramChannel/ |
H A D | SendToUnresolved.java | 37 String host = TestUtil.UNRESOLVABLE_HOST; 40 InetSocketAddress sa = new InetSocketAddress (host, 37);
|
/openjdk7/jdk/src/share/classes/sun/jvmstat/monitor/event/ |
H A D | VmStatusChangeEvent.java | 67 * @param host the MonitoredHost that is the source of the event. 74 public VmStatusChangeEvent(MonitoredHost host, Set active, argument 76 super(host); 88 * of each active Java Virtual Machine on the host. If 89 * there are no active Java Virtual Machines on the host, 103 * of each Java Virtual Machine started on the host. If 105 * host, an empty Set is returned. 118 * of each Java Virtual Machine terminated on the host. If 120 * host, an empty Set is returned.
|
/openjdk7/jdk/src/share/classes/sun/rmi/transport/tcp/ |
H A D | TCPEndpoint.java | 64 /** IP address or host name */ 65 private String host; field in class:TCPEndpoint 78 /** the local host name */ 80 /** true if real local host name is known yet */ 102 * Find host name of local machine. Property "java.rmi.server.hostname" 104 * inablility to get fully qualified host name from VM. 154 * Create an endpoint for a specified host and port. 158 public TCPEndpoint(String host, int port) { argument 159 this(host, port, null, null); 163 * Create a custom socket factory endpoint for a specified host an 167 TCPEndpoint(String host, int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf) argument 288 setLocalHost(String host) argument [all...] |
/openjdk7/jdk/src/share/classes/java/rmi/registry/ |
H A D | RegistryHandler.java | 45 * on the specified host and port. 50 * @param host name of remote registry host 57 Registry registryStub(String host, int port) argument
|