|
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 DefaultHttpInputContext
public WcrHttpInputContext getNext()
getNext
in interface WcrHttpInputContext
public boolean hasNext()
hasNext
in interface WcrHttpInputContext
public WcrHttpInputContext getPrevious()
getPrevious
in interface WcrHttpInputContext
public boolean hasPrevious()
hasPrevious
in interface WcrHttpInputContext
public void setNext(WcrHttpInputContext ic)
setNext
in interface WcrHttpInputContext
public void setPrevoius(WcrHttpInputContext ic)
setPrevoius
in interface WcrHttpInputContext
public java.lang.String getUrl()
DefaultHttpInputContext
getUrl
in interface InputContext
getUrl
in class DefaultHttpInputContext
public java.lang.String getMethod()
DefaultHttpInputContext
getMethod
in interface HttpInputContext
getMethod
in class DefaultHttpInputContext
public java.lang.String getAuthType() throws HttpTransportException
getAuthType
in interface HttpInputContext
getAuthType
in class DefaultHttpInputContext
HttpTransportException
public java.lang.String getAuthRealm()
DefaultHttpInputContext
getAuthRealm
in interface HttpInputContext
getAuthRealm
in class DefaultHttpInputContext
public java.lang.String getAuthUsername()
DefaultHttpInputContext
getAuthUsername
in interface HttpInputContext
getAuthUsername
in class DefaultHttpInputContext
public java.lang.String getAuthPassword()
getAuthPassword
in interface HttpInputContext
getAuthPassword
in class DefaultHttpInputContext
public java.lang.String getProxyHost()
getProxyHost
in interface HttpInputContext
getProxyHost
in class DefaultHttpInputContext
public int getProxyPort()
getProxyPort
in interface HttpInputContext
getProxyPort
in class DefaultHttpInputContext
public java.lang.String getProxyUsername()
getProxyUsername
in interface HttpInputContext
getProxyUsername
in class DefaultHttpInputContext
public java.lang.String getProxyPassword()
getProxyPassword
in interface HttpInputContext
getProxyPassword
in class DefaultHttpInputContext
public java.lang.String getProxyAuthType()
getProxyAuthType
in interface HttpInputContext
getProxyAuthType
in class DefaultHttpInputContext
public java.lang.String getProxyAuthRealm()
getProxyAuthRealm
in interface HttpInputContext
getProxyAuthRealm
in class DefaultHttpInputContext
public java.lang.String getWalletLocation()
DefaultHttpInputContext
getWalletLocation
in interface HttpInputContext
getWalletLocation
in class DefaultHttpInputContext
public java.lang.String getWalletPassword()
getWalletPassword
in interface HttpInputContext
getWalletPassword
in class DefaultHttpInputContext
public java.util.Hashtable getHeaders()
DefaultHttpInputContext
getHeaders
in interface HttpInputContext
getHeaders
in class DefaultHttpInputContext
public java.lang.String getQueryString()
DefaultHttpInputContext
getQueryString
in interface HttpInputContext
getQueryString
in class DefaultHttpInputContext
HttpServletUtil.inheritOrignalParams(javax.servlet.http.HttpServletRequest, java.lang.String)
, oracle.portal.wcs.transport.http.HttpClientTransportLiaison#getHttpResponse
public java.util.Enumeration getParamNames()
DefaultHttpInputContext
getParamNames
in interface HttpInputContext
getParamNames
in class DefaultHttpInputContext
public java.lang.String[] getParam(java.lang.String szName)
DefaultHttpInputContext
getParam
in interface HttpInputContext
getParam
in class DefaultHttpInputContext
public boolean isStateChanged()
DefaultHttpInputContext
isStateChanged
in interface HttpInputContext
isStateChanged
in class DefaultHttpInputContext
oracle.portal.wcs.model.UrlModel
public void setNonStateChanged()
DefaultHttpInputContext
setNonStateChanged
in interface HttpInputContext
setNonStateChanged
in class DefaultHttpInputContext
HttpClientTransportLiaison
public boolean isNew()
isNew
in interface HttpInputContext
isNew
in class DefaultHttpInputContext
HttpClientTransportLiaison#getHttpResponse
public void setOld()
setOld
in interface HttpInputContext
setOld
in class DefaultHttpInputContext
public TransportSessionContext getSessionContext()
getSessionContext
in interface HttpInputContext
getSessionContext
in class DefaultHttpInputContext
public HttpTransportLiaison getTransportLiaison()
DefaultHttpInputContext
HttpTransportLiaison
is not serializable, and we need to be able to created by its own here.getTransportLiaison
in interface HttpInputContext
getTransportLiaison
in class DefaultHttpInputContext
public java.io.Reader getReader() throws TransportException
DefaultHttpInputContext
getReader
in interface InputContext
getReader
in class DefaultHttpInputContext
TransportException
public int getTimeout()
DefaultHttpInputContext
getTimeout
in interface HttpInputContext
getTimeout
in class DefaultHttpInputContext
public int getTimeConsumed()
DefaultHttpInputContext
getTimeConsumed
in interface HttpInputContext
getTimeConsumed
in interface InputContext
getTimeConsumed
in class DefaultHttpInputContext
public java.lang.String getContentType() throws TransportException
DefaultHttpInputContext
setContentType
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 InputContext
getContentType
in class DefaultHttpInputContext
TransportException
public java.lang.String getResponseEncoding() throws TransportException
DefaultHttpInputContext
getResponseEncoding
in interface InputContext
getResponseEncoding
in class DefaultHttpInputContext
TransportException
public void setResponseEncoding(java.lang.String szEncoding) throws TransportException
InputContext
setResponseEncoding
in interface InputContext
setResponseEncoding
in class DefaultHttpInputContext
TransportException
public void open() throws TransportException
DefaultHttpInputContext
open
in interface InputContext
open
in class DefaultHttpInputContext
TransportException
public void close() throws TransportException
DefaultHttpInputContext
close
in interface InputContext
close
in class DefaultHttpInputContext
TransportException
public java.lang.String getEffectiveUri() throws TransportException
DefaultHttpInputContext
getEffectiveUri
in interface InputContext
getEffectiveUri
in class DefaultHttpInputContext
TransportException
public java.util.Hashtable getResponseHeaders() throws TransportException
getResponseHeaders
in interface HttpInputContext
getResponseHeaders
in class DefaultHttpInputContext
TransportException
public int getResponseStatus() throws TransportException
getResponseStatus
in interface HttpInputContext
getResponseStatus
in class DefaultHttpInputContext
TransportException
public javax.servlet.http.Cookie[] getResponseCookies()
getResponseCookies
in interface HttpInputContext
getResponseCookies
in class DefaultHttpInputContext
public java.io.InputStream getInputStream() throws TransportException
AbstractInputContext
getReader
from this class.getInputStream
in interface InputContext
getInputStream
in class DefaultHttpInputContext
TransportException
|
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 |