public class InitialPlatformContext extends java.lang.Object implements PlatformContext
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONTEXT_FACTORY
PlatformContextFactory class property name.
|
PLATFORM_CREDENTIALS, PLATFORM_PRINCIPAL, PLATFORM_REALM, PLATFORM_URL| Constructor and Description |
|---|
InitialPlatformContext(java.util.Hashtable env)
Constructs a platform context with the given environment.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the platform context, freeing up any system resources that may
have been allocated for the context.
|
java.util.Hashtable |
getEnvironment()
Returns the environment the client used to define the context.
|
java.lang.Object |
getEnvProperty(java.lang.Object propertyName)
Returns the environment property with the given name.
|
java.lang.Long |
getID()
Returns the unique identifier of the platform context.
|
public static final java.lang.String CONTEXT_FACTORY
public InitialPlatformContext(java.util.Hashtable env)
throws java.rmi.RemoteException,
ApplicationException
env - the environment used to create the InitialPlatformContext.java.rmi.RemoteException - if unable to establish the
context.ApplicationException - if unable to establish the
context.public java.util.Hashtable getEnvironment()
getEnvironment in interface PlatformContextpublic java.lang.Object getEnvProperty(java.lang.Object propertyName)
getEnvProperty in interface PlatformContextpropertyName - Name of the property to retrieve.public java.lang.Long getID()
getID in interface PlatformContextpublic void close()
close in interface PlatformContext