|
Oracle® WebLogic Server Web Clipping Transport API Reference 11g Release 1 (11.1.1) E14346-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TransportSessionContext
This class deals with transport session, and is used for both dev and runtime engine.
Method Summary | |
---|---|
void |
addHttpAuthorizationInfo(HttpAuthorizationInfo info) |
void |
closeTransportSession() Clean this session |
java.lang.String |
getAuthRealm() |
java.lang.String |
getAuthType() |
oracle.portal.wcs.ClippingKey |
getClippingKey() Get the ClippingKey |
HttpAuthorizationInfo |
getHttpAuthorizationInfo(java.lang.String szHost, int iPort) Currently, we only support one authorization per host |
java.lang.String |
getReplicatedProxyHost() |
int |
getReplicatedProxyPort() |
java.lang.String |
getSubscriber() Returns the subscriber who is using the services of the transport sess. |
int |
getTimeout() Get the timeout value in milliseconds for next request |
java.util.Vector |
getTransportSessionCookies() get the vector of cookies at current state |
boolean |
isAuthPending() Since our current implementation saves the authorization information together with each individual HttpInputContext , we need this method to tell us that if the Authorization header from browser is needed for next request. |
void |
login(oracle.portal.wcs.common.WcExternalPrincipal ep) Login to the external applicaiton |
void |
openTransportSession() Open the session between the engine and the outside server |
void |
pass(oracle.portal.wcs.common.WcExternalPrincipal ep) Get Cookies or HttpAuthorizationInfo from @WcExternalPrincipal and put into its own context |
void |
resetTranasportSession() reset the cookies to the initial state |
void |
saveTransportSession() save the cookies |
void |
setAuthPending(boolean b) |
void |
setAuthRealm(java.lang.String szAuthRealm) This method is only used in Studio mode for Http Authorization to pass the realm to the next request with Authorization response from user |
void |
setAuthType(java.lang.String szAuthType) Since we support Digest Authorization by MITM, we need to remember the type from previous 401 challenge |
void |
setReplicatedProxyHost(java.lang.String proxyHost) Sets / Gets the replicated proxy host. |
void |
setReplicatedProxyPort(int proxyPort) Sets / Gets the replicated proxy port. |
void |
setSubscriber(java.lang.String subscriber) |
void |
setTimeout(int iTimeout) Set the timeout value in milliseconds |
void |
timeConsumed(int iTime) Inform the transport session context that the number of millisecond has been consumed. |
Method Detail |
---|
void openTransportSession()
void closeTransportSession()
void saveTransportSession()
void resetTranasportSession()
java.util.Vector getTransportSessionCookies()
oracle.portal.wcs.ClippingKey getClippingKey()
void setTimeout(int iTimeout)
int getTimeout()
void addHttpAuthorizationInfo(HttpAuthorizationInfo info)
HttpAuthorizationInfo getHttpAuthorizationInfo(java.lang.String szHost, int iPort)
void setAuthRealm(java.lang.String szAuthRealm)
java.lang.String getAuthRealm()
void setAuthType(java.lang.String szAuthType)
java.lang.String getAuthType()
boolean isAuthPending()
HttpInputContext
, we need this method to tell us that if the Authorization header from browser is needed for next request. TODO: modify repository schema the save a list of Authorization information for one clip.void setAuthPending(boolean b)
java.lang.String getSubscriber()
void setSubscriber(java.lang.String subscriber)
void timeConsumed(int iTime)
In provider mode, we check if there is any time left for the rest of the request.
In studio mode, we sum all the time cunsumed in active http input context together to make a heustic estimation of the clip timeout value. Therefore, it's not used at all.
void login(oracle.portal.wcs.common.WcExternalPrincipal ep) throws TransportException
TransportException
void pass(oracle.portal.wcs.common.WcExternalPrincipal ep)
void setReplicatedProxyHost(java.lang.String proxyHost)
java.lang.String getReplicatedProxyHost()
void setReplicatedProxyPort(int proxyPort)
int getReplicatedProxyPort()
|
Oracle® WebLogic Server Web Clipping Transport API Reference 11g Release 1 (11.1.1) E14346-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |