|
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 | ||||||||
java.lang.Object
oracle.portal.wcs.transport.AbstractInputContext
oracle.portal.wcs.transport.http.DefaultHttpInputContext
oracle.portal.wcs.transport.http.DefaultWcrHttpInputContext
public class DefaultWcrHttpInputContext
This class subclass from DefaultHttpInputContext and at same time, contains an object of DefaultHttpInputContext as a place holder for all the HTTP request information.
| Field Summary |
|---|
| Fields inherited from class oracle.portal.wcs.transport.http.DefaultHttpInputContext |
|---|
m_bActive, m_bNew, m_htHeaders, m_htParams, m_props, m_szAuthRealm, m_szAuthType, m_szEffectiveUri, m_szMethod, m_szPassword, m_szUrl, m_szUsername, m_transport, m_tsc |
| Fields inherited from class oracle.portal.wcs.transport.AbstractInputContext |
|---|
m_r, m_szContentType, m_szReqEncoding, m_szRespEncoding |
| Fields inherited from interface oracle.portal.wcs.transport.InputContext |
|---|
BUFFER_SIZE |
| Constructor Summary | |
|---|---|
DefaultWcrHttpInputContext(HttpInputContext hic) |
|
| Method Summary | |
|---|---|
void |
close()Relay the call down to the transport |
protected HttpTransportLiaison |
createHttpTransportLiaison()The factory method to create Transport layer |
java.lang.String |
getAuthPassword() |
java.lang.String |
getAuthRealm()The realm of the http authorization |
java.lang.String |
getAuthType()Authorization |
java.lang.String |
getAuthUsername()This method must be called before any other calls except getAuthType() |
java.lang.String |
getContentType()If the content-type is set by the caller, simply return it. |
java.lang.String |
getEffectiveUri()Returns the effective uri. |
java.util.Hashtable |
getHeaders()Headers |
java.io.InputStream |
getInputStream()This method needs to be implemented by all subclasses in case they depend on getReader from this class. |
java.lang.String |
getMethod()Http method |
WcrHttpInputContext |
getNext() |
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 |
WcrHttpInputContext |
getPrevious() |
java.lang.String |
getProxyAuthRealm() |
java.lang.String |
getProxyAuthType() |
java.lang.String |
getProxyHost()Proxy |
java.lang.String |
getProxyPassword() |
int |
getProxyPort() |
java.lang.String |
getProxyUsername() |
java.lang.String |
getQueryString()Convert the hashtbale into querystring. |
java.io.Reader |
getReader()If character set is defined, let super handle it, otherwise, create our own one |
javax.servlet.http.Cookie[] |
getResponseCookies() |
java.lang.String |
getResponseEncoding()This method could return null for html, since the content-type return could be simple "text/html" However, for javascript, it should not return null, rather, it will return the default one. |
java.util.Hashtable |
getResponseHeaders() |
int |
getResponseStatus() |
TransportSessionContext |
getSessionContext() |
int |
getTimeConsumed()Get the number of milliseconds consumed for this request |
int |
getTimeout()Timeout |
HttpTransportLiaison |
getTransportLiaison()The main reason we do not have method setTransportLiaison is to support cluster. |
java.lang.String |
getUrl()Http Url which could contains querystring |
java.lang.String |
getWalletLocation()SSL |
java.lang.String |
getWalletPassword() |
boolean |
hasNext() |
boolean |
hasPrevious() |
boolean |
isNew()In provider, every request is new thus consumed time is always calculated |
boolean |
isStateChanged()This method tells that if this HttpInputContext needs to be added into the ClippingDef. |
void |
open()Opens up the stream so that subsequent calls to getReader will be ok. |
void |
setNext(WcrHttpInputContext ic) |
void |
setNonStateChanged()Mark this HttpInputContext to be nonactive. |
void |
setOld()never old |
void |
setPrevoius(WcrHttpInputContext ic) |
void |
setResponseEncoding(java.lang.String szEncoding)After this call, the engine will not go to external resource to retrieve response charset encoding. |
| Methods inherited from class oracle.portal.wcs.transport.http.DefaultHttpInputContext |
|---|
addParam, addParam, createHttpTransportLiaison, getParams, getUser, setAuthPassword, setAuthRealm, setAuthType, setAuthUsername, setHeaders, setSessionContext, setUrl, setUser, toString |
| Methods inherited from class oracle.portal.wcs.transport.AbstractInputContext |
|---|
getRequestEncoding, setContentType, setRequestEncoding |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface oracle.portal.wcs.transport.http.HttpInputContext |
|---|
addParam, addParam, getParams, getUser, setAuthPassword, setAuthRealm, setAuthType, setAuthUsername, setHeaders, setSessionContext, setUrl, setUser, toString |
| Methods inherited from interface oracle.portal.wcs.transport.InputContext |
|---|
getRequestEncoding, setContentType, setRequestEncoding |
| Constructor Detail |
|---|
public DefaultWcrHttpInputContext(HttpInputContext hic)
| Method Detail |
|---|
protected HttpTransportLiaison createHttpTransportLiaison()
createHttpTransportLiaison in class DefaultHttpInputContextpublic WcrHttpInputContext getNext()
getNext in interface WcrHttpInputContextpublic boolean hasNext()
hasNext in interface WcrHttpInputContextpublic WcrHttpInputContext getPrevious()
getPrevious in interface WcrHttpInputContextpublic boolean hasPrevious()
hasPrevious in interface WcrHttpInputContextpublic void setNext(WcrHttpInputContext ic)
setNext in interface WcrHttpInputContextpublic void setPrevoius(WcrHttpInputContext ic)
setPrevoius in interface WcrHttpInputContextpublic java.lang.String getUrl()
DefaultHttpInputContextgetUrl in interface InputContextgetUrl in class DefaultHttpInputContextpublic java.lang.String getMethod()
DefaultHttpInputContextgetMethod in interface HttpInputContextgetMethod in class DefaultHttpInputContext
public java.lang.String getAuthType()
throws HttpTransportException
getAuthType in interface HttpInputContextgetAuthType in class DefaultHttpInputContextHttpTransportExceptionpublic java.lang.String getAuthRealm()
DefaultHttpInputContextgetAuthRealm in interface HttpInputContextgetAuthRealm in class DefaultHttpInputContextpublic java.lang.String getAuthUsername()
DefaultHttpInputContextgetAuthUsername in interface HttpInputContextgetAuthUsername in class DefaultHttpInputContextpublic java.lang.String getAuthPassword()
getAuthPassword in interface HttpInputContextgetAuthPassword in class DefaultHttpInputContextpublic java.lang.String getProxyHost()
getProxyHost in interface HttpInputContextgetProxyHost in class DefaultHttpInputContextpublic int getProxyPort()
getProxyPort in interface HttpInputContextgetProxyPort in class DefaultHttpInputContextpublic java.lang.String getProxyUsername()
getProxyUsername in interface HttpInputContextgetProxyUsername in class DefaultHttpInputContextpublic java.lang.String getProxyPassword()
getProxyPassword in interface HttpInputContextgetProxyPassword in class DefaultHttpInputContextpublic java.lang.String getProxyAuthType()
getProxyAuthType in interface HttpInputContextgetProxyAuthType in class DefaultHttpInputContextpublic java.lang.String getProxyAuthRealm()
getProxyAuthRealm in interface HttpInputContextgetProxyAuthRealm in class DefaultHttpInputContextpublic java.lang.String getWalletLocation()
DefaultHttpInputContextgetWalletLocation in interface HttpInputContextgetWalletLocation in class DefaultHttpInputContextpublic java.lang.String getWalletPassword()
getWalletPassword in interface HttpInputContextgetWalletPassword in class DefaultHttpInputContextpublic java.util.Hashtable getHeaders()
DefaultHttpInputContextgetHeaders in interface HttpInputContextgetHeaders in class DefaultHttpInputContextpublic java.lang.String getQueryString()
DefaultHttpInputContextgetQueryString in interface HttpInputContextgetQueryString in class DefaultHttpInputContextHttpServletUtil.inheritOrignalParams(javax.servlet.http.HttpServletRequest, java.lang.String), oracle.portal.wcs.transport.http.HttpClientTransportLiaison#getHttpResponsepublic java.util.Enumeration getParamNames()
DefaultHttpInputContextgetParamNames in interface HttpInputContextgetParamNames in class DefaultHttpInputContextpublic java.lang.String[] getParam(java.lang.String szName)
DefaultHttpInputContextgetParam in interface HttpInputContextgetParam in class DefaultHttpInputContextpublic boolean isStateChanged()
DefaultHttpInputContextisStateChanged in interface HttpInputContextisStateChanged in class DefaultHttpInputContextoracle.portal.wcs.model.UrlModelpublic void setNonStateChanged()
DefaultHttpInputContextsetNonStateChanged in interface HttpInputContextsetNonStateChanged in class DefaultHttpInputContextHttpClientTransportLiaisonpublic boolean isNew()
isNew in interface HttpInputContextisNew in class DefaultHttpInputContextHttpClientTransportLiaison#getHttpResponsepublic void setOld()
setOld in interface HttpInputContextsetOld in class DefaultHttpInputContextpublic TransportSessionContext getSessionContext()
getSessionContext in interface HttpInputContextgetSessionContext in class DefaultHttpInputContextpublic HttpTransportLiaison getTransportLiaison()
DefaultHttpInputContextHttpTransportLiaison is not serializable, and we need to be able to created by its own here.getTransportLiaison in interface HttpInputContextgetTransportLiaison in class DefaultHttpInputContext
public java.io.Reader getReader()
throws TransportException
DefaultHttpInputContextgetReader in interface InputContextgetReader in class DefaultHttpInputContextTransportExceptionpublic int getTimeout()
DefaultHttpInputContextgetTimeout in interface HttpInputContextgetTimeout in class DefaultHttpInputContextpublic int getTimeConsumed()
DefaultHttpInputContextgetTimeConsumed in interface HttpInputContextgetTimeConsumed in interface InputContextgetTimeConsumed in class DefaultHttpInputContext
public java.lang.String getContentType()
throws TransportException
DefaultHttpInputContextsetContentType to set a client-defined value or not to call this method at all. Otherwise, the default value defined by ContentTypeConstants.SZ_DEFAULT_CONTENT_TYPE_WITH_CHARSET is returned.getContentType in interface InputContextgetContentType in class DefaultHttpInputContextTransportException
public java.lang.String getResponseEncoding()
throws TransportException
DefaultHttpInputContextgetResponseEncoding in interface InputContextgetResponseEncoding in class DefaultHttpInputContextTransportException
public void setResponseEncoding(java.lang.String szEncoding)
throws TransportException
InputContextsetResponseEncoding in interface InputContextsetResponseEncoding in class DefaultHttpInputContextTransportException
public void open()
throws TransportException
DefaultHttpInputContextopen in interface InputContextopen in class DefaultHttpInputContextTransportException
public void close()
throws TransportException
DefaultHttpInputContextclose in interface InputContextclose in class DefaultHttpInputContextTransportException
public java.lang.String getEffectiveUri()
throws TransportException
DefaultHttpInputContextgetEffectiveUri in interface InputContextgetEffectiveUri in class DefaultHttpInputContextTransportException
public java.util.Hashtable getResponseHeaders()
throws TransportException
getResponseHeaders in interface HttpInputContextgetResponseHeaders in class DefaultHttpInputContextTransportException
public int getResponseStatus()
throws TransportException
getResponseStatus in interface HttpInputContextgetResponseStatus in class DefaultHttpInputContextTransportExceptionpublic javax.servlet.http.Cookie[] getResponseCookies()
getResponseCookies in interface HttpInputContextgetResponseCookies in class DefaultHttpInputContext
public java.io.InputStream getInputStream()
throws TransportException
AbstractInputContextgetReader from this class.getInputStream in interface InputContextgetInputStream in class DefaultHttpInputContextTransportException
|
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 | ||||||||