diff options
Diffstat (limited to 'gnu/CORBA/NamingService')
-rw-r--r-- | gnu/CORBA/NamingService/NameParser.java | 28 | ||||
-rw-r--r-- | gnu/CORBA/NamingService/NamingMap.java | 2 | ||||
-rw-r--r-- | gnu/CORBA/NamingService/NamingServiceTransient.java | 8 | ||||
-rw-r--r-- | gnu/CORBA/NamingService/TransientContext.java | 8 |
4 files changed, 23 insertions, 23 deletions
diff --git a/gnu/CORBA/NamingService/NameParser.java b/gnu/CORBA/NamingService/NameParser.java index 5d4b729a5..93e4e3b16 100644 --- a/gnu/CORBA/NamingService/NameParser.java +++ b/gnu/CORBA/NamingService/NameParser.java @@ -68,15 +68,15 @@ import java.util.StringTokenizer; /** * Parses the alternative IOR representations into our IOR structure. - * + * * TODO This parser currently supports only one address per target string. A * string with the multiple addresses will be accepted, but only the last * address will be taken into consideration. The fault tolerance is not yet * implemented. - * + * * The key string is filtered using {@link java.net.URLDecoder} that replaces * the agreed escape sequences by the corresponding non alphanumeric characters. - * + * * @author Audrius Meskauskas, Lithuania (AudriusA@Bioinformatics.org) */ public class NameParser @@ -96,17 +96,17 @@ public class NameParser * The IOR prefix. */ public static final String pxIOR = "ior"; - + /** * The file:// prefix. */ public static final String pxFILE = "file://"; - + /** * The ftp:// prefix. */ public static final String pxFTP = "ftp://"; - + /** * The http:// prefix. */ @@ -149,7 +149,7 @@ public class NameParser /** * Parse CORBALOC. - * + * * The expected format is: <br> * 1. corbaloc:[iiop][version.subversion@]:host[:port]/key <br> * 2. corbaloc:rir:[/key] <br> @@ -158,12 +158,12 @@ public class NameParser * 5. file://[file name]<br> * 6. http://[url]<br> * 7. ftp://[url]<br> - * + * * Protocol defaults to IOP, the object key defaults to the NameService. - * + * * @param corbaloc the string to parse. * @param orb the ORB, needed to create IORs and resolve rir references. - * + * * @return the resolved object. */ public synchronized org.omg.CORBA.Object corbaloc(String corbaloc, @@ -172,7 +172,7 @@ public class NameParser { return corbaloc(corbaloc, orb, 0); } - + /** * Parse controlling against the infinite recursion loop. */ @@ -184,7 +184,7 @@ public class NameParser // by malicious attempt. if (recursion > 10) throw new DATA_CONVERSION("More than 10 redirections"); - + if (corbaloc.startsWith(pxFILE)) return corbaloc(readFile(corbaloc.substring(pxFILE.length())), orb, recursion+1); else if (corbaloc.startsWith(pxHTTP)) @@ -347,7 +347,7 @@ public class NameParser else throw new DATA_CONVERSION("Unsupported protocol '" + t[p] + "'"); } - + /** * Read IOR from the file in the local file system. */ @@ -376,7 +376,7 @@ public class NameParser throw (d); } } - + /** * Read IOR from the remote URL. */ diff --git a/gnu/CORBA/NamingService/NamingMap.java b/gnu/CORBA/NamingService/NamingMap.java index f4e940ea9..40fef0a3a 100644 --- a/gnu/CORBA/NamingService/NamingMap.java +++ b/gnu/CORBA/NamingService/NamingMap.java @@ -95,7 +95,7 @@ public class NamingMap if (containsValue(object)) throw new AlreadyBound("The object has another name"); } - + // There are no restrictions in binding the object. rebind(name, object); } diff --git a/gnu/CORBA/NamingService/NamingServiceTransient.java b/gnu/CORBA/NamingService/NamingServiceTransient.java index a8cd0b313..5ccc4d8cc 100644 --- a/gnu/CORBA/NamingService/NamingServiceTransient.java +++ b/gnu/CORBA/NamingService/NamingServiceTransient.java @@ -51,11 +51,11 @@ import java.io.UnsupportedEncodingException; * The server for the gnu classpath naming service. This is an executable class * that must be started to launch the GNU Classpath CORBA transient naming * service. - * + * * GNU Classpath currently works with this naming service and is also * interoperable with the Sun Microsystems naming services from releases 1.3 and * 1.4, both transient <i>tnameserv</i> and persistent <i>orbd</i>. - * + * * @author Audrius Meskauskas, Lithuania (AudriusA@Bioinformatics.org) */ public class NamingServiceTransient @@ -69,7 +69,7 @@ public class NamingServiceTransient /** * Get the object key for the naming service. The default key is the string * "NameService" in ASCII. - * + * * @return the byte array. */ public static byte[] getDefaultKey() @@ -86,7 +86,7 @@ public class NamingServiceTransient /** * Start the naming service on the current host at the given port. - * + * * @param portArgument the port on which the service will be * started, or -1 to use the default port, 900 * @param fileArgument if non-null, store the IOR string of this diff --git a/gnu/CORBA/NamingService/TransientContext.java b/gnu/CORBA/NamingService/TransientContext.java index cec87931e..6ed07d799 100644 --- a/gnu/CORBA/NamingService/TransientContext.java +++ b/gnu/CORBA/NamingService/TransientContext.java @@ -77,7 +77,7 @@ public class TransientContext * Use serial version UID for interoperability. */ private static final long serialVersionUID = 2; - + /** * The already named contexts. */ @@ -87,7 +87,7 @@ public class TransientContext * The already named objects. */ protected final NamingMap named_objects; - + /** * Create the naming conetxt with default (transient) naming maps. */ @@ -95,10 +95,10 @@ public class TransientContext { this(new NamingMap(), new NamingMap()); } - + /** * Create the naming conetxt with the two provided naming maps. - * + * * @param context_map the map for contexts * @param object_map the map for objectss */ |