@Contract
public interface ClientEnvironment
Modifier and Type | Method and Description |
---|---|
Context |
getContext()
Returns a context that can be used with this environment.
|
Hashtable |
getProperties()
Gets the environment hashtable associated with
this environment
|
void |
setEnableServerAffinity(boolean enableServerAffinity)
Sets the WLContext.ENABLE_SERVER_AFFINITY property
|
void |
setProviderURL(String providerURL)
Sets the Context.PROVIDER_URL property
|
void |
setSecurityCredentials(Object password)
Sets the Context.SECURITY_CREDENTIALS property
|
void |
setSecurityPrincipal(String username)
Sets the Context.SECURITY_PRINCIPAL property
|
void setProviderURL(String providerURL)
providerURL
- The url to use with this environmentvoid setSecurityPrincipal(String username)
username
- The username to use with this environmentvoid setSecurityCredentials(Object password)
password
- The password to use with this environmentvoid setEnableServerAffinity(boolean enableServerAffinity)
enableServerAffinity
- Context getContext() throws NamingException
NamingException
Hashtable getProperties()