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

Constructor Index

 o Joe(Applet)
Constructor with java.applet.Applet argument.
 o Joe(Applet, String)
Constructor with java.applet.Applet and orbIdentifier arguments.
 o Joe(String)
Constructor with URL of well-known Services file.
 o Joe(String, String)
Constructor with URL for well-known services file and ORB identifier.

Method Index

 o bind(String, ObjectRef)
Bind an object reference into the current naming context.
 o bind(String, ObjectRef, String)
Bind an object reference into the current naming context.
 o exceptionToString(CORBAException)
Translate a CORBA exception to a human-comprehensible string.
 o getCurrentContext()
Get a pointer to the current naming context.
 o getOrb()
 o JoeVersion()
 o listInitialServices()
Get a list of the initially available CORBA services.
 o objectToString(ObjectRef)
Convert an object to a stringified object reference for storage.
 o parsePathName(String)
Parse a slash-separated service path name into an array of COS naming components.
 o parsePathName(String, String)
 o rebind(String, ObjectRef)
Rebind an object reference into the current naming context.
 o rebind(String, ObjectRef, String)
Rebind an object reference into the current naming context.
 o resolve(String)
Return a reference to the object specified by the given path in the current naming context.
 o resolve(String, String)
Return a reference to the object specified by the given path in the current naming context.
 o resolveInitialReferences(String)
Obtain a object reference to one of the initially available CORBA services.
 o setContext(String)
Set the current NamingContext to use for name resolution.
 o setContext(String, String)
Set the current NamingContext to use for name resolution.
 o setDebug(boolean)
 o stringToObject(String)
Convert a stringified object referece to the object it represents.
 o unbind(String)
Unbind an object reference from the current naming context.
 o unbind(String, String)
Unbind an object reference from the current naming context.

Constructors

 o 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.
 o 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.
 o 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.
 o 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.

Methods

 o setDebug
  public static void setDebug(boolean enable)
Parameters:
enable - Toggle for debug state.
 o JoeVersion
  public static String JoeVersion()
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o getOrb
  public OrbRef getOrb()

All Packages  Class Hierarchy  This Package  Previous  Next  Index