|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.security.LocalConnectionContext
public abstract class LocalConnectionContext
LocalConnectionContext allows channels to tailor backend connections to reflect local policy and implementation. Connections are provided as Objects: they may be URL, LDAP, database connections, etc.
Channels using this need a way to determine which implementation to use. A standard way to do this is with a static data parameter 'upc_localConnContext', the value being the name of the implementing class. The default implementation handles the case where there are no local changes to standard behaviour.
| Field Summary | |
|---|---|
protected org.apache.commons.logging.Log |
log
|
protected ChannelStaticData |
staticData
|
| Constructor Summary | |
|---|---|
LocalConnectionContext()
|
|
| Method Summary | |
|---|---|
String |
getDescriptor(String descriptor,
ChannelRuntimeData rd)
Returns a descriptor such as a URL for opening a connection to the backend application. |
void |
init(ChannelStaticData sd)
Initialize LocalConnectionContext by setting static data. |
void |
sendLocalData(Object connection,
ChannelRuntimeData rd)
Send any per-connection local data to the backend application. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ChannelStaticData staticData
protected final org.apache.commons.logging.Log log
| Constructor Detail |
|---|
public LocalConnectionContext()
| Method Detail |
|---|
public void init(ChannelStaticData sd)
sd - The calling channel's ChannelStaticData.
public String getDescriptor(String descriptor,
ChannelRuntimeData rd)
descriptor - The original descriptor.rd - The calling channel's ChannelRuntimeData.
public void sendLocalData(Object connection,
ChannelRuntimeData rd)
connection - The connection Object to the backend application
(ie. HttpURLConnection, DirContext).rd - The calling channel's ChannelRuntimeData.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||