Skip navigation links

Oracle® WebLogic Server Web Clipping Transport API Reference
11g Release 1 (11.1.1)

E14346-01


oracle.portal.wcs.session
Interface TransportSessionContext

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
oracle.portal.wcs.session.DefaultTransportSessionContext, HttpClientTransportSessionContext

public interface TransportSessionContext
extends java.io.Serializable

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

openTransportSession

void openTransportSession()
Open the session between the engine and the outside server

closeTransportSession

void closeTransportSession()
Clean this session

saveTransportSession

void saveTransportSession()
save the cookies

resetTranasportSession

void resetTranasportSession()
reset the cookies to the initial state

getTransportSessionCookies

java.util.Vector getTransportSessionCookies()
get the vector of cookies at current state

getClippingKey

oracle.portal.wcs.ClippingKey getClippingKey()
Get the ClippingKey

setTimeout

void setTimeout(int iTimeout)
Set the timeout value in milliseconds

getTimeout

int getTimeout()
Get the timeout value in milliseconds for next request

addHttpAuthorizationInfo

void addHttpAuthorizationInfo(HttpAuthorizationInfo info)

getHttpAuthorizationInfo

HttpAuthorizationInfo getHttpAuthorizationInfo(java.lang.String szHost,
                                               int iPort)
Currently, we only support one authorization per host

setAuthRealm

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

getAuthRealm

java.lang.String getAuthRealm()

setAuthType

void setAuthType(java.lang.String szAuthType)
Since we support Digest Authorization by MITM, we need to remember the type from previous 401 challenge

getAuthType

java.lang.String getAuthType()

isAuthPending

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. TODO: modify repository schema the save a list of Authorization information for one clip.

setAuthPending

void setAuthPending(boolean b)

getSubscriber

java.lang.String getSubscriber()
Returns the subscriber who is using the services of the transport sess.

setSubscriber

void setSubscriber(java.lang.String subscriber)

timeConsumed

void timeConsumed(int iTime)
Inform the transport session context that the number of millisecond has been consumed.

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.


login

void login(oracle.portal.wcs.common.WcExternalPrincipal ep)
           throws TransportException
Login to the external applicaiton
Throws:
TransportException

pass

void pass(oracle.portal.wcs.common.WcExternalPrincipal ep)
Get Cookies or HttpAuthorizationInfo from @WcExternalPrincipal and put into its own context

setReplicatedProxyHost

void setReplicatedProxyHost(java.lang.String proxyHost)
Sets / Gets the replicated proxy host.

getReplicatedProxyHost

java.lang.String getReplicatedProxyHost()

setReplicatedProxyPort

void setReplicatedProxyPort(int proxyPort)
Sets / Gets the replicated proxy port.

getReplicatedProxyPort

int getReplicatedProxyPort()

Skip navigation links

Oracle® WebLogic Server Web Clipping Transport API Reference
11g Release 1 (11.1.1)

E14346-01


Copyright © 2003, 2009, Oracle Corporation. All Rights Reserved