|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object toolbox.allegato.JNDIConfig
public class JNDIConfig
Encapsulates the JNDI naming context config specified in an XML document and provides methods to create Context and DirContext instances.
Constructor Summary | |
---|---|
JNDIConfig()
Default constructor. |
|
JNDIConfig(java.lang.String name,
XMLProperties xmlProps)
Creates a new JNDI config with the given XML Properties. |
Method Summary | |
---|---|
javax.naming.Context |
createContext()
Create an initial context with the configuration encapsulated by this config object. |
javax.naming.directory.DirContext |
createDirContext()
Create an initial dir context with the configuration encapsulated by this config object. |
java.lang.String |
getAuthentication()
Returns the security authentication used by this config object to initialise the initial context. |
java.lang.String |
getConnectionPooling()
Returns the connection pooling flag used by this config object to initialise the initial context. |
java.lang.String |
getCredentials()
Returns the security credentials used by this config object to initialise the intitial context. |
java.lang.String |
getFactoryInitial()
Returns the name fo the initial context factory used by this config object. |
java.lang.String |
getObjectFactories()
Returns the value of the object factories property. |
java.lang.String |
getPrincipal()
Returns the security principal used by this config object to initialise the intial context. |
java.lang.String |
getProviderUrl()
Returns the provider specific URL used by this config object to initialise the initial context. |
java.lang.String |
getSecurityProtocol()
Returns the security protocol used by this ocnfiguration object. |
java.lang.String |
getStateFactories()
Returns the value of the state factories property. |
java.lang.String |
getType()
Returns the type of this config object. |
void |
setAuthentication(java.lang.String authentication)
Sets the security authentication used by this config object to initialise the initial context. |
void |
setConnectionPooling(java.lang.String pooling)
Sets the connection pooling flag used by this config object to initialise the initial context. |
void |
setCredentials(java.lang.String credentials)
Sets the security credentials used by this config object to intialise the initial context. |
void |
setFactoryInitial(java.lang.String ctxFactory)
Sets the name of the initial context factory used by this config object. |
void |
setObjectFactories(java.lang.String objectFactories)
Sets the value of the object factories property used by this config object. |
void |
setPrincipal(java.lang.String principal)
Sets the security principal used by this config object to initialise the initial context. |
void |
setProviderUrl(java.lang.String url)
Sets the provider specific URL used by this config object to initialise the initial context. |
void |
setSecurityProtocol(java.lang.String protocol)
Sets the security protocol to be used by this configuration. |
void |
setStateFactories(java.lang.String stateFactories)
Sets the value of the state factories property used by this config object. |
void |
setType(java.lang.String type)
Sets the type of JNDIConfig, file or ldap. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JNDIConfig()
public JNDIConfig(java.lang.String name, XMLProperties xmlProps) throws ConfException
name
- The name of the JNDI configuration to create.xmlProps
- XMLProperties
object containing a valid
JNDIConfig element.
ConfException
- if an error occured while accessing the
configuration properties.Method Detail |
---|
public void setType(java.lang.String type)
type
- New config type.public java.lang.String getType()
public void setFactoryInitial(java.lang.String ctxFactory)
ctxFactory
- Name of the initial context factory.public java.lang.String getFactoryInitial()
public void setProviderUrl(java.lang.String url)
url
- Provider specific URL.public java.lang.String getProviderUrl()
public void setConnectionPooling(java.lang.String pooling)
pooling
- String containing pooling flag.public java.lang.String getConnectionPooling()
public void setPrincipal(java.lang.String principal)
principal
- Security principal.public java.lang.String getPrincipal()
public void setCredentials(java.lang.String credentials)
credentials
- Security credentials.public java.lang.String getCredentials()
public void setAuthentication(java.lang.String authentication)
authentication
- Security authenticationpublic java.lang.String getAuthentication()
public void setSecurityProtocol(java.lang.String protocol)
protocol
- String indicating the security protocol to use e.g "ssl"public java.lang.String getSecurityProtocol()
public void setObjectFactories(java.lang.String objectFactories)
objectFactories
- Value of the object factories property.public java.lang.String getObjectFactories()
public void setStateFactories(java.lang.String stateFactories)
stateFactories
- Value of the state factories property.public java.lang.String getStateFactories()
public javax.naming.Context createContext() throws javax.naming.NamingException
javax.naming.NamingException
- if the JNDI context could not be created.public javax.naming.directory.DirContext createDirContext() throws javax.naming.NamingException
javax.naming.NamingException
- if the JNDI dir context could not be created.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |