|
uPortal 2.4.1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jasig.portal.security.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.
Constructor Summary | |
LocalConnectionContext()
|
Method Summary | |
java.lang.String |
getDescriptor(java.lang.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(java.lang.Object connection,
ChannelRuntimeData rd)
Send any per-connection local data to the backend application. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LocalConnectionContext()
Method Detail |
public void init(ChannelStaticData sd)
sd
- The calling channel's ChannelStaticData.public java.lang.String getDescriptor(java.lang.String descriptor, ChannelRuntimeData rd)
descriptor
- The original descriptor.rd
- The calling channel's ChannelRuntimeData.public void sendLocalData(java.lang.Object connection, ChannelRuntimeData rd)
connection
- The connection Object to the backend application
(ie. HttpURLConnection, DirContext).rd
- The calling channel's ChannelRuntimeData.
|
uPortal 2.4.1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |