Class IdcHttpClientConfig
java.lang.Object
oracle.stellent.ridc.IdcClientConfig
oracle.stellent.ridc.protocol.http.IdcHttpClientConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class oracle.stellent.ridc.IdcClientConfig
PROP_CONNECTION_POOL, PROP_CONNECTION_SIZE, PROP_CONNECTION_URL, PROP_CONNECTION_WAIT_TIME, PROP_SOCKET_TIMEOUT, PROP_SOCKET_TIMEOUT_DEFAULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintgetPort()intReturn the security realm to utilize for use with basic authentication using Oracle HTTPClientbooleanbooleanbooleanvoidsetChunkSize(int size) voidsetConnectionStringPostAuth(String connectionString) voidsetContentType(String contentType) voidsetForcedChunkingForLongRequests(boolean forcedChunking) voidsetHttpLibrary(RIDCHttpConstants.HttpLibrary httpLibrary) voidsetIsAdminServer(boolean isAdminServer) voidsetNonProxyHosts(String nonProxyHosts) voidsetOutputStreamBufferSize(int size) voidsetPingService(String pingService) voidsetProxyHost(String proxyHost) voidsetProxyPassword(String proxyPassword) voidsetProxyPort(int port) voidsetProxyRealm(String proxyRealm) voidsetProxyUsername(String proxyUsername) voidsetSecurityRealm(String securityRealm) Specify security realm for use with basic authentication using Oracle HTTPClientvoidsetUseSystemProxy(boolean useSystemProxy) Methods inherited from class oracle.stellent.ridc.IdcClientConfig
getBooleanProperty, getConnectionPool, getConnectionSize, getConnectionString, getConnectionWaitTime, getIntProperty, getLongProperty, getProperty, getPropertyNames, getSecureProperty, getSecurePropertyNames, getSocketTimeout, getStringProperty, setConnectionPool, setConnectionSize, setConnectionString, setConnectionWaitTime, setProperties, setProperty, setSecureProperties, setSecureProperty, setSocketTimeout
-
Field Details
-
CHUNK_SIZE
- See Also:
-
PROP_FORCED_CHUNKING_FOR_LONG_REQUESTS
- See Also:
-
PROP_HTTP_OUTPUTSTREAM_BUFFER_SIZE
- See Also:
-
PROP_USE_SYSTEM_PROXY
- See Also:
-
PROXY_HOST
- See Also:
-
PROXY_PORT
- See Also:
-
NON_PROXY_HOSTS
- See Also:
-
PROXY_USERNAME
- See Also:
-
PROXY_PASSWORD
- See Also:
-
PROXY_REALM
- See Also:
-
CONTENT_TYPE
- See Also:
-
IS_ADMIN_SERVER
- See Also:
-
PING_SERVICE
- See Also:
-
SECURITY_REALM
- See Also:
-
PROP_CONNECTION_URL_POST_AUTH
- See Also:
-
CONTENTTYPE_UTF8
- See Also:
-
DEFAULT_SECURITY_REALM
- See Also:
-
-
Constructor Details
-
IdcHttpClientConfig
public IdcHttpClientConfig()
-
-
Method Details
-
getHttpLibrary
-
setHttpLibrary
-
getChunkSize
public int getChunkSize()- Returns:
- suggested chunk size to utilize for HTTP chunked transfers
-
setChunkSize
public void setChunkSize(int size) - Parameters:
size- number of bytes to utilize as buffer for chunked transfer for supported HTTP implementations. Value should be a multiple of 16k, e.g. 16384, 32768, 65536 etc
-
isForcedChunkingForLongRequests
public boolean isForcedChunkingForLongRequests()- Returns:
- true to force chunked transfer encoding when content length of the request exceeds Integer.MAX_VALUE (2 GB). false is the default meaning 'long' type fixed length streaming will be leveraged if available
-
setForcedChunkingForLongRequests
public void setForcedChunkingForLongRequests(boolean forcedChunking) -
getOutputStreamBufferSize
public int getOutputStreamBufferSize()- Returns:
- suggested buffer size to utilize for HTTP output stream
-
setOutputStreamBufferSize
public void setOutputStreamBufferSize(int size) - Parameters:
size- number of bytes to utilize as buffer for HTTP output stream. Value should be a multiple of 16k, e.g. 32768, 65536 etc
-
isUseSystemProxy
public boolean isUseSystemProxy()- Returns:
- true to use the system proxy settings unless specifically overridden; false to just look in local config
-
setUseSystemProxy
public void setUseSystemProxy(boolean useSystemProxy) -
getProxyHost
-
setProxyHost
-
getProxyPort
public int getProxyPort() -
setProxyPort
public void setProxyPort(int port) -
getNonProxyHosts
-
setNonProxyHosts
-
getProxyUsername
-
setProxyUsername
-
getProxyPassword
-
setProxyPassword
-
setProxyRealm
-
getProxyRealm
-
getContentType
-
setContentType
-
getHostName
-
getPort
public int getPort() -
getScheme
-
setIsAdminServer
public void setIsAdminServer(boolean isAdminServer) - Parameters:
isAdminServer- set to true if your url points to an admin server
-
isAdminServer
public boolean isAdminServer()- Returns:
- true if set to contact admin server
-
setPingService
- Parameters:
pingService- set to service call used to detect Form login. By default PING_SERVER or GET_ROOT_IDC_ADMIN_PAGE (admin servers)
-
getPingService
- Returns:
- service string used to detect Form login, ie "?IdcService=PING_SERVER&IsJava=1"
-
setSecurityRealm
Specify security realm for use with basic authentication using Oracle HTTPClient- Parameters:
securityRealm- security realm to which the credentials apply
-
getSecurityRealm
Return the security realm to utilize for use with basic authentication using Oracle HTTPClient- Returns:
- the security realm to leverage
-
getConnectionStringPostAuth
-
setConnectionStringPostAuth
-