Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
JDK 11 jdk.naming.rmi.jmod - Naming RMI Module
JDK 11 jdk.naming.rmi.jmod is the JMOD file for JDK 11 Naming RMI module.
JDK 11 Naming RMI module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\jdk.naming.rmi.jmod.
JDK 11 Naming RMI module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Naming RMI module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\jdk.naming.rmi.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ com/sun/jndi/url/rmi/rmiURLContext.java
/* * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.jndi.url.rmi; import java.util.Hashtable; import javax.naming.*; import javax.naming.spi.ResolveResult; import com.sun.jndi.toolkit.url.GenericURLContext; import com.sun.jndi.rmi.registry.RegistryContext; /** * An RMI URL context resolves names that are URLs of the form * <pre> * rmi://[host][:port][/[object]] * or * rmi:[/][object] * </pre> * If an object is specified, the URL resolves to the named object. * Otherwise, the URL resolves to the specified RMI registry. * * @author Scott Seligman */ public class rmiURLContext extends GenericURLContext { public rmiURLContext(Hashtable<?,?> env) { super(env); } /** * Resolves the registry portion of "url" to the corresponding * RMI registry, and returns the atomic object name as the * remaining name. */ protected ResolveResult getRootURLContext(String url, Hashtable<?,?> env) throws NamingException { if (!url.startsWith("rmi:")) { throw (new IllegalArgumentException( "rmiURLContext: name is not an RMI URL: " + url)); } // Parse the URL. String host = null; int port = -1; String objName = null; int i = 4; // index into url, following the "rmi:" if (url.startsWith("//", i)) { // parse "//host:port" i += 2; // skip past "//" int slash = url.indexOf('/', i); if (slash < 0) { slash = url.length(); } if (url.startsWith("[", i)) { // at IPv6 literal int brac = url.indexOf(']', i + 1); if (brac < 0 || brac > slash) { throw new IllegalArgumentException( "rmiURLContext: name is an Invalid URL: " + url); } host = url.substring(i, brac + 1); // include brackets i = brac + 1; // skip past "[...]" } else { // at host name or IPv4 int colon = url.indexOf(':', i); int hostEnd = (colon < 0 || colon > slash) ? slash : colon; if (i < hostEnd) { host = url.substring(i, hostEnd); } i = hostEnd; // skip past host } if ((i + 1 < slash)) { if ( url.startsWith(":", i)) { // parse port i++; // skip past ":" port = Integer.parseInt(url.substring(i, slash)); } else { throw new IllegalArgumentException( "rmiURLContext: name is an Invalid URL: " + url); } } i = slash; } if ("".equals(host)) { host = null; } if (url.startsWith("/", i)) { // skip "/" before object name i++; } if (i < url.length()) { objName = url.substring(i); } // Represent object name as empty or single-component composite name. CompositeName remaining = new CompositeName(); if (objName != null) { remaining.add(objName); } // Debug //System.out.println("host=" + host + " port=" + port + // " objName=" + remaining.toString() + "\n"); // Create a registry context. Context regCtx = new RegistryContext(host, port, env); return (new ResolveResult(regCtx, remaining)); } }
⏎ com/sun/jndi/url/rmi/rmiURLContext.java
Or download all of them as a single archive file:
File name: jdk.naming.rmi-11.0.1-src.zip File size: 11809 bytes Release date: 2018-11-04 Download
⇒ JDK 11 jdk.net.jmod - Net Module
2020-04-25, 5623👍, 0💬
Popular Posts:
The Web Services Description Language for Java Toolkit (WSDL4J), Release 1.6.2, allows the creation,...
xml-commons Resolver Source Code Files are provided in the source package file, xml-commons-resolver...
Jettison is a collection of Java APIs (like STaX and DOM) which read and write JSON. This allows nea...
How to download and install Apache ZooKeeper Source Package? Apache ZooKeeper is an open-source serv...
Jackson is "the Java JSON library" or "the best JSON parser for Java". Or simply as "JSON for Java"....