|
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.http.HttpClientTransportLiaison
public abstract class HttpClientTransportLiaison
This implementation of handing HTTP connection is based on HTTPClient. This HTTP request is defined in HttpInputContext
| Field Summary | |
|---|---|
protected HTTPClient.HTTPConnection |
m_connHTTPClient.HTTPConnection |
protected HttpInputContext |
m_ctxThe information needed to open HTTPConnection |
protected java.util.Hashtable |
m_htHeaders |
protected java.io.InputStream |
m_is |
protected int |
m_iStatusCode |
protected int |
m_iTimeConsumed |
protected java.lang.String |
m_remoteHost |
protected java.lang.String |
m_szContentType |
protected java.lang.String |
m_szEffectiveUri |
protected HTTPClient.URI |
m_uriThe URI representation for URL from HttpInputContext |
| Constructor Summary | |
|---|---|
protected |
HttpClientTransportLiaison(HttpInputContext ctx)Can only be called from this package |
| Method Summary | |
|---|---|
protected abstract void |
addRequestHeaders(java.util.Vector vctHeaders)This method is to be implemented by subclasses to add their own request headers. |
void |
close()close the connection by closing the InputStream and resetting the membder variables. |
java.lang.String |
encodeBasicAuthorization(java.lang.String szUsername, java.lang.String szPassword)Deprecated. |
HttpAuthorizationInfo |
getAuthorizationInfo()This method is currently only called by the subclass HttpClientProviderTransportLiaison. |
java.lang.String |
getContentType()Return the content type |
java.lang.String |
getEffectiveUri()Get the effective uri string in external form. |
java.util.Hashtable |
getHeaders()Pass the header from response to browser |
java.io.InputStream |
getInputStream()return the input stream |
javax.servlet.http.Cookie[] |
getResponseCookies()Return response cookie in javax.servlet.http.Cookie format |
int |
getStatus() |
int |
getTimeConsumed()Returns the time consumed for fetching the current URL. |
protected void |
handleAuthChallenge(java.util.Hashtable htHeaders, java.lang.String szChallenge)Save the authorization scheme and realm back to HttpInputContext. |
protected void |
handleError() |
protected abstract void |
handleStatusCode(int iStatusCode, java.lang.String szReasonLine)Let my children handle their own interpretation of the status code. |
void |
open()This method creates the HTTPConnection and get the HTTPResponse. |
void |
setRemoteHost(java.lang.String reHost) |
protected abstract void |
setupHttpAuthorization()Setup the HTTP Authorization information via TransportSessionContext. |
protected void |
setupProxyAuthorization()Always do this |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected HttpInputContext m_ctx
protected HTTPClient.HTTPConnection m_conn
protected java.lang.String m_remoteHost
protected java.io.InputStream m_is
protected java.lang.String m_szContentType
protected java.lang.String m_szEffectiveUri
protected java.util.Hashtable m_htHeaders
protected int m_iStatusCode
protected int m_iTimeConsumed
protected HTTPClient.URI m_uri
| Constructor Detail |
|---|
protected HttpClientTransportLiaison(HttpInputContext ctx)
| Method Detail |
|---|
public void setRemoteHost(java.lang.String reHost)
public void open()
throws TransportException
open in interface HttpTransportLiaisonTransportException
public java.io.InputStream getInputStream()
throws TransportException
getInputStream in interface HttpTransportLiaisonTransportException
public java.lang.String getEffectiveUri()
throws TransportException
getEffectiveUri in interface HttpTransportLiaisonTransportException
public java.lang.String getContentType()
throws TransportException
HttpTransportLiaisongetContentType in interface HttpTransportLiaisonTransportException
public java.util.Hashtable getHeaders()
throws TransportException
getHeaders in interface HttpTransportLiaisonTransportException
public int getStatus()
throws TransportException
getStatus in interface HttpTransportLiaisonTransportException
protected void handleAuthChallenge(java.util.Hashtable htHeaders,
java.lang.String szChallenge)
htHeaders - HTTP headers retrieved from the HTTP connection response. this method allows for modifying that list of HTTP headers like described above for Digest authentication.szChallenge - HTTP Header WWW-Authenticate value, which indicates the HTTP authenticate challenge type - Basic, Digest, as well as other authentication related information like realm.
public void close()
throws TransportException
close in interface HttpTransportLiaisonTransportExceptionHttpInputContext
protected void setupProxyAuthorization()
throws HttpTransportException
HttpTransportException
protected abstract void setupHttpAuthorization()
throws HttpTransportException
- - if auth type(scheme) is not Basic or DigestHttpTransportExceptionprotected void handleError()
protected abstract void handleStatusCode(int iStatusCode,
java.lang.String szReasonLine)
throws TransportException
TransportExceptionpublic int getTimeConsumed()
getTimeConsumed in interface HttpTransportLiaisonprotected abstract void addRequestHeaders(java.util.Vector vctHeaders)
public java.lang.String encodeBasicAuthorization(java.lang.String szUsername,
java.lang.String szPassword)
szUsername - username to be encodedszPassword - password to be encodedpublic javax.servlet.http.Cookie[] getResponseCookies()
getResponseCookies in interface HttpTransportLiaison
public HttpAuthorizationInfo getAuthorizationInfo()
throws HttpTransportException
getAuthorizationInfo in interface HttpTransportLiaisonHttpTransportException
|
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 | ||||||||