|
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
public abstract class AbstractInputContext
Field Summary | |
---|---|
protected java.io.Reader |
m_r |
protected java.lang.String |
m_szContentType |
protected java.lang.String |
m_szReqEncoding |
protected java.lang.String |
m_szRespEncoding |
Fields inherited from interface oracle.portal.wcs.transport.InputContext |
---|
BUFFER_SIZE |
Constructor Summary | |
---|---|
AbstractInputContext() |
Method Summary | |
---|---|
abstract void |
close() The interface for GC |
java.lang.String |
getContentType() Normally, the content-type is retrived from the server side as a HTTP header "content-type". |
abstract java.lang.String |
getEffectiveUri() The Effective URI |
abstract java.io.InputStream |
getInputStream() This method needs to be implemented by all subclasses in case they depend on getReader from this class. |
java.io.Reader |
getReader() Should determine the character set and then create the right reader |
java.lang.String |
getRequestEncoding() Get the encoding of the request parameters. |
java.lang.String |
getResponseEncoding() Get the encoding of the input |
int |
getTimeConsumed() get the time to first byte (latency) this input context in milliseconds |
java.lang.String |
getUrl() Each InputContext should have a URL to associate with |
abstract void |
open() Opens up the stream so that subsequent calls to getReader will be ok. |
void |
setContentType(java.lang.String szContentType) This method can be called if the caller already known the content-type of this InputContext. |
void |
setRequestEncoding(java.lang.String szEncoding) |
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String m_szContentType
protected java.lang.String m_szRespEncoding
protected java.lang.String m_szReqEncoding
protected transient java.io.Reader m_r
Constructor Detail |
---|
public AbstractInputContext()
Method Detail |
---|
public java.lang.String getUrl()
InputContext
getUrl
in interface InputContext
public java.lang.String getContentType() throws TransportException
InputContext
setContentType
is called, this method simply returns it, Otherwise, it will call the transport layer to get the content-type from the external source.getContentType
in interface InputContext
TransportException
public void setContentType(java.lang.String szContentType)
setContentType
in interface InputContext
StudioJsJspClient#handleStudioAction
, ProviderJsJspClient#show
public java.lang.String getResponseEncoding() throws TransportException
InputContext
getResponseEncoding
in interface InputContext
TransportException
public void setResponseEncoding(java.lang.String szEncoding) throws TransportException
InputContext
setResponseEncoding
in interface InputContext
TransportException
public java.lang.String getRequestEncoding()
getRequestEncoding
in interface InputContext
public void setRequestEncoding(java.lang.String szEncoding)
setRequestEncoding
in interface InputContext
public java.io.Reader getReader() throws TransportException
InputContext
getReader
in interface InputContext
TransportException
public abstract void open() throws TransportException
open
in interface InputContext
TransportException
public abstract void close() throws TransportException
close
in interface InputContext
TransportException
public abstract java.lang.String getEffectiveUri() throws TransportException
getEffectiveUri
in interface InputContext
TransportException
public int getTimeConsumed()
InputContext
getTimeConsumed
in interface InputContext
public abstract java.io.InputStream getInputStream() throws TransportException
getReader
from this class.getInputStream
in interface InputContext
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 |