Class sunw.joe.Joe
All Packages Class Hierarchy This Package Previous Next Index
Class sunw.joe.Joe
java.lang.Object
|
+----sunw.joe.Joe
- public class Joe
- extends Object
-
Joe(Applet)
- Constructor with java.applet.Applet argument.
-
Joe(Applet, String)
- Constructor with java.applet.Applet and orbIdentifier arguments.
-
Joe(String)
- Constructor with URL of well-known Services file.
-
Joe(String, String)
- Constructor with URL for well-known services file and ORB identifier.
-
bind(String, ObjectRef)
- Bind an object reference into the current naming context.
-
bind(String, ObjectRef, String)
- Bind an object reference into the current naming context.
-
exceptionToString(CORBAException)
- Translate a CORBA exception to a human-comprehensible string.
-
getCurrentContext()
- Get a pointer to the current naming context.
-
getOrb()
-
-
JoeVersion()
-
-
listInitialServices()
- Get a list of the initially available CORBA services.
-
objectToString(ObjectRef)
- Convert an object to a stringified object reference for storage.
-
parsePathName(String)
- Parse a slash-separated service path name into
an array of COS naming components.
-
parsePathName(String, String)
-
-
rebind(String, ObjectRef)
- Rebind an object reference into the current naming context.
-
rebind(String, ObjectRef, String)
- Rebind an object reference into the current naming context.
-
resolve(String)
- Return a reference to the object specified by the given path in the
current naming context.
-
resolve(String, String)
- Return a reference to the object specified by the given path in the
current naming context.
-
resolveInitialReferences(String)
- Obtain a object reference to one of the initially available CORBA services.
-
setContext(String)
- Set the current NamingContext to use for name resolution.
-
setContext(String, String)
- Set the current NamingContext to use for name resolution.
-
setDebug(boolean)
-
-
stringToObject(String)
- Convert a stringified object referece to the object it represents.
-
unbind(String)
- Unbind an object reference from the current naming context.
-
unbind(String, String)
- Unbind an object reference from the current naming context.
Joe
public Joe(Applet app) throws SystemException
- Constructor with java.applet.Applet argument.
- Parameters:
- app - The applet invoking the constructor.
- Throws: SystemException
- One of a fixed set of CORBA system exceptions.
Joe
public Joe(Applet app,
String orbIdentifier) throws SystemException
- Constructor with java.applet.Applet and orbIdentifier arguments.
- Parameters:
- app - The applet invoking the constructor.
- orbIdentifier - A description of the desired ORB.
- Throws: SystemException
- One of a fixed set of CORBA system exceptions.
Joe
public Joe(String servicesURL) throws SystemException
- Constructor with URL of well-known Services file.
- Parameters:
- servicesURL - URL of the Services file.
- Throws: SystemException
- One of a fixed set of CORBA system exceptions.
Joe
public Joe(String servicesURL,
String orbIdentifier) throws SystemException
- Constructor with URL for well-known services file and ORB identifier.
- Parameters:
- servicesURL - URL of the Services file.
- orbIdentifier - A description of the desired ORB.
- Throws: SystemException
- One of a fixed set of CORBA system exceptions.
setDebug
public static void setDebug(boolean enable)
- Parameters:
- enable - Toggle for debug state.
JoeVersion
public static String JoeVersion()
getCurrentContext
public NamingContextRef getCurrentContext() throws SystemException
- Get a pointer to the current naming context.
- Returns:
- NamingContextRef A pointer to the current naming context, or null if it
has not been set.
- Throws: SystemException
- One of a fixed set of CORBA system exceptions.
parsePathName
public NameComponent[] parsePathName(String serverPath) throws InvalidName
- Parse a slash-separated service path name into
an array of COS naming components.
- Parameters:
- serverPath - The pathname to parse.
- Returns:
- An array of NameComponents corresponding to the pathname.
parsePathName
public NameComponent[] parsePathName(String serverPath,
String separator) throws InvalidName
- Parameters:
- serverPath - The pathname to parse.
- separator - The character to use as a component separator.
- Returns:
- An array of NameComponents corresponding to the pathname.
resolve
public ObjectRef resolve(String serverPath) throws SystemException, UserException
- Return a reference to the object specified by the given path in the
current naming context.
- Parameters:
- serverPath - A UNIX-style pathname specifying the location of the
desired object in the current namespace.
- Returns:
- An reference to the desired object.
- Throws: SystemException
- One of a fixed set of CORBA system exceptions.
- Throws: UserException
- A user-generated CORBA exception.
resolve
public ObjectRef resolve(String serverPath,
String separator) throws SystemException, UserException
- Return a reference to the object specified by the given path in the
current naming context.
- Parameters:
- serverPath - A UNIX-style pathname specifying the location of the
desired object in the current namespace.
- separator - The separator character to use in parsing the object location.
(Used instead of the default "/")
- Returns:
- An reference to the desired object.
- Throws: SystemException
- One of a fixed set of CORBA system exceptions.
- Throws: UserException
- A user-generated CORBA exception.
bind
public void bind(String name,
ObjectRef obj) throws SystemException, UserException
- Bind an object reference into the current naming context.
- Parameters:
- name - The location within the naming context.
- obj - The object reference.
- Throws: SystemException
- One of a fixed set of CORBA system exceptions.
- Throws: UserException
- A user-generated CORBA exception.
bind
public void bind(String name,
ObjectRef obj,
String separator) throws SystemException, UserException
- Bind an object reference into the current naming context.
- Parameters:
- name - The location within the naming context.
- obj - The object reference.
- separator - The separator character to use in parsing the object location.
- Throws: SystemException
- One of a fixed set of CORBA system exceptions.
- Throws: UserException
- A user-generated CORBA exception.
rebind
public void rebind(String name,
ObjectRef obj) throws SystemException, UserException
- Rebind an object reference into the current naming context.
- Parameters:
- name - The location within the naming context. * @param obj The object reference.
- Throws: SystemException
- One of a fixed set of CORBA system exceptions.
- Throws: UserException
- A user-generated CORBA exception.
rebind
public void rebind(String name,
ObjectRef obj,
String separator) throws SystemException, UserException
- Rebind an object reference into the current naming context.
- Parameters:
- name - The location within the naming context.
- obj - The object reference.
- separator - The separator character to use in parsing the object location.
(Used instead of the default "/")
- Throws: SystemException
- One of a fixed set of CORBA system exceptions.
- Throws: UserException
- A user-generated CORBA exception.
unbind
public void unbind(String name) throws SystemException, UserException
- Unbind an object reference from the current naming context.
- Parameters:
- name - The location of the object reference to unbind.
- Throws: SystemException
- One of a fixed set of CORBA system exceptions.
- Throws: UserException
- A user-generated CORBA exception.
unbind
public void unbind(String name,
String separator) throws SystemException, UserException
- Unbind an object reference from the current naming context.
- Parameters:
- name - The location of the object reference to unbind.
- separator - The separator character to use in parsing the object location.
(Used instead of the default "/")
- Throws: SystemException
- One of a fixed set of CORBA system exceptions.
- Throws: UserException
- A user-generated CORBA exception.
setContext
public void setContext(String path) throws SystemException, UserException
- Set the current NamingContext to use for name resolution.
- Parameters:
- path - The path of the desired context.
- Throws: SystemException
- One of a fixed set of CORBA system exceptions.
- Throws: UserException
- A user-generated CORBA exception.
setContext
public void setContext(String path,
String separator) throws SystemException, UserException
- Set the current NamingContext to use for name resolution.
- Parameters:
- path - The path of the desired context.
- separator - The character to use as a component separator.
(Used instead of the default "/")
- Throws: SystemException
- One of a fixed set of CORBA system exceptions.
- Throws: UserException
- A user-generated CORBA exception.
exceptionToString
public String exceptionToString(CORBAException exc)
- Translate a CORBA exception to a human-comprehensible string.
- Parameters:
- exc - The CORBA user or system exception to translate.
- Returns:
- An explanation of the specified exception.
objectToString
public String objectToString(ObjectRef obj) throws SystemException
- Convert an object to a stringified object reference for storage.
- Parameters:
- obj - The object to stringify.
- Throws: SystemException
- One of a fixed set of Corba system exceptions.
stringToObject
public ObjectRef stringToObject(String str) throws SystemException
- Convert a stringified object referece to the object it represents.
- Parameters:
- str - The stringified object reference.
- Throws: SystemException
- One of a fixed set of Corba system exceptions.
listInitialServices
public String[] listInitialServices() throws SystemException
- Get a list of the initially available CORBA services.
- Returns:
- A list of the initial services available.
- Throws: SystemException
- One of a fixed set of Corba system exceptions.
resolveInitialReferences
public ObjectRef resolveInitialReferences(String identifier) throws SystemException, InvalidName
- Obtain a object reference to one of the initially available CORBA services.
- Parameters:
- identifier - An identifier for the desired service (e.g. NameService, FactoryService).
- Throws: SystemException
- One of a fixed set of Corba system exceptions.
- Throws: InvalidName
- The specifier does not map to a designated
Initial Service.
getOrb
public OrbRef getOrb()
All Packages Class Hierarchy This Package Previous Next Index