Skip navigation links

Oracle® WebLogic Server Web Clipping Transport API Reference
11g Release 1 (11.1.1)

E14346-01


oracle.portal.wcs.transport.http
Class HttpClientStudioTransportLiaison

java.lang.Object
  extended by oracle.portal.wcs.transport.http.HttpClientTransportLiaison
      extended by oracle.portal.wcs.transport.http.HttpClientStudioTransportLiaison

All Implemented Interfaces:
HttpHeaderConstants, WcExceptionConstants, HttpTransportLiaison

public class HttpClientStudioTransportLiaison
extends HttpClientTransportLiaison
implements HttpHeaderConstants

Field Summary

 

Fields inherited from class oracle.portal.wcs.transport.http.HttpClientTransportLiaison
m_conn, m_ctx, m_htHeaders, m_is, m_iStatusCode, m_iTimeConsumed, m_remoteHost, m_szContentType, m_szEffectiveUri, m_uri

 

Fields inherited from interface oracle.portal.wcs.common.HttpHeaderConstants
COOKIE_NAME_VAL_JSESSIONID, DEFAULT_HTTP_PORT, DEFAULT_PROXY_PORT, HEADER_ACCEPT, HEADER_ACCEPT_CHARSET, HEADER_ACCEPT_DELIMITER, HEADER_ACCEPT_ENCODING, HEADER_ACCEPT_LANGUAGE, HEADER_ACCEPT_VAL_ANY, HEADER_ACCEPT_VAL_APP_JS, HEADER_ACCEPT_VAL_IMAGE_GIF, HEADER_ACCEPT_VAL_IMAGE_JPEG, HEADER_ACCEPT_VAL_IMAGE_PJPEG, HEADER_ACCEPT_VAL_IMAGE_X_XBITMAP, HEADER_ACCEPT_VAL_TEXT_HTML, HEADER_AUTHORIZATION, HEADER_CHARSET_VAL_SJIS, HEADER_CHARSET_VAL_UTF8, HEADER_CONNECTION, HEADER_CONTENT_TYPE, HEADER_COOKIE, HEADER_EXPIRES, HEADER_HOST, HEADER_IF_MODIFIED_SINCE, HEADER_IF_NONE_MATCH, HEADER_KEEP_ALIVE, HEADER_LAST_MODIFIED, HEADER_PROXY_AUTHORIZATION, HEADER_REFERER, HEADER_USER_AGENT, HEADER_USER_AGENT_NOVERSION, HEADER_WWW_AUTHENTICATE, HEADER_X_ORACLE_PREFIX, HTTP_AUTH_DIGEST_NAME_NONCE, HTTP_AUTH_DIGEST_NAME_OPAQUE, HTTP_AUTH_DIGEST_NAME_QOP, HTTP_AUTH_DIGEST_NAME_RESPONSE, HTTP_AUTH_DIGEST_NAME_USERNAME, HTTP_AUTH_NAME_REALM, HTTP_AUTH_SCHEME_VALUE_BASIC, HTTP_AUTH_SCHEME_VALUE_DIGEST, HTTP_METHOD_GET, HTTP_METHOD_POST, HTTP_STATUS_200_OK, HTTP_STATUS_400_BAD_REQUEST, HTTP_STATUS_401_UNAUTHORIZED, HTTP_STATUS_402_PAYMENT_REQUIRED, HTTP_STATUS_403_FORBIDDEN, HTTP_STATUS_404_NOT_FOUND, HTTP_STATUS_405_METHOD_NOT_ALLOWED, HTTP_STATUS_406_NOT_ACCEPTABLE, HTTP_STATUS_407_PROXY_AUTH_REQUIRED, HTTP_STATUS_408_REQUEST_TIMEOUT, METATAG_CHARSET_VAL_EUCJP, METATAG_CHARSET_VAL_SJIS, METATAG_CHARSET_VAL_WIN31J

 

