Skip navigation links

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09


weblogic.jndi
Interface ClientEnvironment

All Known Implementing Classes:
Environment

public interface ClientEnvironment

This is an environment that can be used on a thinner client. The server implementation may do things that the client implementation cannot do. In order to keep the thin client thin, this class may not pull in any weblogic specific classes.


Method Summary
abstract  Context getContext()
          Returns a context that can be used with this environment.
abstract  Hashtable getProperties()
          Gets the environment hashtable associated with this environment
abstract  void setEnableServerAffinity(boolean enableServerAffinity)
          Sets the WLContext.ENABLE_SERVER_AFFINITY property
abstract  void setProviderURL(String providerURL)
          Sets the Context.PROVIDER_URL property
abstract  void setSecurityCredentials(Object password)
          Sets the Context.SECURITY_CREDENTIALS property
abstract  void setSecurityPrincipal(String username)
          Sets the Context.SECURITY_PRINCIPAL property

 

Method Detail

setProviderURL

void setProviderURL(String providerURL)
Sets the Context.PROVIDER_URL property
Parameters:
providerURL - The url to use with this environment

setSecurityPrincipal

void setSecurityPrincipal(String username)
Sets the Context.SECURITY_PRINCIPAL property
Parameters:
username - The username to use with this environment

setSecurityCredentials

void setSecurityCredentials(Object password)
Sets the Context.SECURITY_CREDENTIALS property
Parameters:
password - The password to use with this environment

setEnableServerAffinity

void setEnableServerAffinity(boolean enableServerAffinity)
Sets the WLContext.ENABLE_SERVER_AFFINITY property
Parameters:
enableServerAffinity -

getContext

Context getContext()
                   throws NamingException
Returns a context that can be used with this environment. Note that the context to the system identified in the properties is only gotten once. Subsequent calls to this method will always return the previously returned context. No new context will be gotten once the initial context has been established. Create a new ClientEnvironment if you want to attempt a different connection to a remote naming context.
Returns:
A naming context that can be used by this client
Throws:
NamingException

getProperties

Hashtable getProperties()
Gets the environment hashtable associated with this environment

Skip navigation links

Copyright 1996, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09