|
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 HttpInputContext
This is an abstraction at Studio time to let any transportation layer to fire off the HTTP request and get the response back. Currently, we only test it against HTTPClient package. The implementation for Provider mode is WcrHttpInputContext
. Note: At Studio mode, if the request gets 401 error, a new HttpInputContext will be created the handle the credential entered by the user.
Field Summary |
---|
Fields inherited from interface oracle.portal.wcs.transport.InputContext |
---|
BUFFER_SIZE |
Method Summary | |
---|---|
void |
addParam(java.lang.String szName, java.lang.String szValue) Http parameters. |
void |
addParam(java.lang.String szName, java.lang.String[] szValues) |
java.lang.String |
getAuthPassword() |
java.lang.String |
getAuthRealm() The realm of the http authorization |
java.lang.String |
getAuthType() This method must be called first to check the supported auth type |
java.lang.String |
getAuthUsername() This method must be called before any other calls except getAuthType() |
java.util.Hashtable |
getHeaders() Headers |
java.lang.String |
getMethod() Http method |
java.lang.String[] |
getParam(java.lang.String szName) Return the parameter value give a name |
java.util.Enumeration |
getParamNames() Returns the enumeration of parameter names |
java.util.Hashtable |
getParams() Returns the hashtbale containing parameter name-value(s) pairs |
java.lang.String |
getProxyAuthRealm() |
java.lang.String |
getProxyAuthType() |
java.lang.String |
getProxyHost() Proxy information |
java.lang.String |
getProxyPassword() |
int |
getProxyPort() |
java.lang.String |
getProxyUsername() |
java.lang.String |
getQueryString() Convert the hashtbale into querystring. |
javax.servlet.http.Cookie[] |
getResponseCookies() |
java.util.Hashtable |
getResponseHeaders() |
int |
getResponseStatus() |
TransportSessionContext |
getSessionContext() |
int |
getTimeConsumed() Get the number of milliseconds consumed for this request |
int |
getTimeout() Timeout, must not be negative |
HttpTransportLiaison |
getTransportLiaison() The factory method to create Transport layer |
java.security.Principal |
getUser() Gets the principal -used by the TransportLiaison to much with transport |
java.lang.String |
getWalletLocation() SSL |
java.lang.String |
getWalletPassword() |
boolean |
isNew() This method tells that if this HttpInputContext is a new one (browse) or the reused one (section, clip, backwards and forwards) |
boolean |
isStateChanged() This method tells that if this HttpInputContext needs to be added into the ClippingDef. |
void |
setAuthPassword(java.lang.String szPwd) |
void |
setAuthRealm(java.lang.String szAuthRealm) set in HttpClientTransportLiaison.getHeaders() which is part of the HTTP Authorization challenge. |
void |
setAuthType(java.lang.String szType) This value should be set either from 401 error or from repository |
void |
setAuthUsername(java.lang.String szUsername) |
void |
setHeaders(java.util.Hashtable htHeaders) |
void |
setNonStateChanged() Mark this HttpInputContext to be nonactive. |
void |
setOld() |
void |
setSessionContext(TransportSessionContext tsc) Http session context. |
void |
setUrl(java.lang.String szUrl) Only supposed to use for SSO effective URL support |
void |
setUser(java.security.Principal user) Sets the principal so that the implementationof the HttpTransportLiaison can use that Principal to fetch other tokens required for authentication. |
java.lang.String |
toString() |
Methods inherited from interface oracle.portal.wcs.transport.InputContext |
---|
close, getContentType, getEffectiveUri, getInputStream, getReader, getRequestEncoding, getResponseEncoding, getUrl, open, setContentType, setRequestEncoding, setResponseEncoding |
Method Detail |
---|
HttpTransportLiaison getTransportLiaison()
void setUser(java.security.Principal user)
java.security.Principal getUser()
void setUrl(java.lang.String szUrl)
void addParam(java.lang.String szName, java.lang.String szValue)
WcrBrowseUrl.getHttpInputContext()
, WcRepository.getClippingDef(oracle.portal.wcs.ClippingKey)
void addParam(java.lang.String szName, java.lang.String[] szValues)
java.util.Hashtable getParams()
java.util.Enumeration getParamNames()
java.lang.String[] getParam(java.lang.String szName)
java.lang.String getMethod()
java.lang.String getAuthType() throws HttpTransportException
In HTTP scenaroir, there could be two levels of Authentications, one for http proxy server, and the other the actual web site. Currently, we only support one of them, i.e., you can not visit a web site needing authentication via a proxy server needing authentication too. Or, does this scenaroir exist in the real world? Can browser handler it? The one different behavior against browser is that now we can not use the HTTP Authorization header directly for Basic since the realm is not part of it. Therefore, if there are two clips access a restricted website, user needs to log in twice.
-
- if authentication type not equals to Basic or DigestHttpTransportException
void setAuthType(java.lang.String szType)
java.lang.String getAuthUsername()
void setAuthUsername(java.lang.String szUsername)
java.lang.String getAuthPassword()
void setAuthPassword(java.lang.String szPwd)
java.lang.String getAuthRealm()
void setAuthRealm(java.lang.String szAuthRealm)
HttpClientTransportLiaison.getHeaders()
which is part of the HTTP Authorization challenge.java.lang.String getProxyHost()
int getProxyPort()
java.lang.String getProxyUsername()
java.lang.String getProxyPassword()
java.lang.String getProxyAuthType()
java.lang.String getProxyAuthRealm()
java.lang.String getWalletLocation()
java.lang.String getWalletPassword()
java.util.Hashtable getHeaders()
void setHeaders(java.util.Hashtable htHeaders)
java.lang.String getQueryString()
HttpServletUtil.inheritOrignalParams(javax.servlet.http.HttpServletRequest, java.lang.String)
, oracle.portal.wcs.transport.http.HttpClientTransportLiaison#getHttpResponse
void setSessionContext(TransportSessionContext tsc)
TransportSessionContext getSessionContext()
int getTimeout()
int getTimeConsumed()
getTimeConsumed
in interface InputContext
java.lang.String toString()
toString
in class java.lang.Object
java.util.Hashtable getResponseHeaders() throws TransportException
TransportException
int getResponseStatus() throws TransportException
TransportException
javax.servlet.http.Cookie[] getResponseCookies()
boolean isStateChanged()
oracle.portal.wcs.model.UrlModel
void setNonStateChanged()
HttpClientTransportLiaison
boolean isNew()
HttpClientTransportLiaison
void setOld()
|
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 |