Fields inherited from interface oracle.portal.wcs.exmsgs.WcExceptionConstants
AUTH_DECODING_FAILED, CLIP_CHECK_FAILED, CLIP_DEF_LOOKUP_FAILURE_UTF8_CONV, CLIP_DEF_NOT_FOUND, CLIP_NOT_FOUND, ENCODING_SET_TWICE_ERROR, EXPIMP_BASE, EXPIMP_INVALID_VERSION, EXPIMP_ROOT_NOT_CLIPPING_DEF, GENERIC_TRANSPORT_ERROR, HTML_PARSE_FAILED, HTTP_AUTH_FAILED, HTTP_INVALID_URI_ERROR, HTTP_NOT_ALLOWED_TO_ACCESS, HTTP_PROXY_AUTH_FAILED, HTTP_TRANSPORT_ERROR, HTTP_TRANSPORT_STATUS_ERROR, HTTPS_NOT_SUPPORTED, HTTPS_TRANSPORT_ERROR, ILLEGAL_REQUEST, INVALID_ACTION, INVALID_CLIPPING_KEY, INVALID_MODE, IO_OP_FAILED, JS_PARSE_FAILED, NO_ACTION_DEFINED, PORTAL_EDIT_URL_MISSING, RAA_SCHEMA_INIT_FAILED, RAA_SCHEMA_NOT_EXIST, REPOSITORY_NOT_INSTALLED, REPOSITORY_OP_FAILED, SESSION_CLEANED, SESSION_TIMEOUT, SET_ENCODING_TWICE_ERROR, TRANSPORT_TIMEOUT_ERROR, UNDEFINED_CONTENT_TYPE, UNDEFINED_NODE_RELATION, UNSUPPORTED_ENCODING, UNSUPPORTED_HTTP_AUTH, UNSUPPORTED_HTTP_OP, UNSUPPORTED_MIME_CHARSET, UNSUPPORTED_REQ_CONTENT_TYPE, UNSUPPORTED_RSRC_CONTENT_TYPE

 

Constructor Summary
protected HttpClientStudioTransportLiaison(HttpInputContext ctx)
           

 

Method Summary
protected  void addRequestHeaders(java.util.Vector vctHeaders)
          This method is to be implemented by subclasses to add their own request headers.
protected  void handleStatusCode(int iStatusCode, java.lang.String szReasonLine)
          Let my children handle their own interpretation of the status code.
protected  void setupHttpAuthorization()
          Setup the HTTP Authorization information via TransportSessionContext.

 

Methods inherited from class oracle.portal.wcs.transport.http.HttpClientTransportLiaison
close, encodeBasicAuthorization, getAuthorizationInfo, getContentType, getEffectiveUri, getHeaders, getInputStream, getResponseCookies, getStatus, getTimeConsumed, handleAuthChallenge, handleError, open, setRemoteHost, setupProxyAuthorization

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

HttpClientStudioTransportLiaison

protected HttpClientStudioTransportLiaison(HttpInputContext ctx)

Method Detail

setupHttpAuthorization

protected void setupHttpAuthorization()
                               throws HttpTransportException
Description copied from class: HttpClientTransportLiaison
Setup the HTTP Authorization information via TransportSessionContext. The reason why we do not support Digest Authentication right now (copied from RFC-2617) First, the WWW-Authenticate header of the server's initial 401 response contains a few more name-value pairs beyond the realm string, including a value called a nonce. It is the server's responsibility to make sure that every 401 response comes with a unique, previously unused nonce value. The Authentication header of your browsers follow-up request contains your clear-text username, the nonce value it just received, and the so-called digest-request According to RFC-2617, This should be the header we got from web server: HTTP/1.1 401 Unauthorized WWW-Authenticate: Digest realm="testrealm@host.com", qop="auth,auth-int", nonce="dcd98b7102dd2f0e8b11d0f600bfb0c093", opaque="5ccc069c403ebaf9f0171e9517f40e41" here should be the HTTP header we got from browser Authorization: Digest username="Mufasa", realm="testrealm@host.com", nonce="dcd98b7102dd2f0e8b11d0f600bfb0c093", uri="/dir/index.html", qop=auth, nc=00000001, cnonce="0a4f113b", response="6629fae49393a05397450978507c4ef1", opaque="5ccc069c403ebaf9f0171e9517f40e41" An implementation might choose not to accept a previously used nonce or a previously used digest, in order to protect against a replay attack. From a simple test of Digest Authorization, it seems to me that IE6.0 and netscape6.2 does not work with Apache mod_digest module. I have tested new mod_auth_digest module yet. However, it seems that we can not support Digest as the same way as the Basic, since the password is need in either way
Specified by:
setupHttpAuthorization in class HttpClientTransportLiaison
Throws:
HttpTransportException

handleStatusCode

protected void handleStatusCode(int iStatusCode,
                                java.lang.String szReasonLine)
                         throws HttpTransportException
Description copied from class: HttpClientTransportLiaison
Let my children handle their own interpretation of the status code.
Specified by:
handleStatusCode in class HttpClientTransportLiaison
Throws:
HttpTransportException

addRequestHeaders

protected void addRequestHeaders(java.util.Vector vctHeaders)
Description copied from class: HttpClientTransportLiaison
This method is to be implemented by subclasses to add their own request headers.
Specified by:
addRequestHeaders in class HttpClientTransportLiaison

Skip navigation links

Oracle® WebLogic Server Web Clipping Transport API Reference
11g Release 1 (11.1.1)

E14346-01


Copyright © 2003, 2009, Oracle Corporation. All Rights Reserved