|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nci.caarray.services.AbstractCaArrayServer
public abstract class AbstractCaArrayServer
Constructor Summary | |
---|---|
AbstractCaArrayServer(java.lang.String jndiUrl)
Creates a new instance configured to attach to the provided JNDI url. |
|
AbstractCaArrayServer(java.lang.String hostname,
int jndiPort)
Creates a new instance configured to attach to the provided hostname and port. |
Method Summary | |
---|---|
void |
connect()
Starts a new session with this server for an anonymous (unauthenticated) user. |
void |
connect(java.lang.String username,
java.lang.String password)
Starts a new session with this server. |
protected abstract void |
executeServiceForCredentialCheck()
Execute some method in a remote EJB service that forces the authentication credentials to be checked. |
protected abstract void |
lookupServices(javax.naming.Context ctx)
Method called after obtaining a JNDI context from the remote EJB server. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractCaArrayServer(java.lang.String hostname, int jndiPort)
hostname
- hostname (or IP address) of the caArray server.jndiPort
- JNDI port of the caArray server.public AbstractCaArrayServer(java.lang.String jndiUrl)
jndiUrl
- the JNDI url, should be in the format jnp://hostname:portMethod Detail |
---|
public void connect() throws ServerConnectionException
ServerConnectionException
- thrown when the connection is dropped/missingpublic void connect(java.lang.String username, java.lang.String password) throws ServerConnectionException, javax.security.auth.login.FailedLoginException
username
- username to use to authenticatepassword
- password to use to authenticate
ServerConnectionException
- thrown when the connection is dropped/missing
javax.security.auth.login.FailedLoginException
- thrown when there is a problem with the login credentialsprotected abstract void executeServiceForCredentialCheck()
protected abstract void lookupServices(javax.naming.Context ctx) throws javax.naming.NamingException
ctx
- the JNDI context where remote EJB service references can be looked up
javax.naming.NamingException
- if there is an error looking up a remote EJB in the context
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |