|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.pd.jutil.DefaultPooledPDContextBuilder
public class DefaultPooledPDContextBuilder
Default PooledContextBuilder
implementation for initializing
the ContextPool
behavior.
ContextPool
Constructor Summary | |
---|---|
DefaultPooledPDContextBuilder(java.util.Locale locale,
java.lang.String userid,
char[] password,
java.lang.String domain,
java.net.URL configURL)
Creates a DefaultPooledPDContextBuilder . |
|
DefaultPooledPDContextBuilder(java.util.Locale locale,
java.lang.String userid,
char[] password,
java.lang.String domain,
java.net.URL configURL,
boolean useCert)
Creates a DefaultPooledPDContextBuilder . |
|
DefaultPooledPDContextBuilder(java.util.Locale locale,
java.lang.String userid,
char[] password,
java.net.URL configURL)
Creates a DefaultPooledPDContextBuilder . |
|
DefaultPooledPDContextBuilder(java.util.Locale locale,
java.lang.String userid,
char[] password,
java.net.URL configURL,
boolean useCert)
Creates a DefaultPooledPDContextBuilder . |
|
DefaultPooledPDContextBuilder(java.util.Locale locale,
java.net.URL configURL)
Creates a DefaultPooledPDContextBuilder . |
|
DefaultPooledPDContextBuilder(java.lang.String userid,
char[] password,
java.lang.String domain,
java.net.URL configURL)
Creates a DefaultPooledPDContextBuilder . |
|
DefaultPooledPDContextBuilder(java.lang.String userid,
char[] password,
java.net.URL configURL)
Creates a DefaultPooledPDContextBuilder . |
|
DefaultPooledPDContextBuilder(java.net.URL configURL)
Creates a DefaultPooledPDContextBuilder . |
Method Summary | |
---|---|
PDContext |
build()
Create a new shared context. |
PDContext |
onCheckoutContext(ContextPool<PDContext> pool,
PDContext context)
Prepares a PDContext before returning it to the client. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultPooledPDContextBuilder(java.util.Locale locale, java.net.URL configURL)
DefaultPooledPDContextBuilder
.
locale
- locale for any data that is returned.configURL
- a URL reference to configuration data.public DefaultPooledPDContextBuilder(java.util.Locale locale, java.lang.String userid, char[] password, java.net.URL configURL)
DefaultPooledPDContextBuilder
.
locale
- locale for any data that is returned.userid
- id of the user to be authenticated as.password
- password of the user to be authenticated as.configURL
- a URL reference to configuration data.public DefaultPooledPDContextBuilder(java.util.Locale locale, java.lang.String userid, char[] password, java.net.URL configURL, boolean useCert)
DefaultPooledPDContextBuilder
.
locale
- locale for any data that is returned.userid
- id of the user to be authenticated as.password
- password of the user to be authenticated as.configURL
- a URL reference to configuration data.useCert
- if useCert is false, info related to the certificate will
not be includedpublic DefaultPooledPDContextBuilder(java.util.Locale locale, java.lang.String userid, char[] password, java.lang.String domain, java.net.URL configURL)
DefaultPooledPDContextBuilder
.
locale
- locale for any data that is returned.userid
- id of the user to be authenticated as.password
- password of the user to be authenticated as.domain
- the domain to which the user will be authenticated.configURL
- a URL reference to configuration data.public DefaultPooledPDContextBuilder(java.net.URL configURL)
DefaultPooledPDContextBuilder
.
configURL
- a URL reference to configuration data.public DefaultPooledPDContextBuilder(java.lang.String userid, char[] password, java.net.URL configURL)
DefaultPooledPDContextBuilder
.
userid
- id of the user to be authenticated as.password
- password of the user to be authenticated as.configURL
- a URL reference to configuration data.public DefaultPooledPDContextBuilder(java.lang.String userid, char[] password, java.lang.String domain, java.net.URL configURL)
DefaultPooledPDContextBuilder
.
userid
- id of the user to be authenticated as.password
- password of the user to be authenticated as.domain
- the domain to which the user will be authenticated.configURL
- a URL reference to configuration data.public DefaultPooledPDContextBuilder(java.util.Locale locale, java.lang.String userid, char[] password, java.lang.String domain, java.net.URL configURL, boolean useCert)
DefaultPooledPDContextBuilder
.
userid
- id of the user to be authenticated as.password
- password of the user to be authenticated as.domain
- the domain to which the user will be authenticated.configURL
- a URL reference to configuration data.useCert
- if useCert is false, info related to the certificate will
not be included.Method Detail |
---|
public PDContext build() throws PDException
PooledContextBuilder
ContextPool
to create a
new PDContext
to be shared in the pool.
build
in interface PooledContextBuilder<PDContext>
PDContext
to be managed by the pool.
PDException
- when an error has occurred.public PDContext onCheckoutContext(ContextPool<PDContext> pool, PDContext context) throws PDException
PDContext
before returning it to the client.
We perform the following in this implementation
PDContext
state. This is so that we don't
want the previous client's state to be propagated to the next clientPDContext
with a PDContextProxy
and returns the proxy to the client. The link from the proxy to the real
PDContext
is severed when the client calls the proxy's
PDContext.close()
method. This is so that we can isolate the
real PDContext
from the client code and ensure a
PDContext
is accessible by only one client at any one time.
onCheckoutContext
in interface PooledContextBuilder<PDContext>
context
- the shared context checked out.
PDException
- when an error has occurred.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |