ice.net
Class HttpURLConnectionSettings

java.lang.Object
  extended byice.net.HttpURLConnectionSettings
All Implemented Interfaces:
Serializable, Settings
Direct Known Subclasses:
HttpsURLConnectionSettings

public class HttpURLConnectionSettings
extends Object
implements Serializable, Settings

The HttpURLConnectionSettings class specifies settings for a HttpURLConnection.

Since:
1.5
Version:
1.5
Author:
Jack van Ooststroom
See Also:
Serialized Form

Field Summary
protected  String httpVersion
           
 
Constructor Summary
HttpURLConnectionSettings()
          Constructs an HttpURLConnectionSettings object.
 
Method Summary
static boolean areDefaultRedirectsEnabled()
           
 boolean areRedirectsEnabled()
           
protected static void checkHttpVersion(String httpVersion)
           
 boolean equals(Object object)
           
 Vector getAcceptLanguageList()
           
 AuthenticationManager getAuthenticationManager()
          Returns the AuthenticationManager of this HttpConnectionSettings object.
 CacheManager getCacheManager()
          Returns the CacheManager of this HttpConnectionSettings object.
 ConnectionManager getConnectionManager()
          Returns the ConnectionManager of this HttpConnectionSettings object.
 CookieManager getCookieManager()
          Returns the CookieManager of this HttpConnectionSettings object.
static String getDefaultHttpVersion()
           
 String getHttpVersion()
           
 MemoryManager getMemoryManager()
          Returns the MemoryManager of this HttpConnectionSettings object.
 ProxyResolver getProxyResolver()
          Returns the ProxyManager of this HttpConnectionSettings object.
 HeaderMap getRequestHeaders()
           
 void resetToDefault()
          Resets the settings of current instance to the default settings.
 void setAcceptLanguageList(Vector acceptLanguageList)
           
 void setAuthenticationManager(AuthenticationManager authenticationManager)
           
 void setCacheManager(CacheManager cacheManager)
           
 void setConnectionManager(ConnectionManager connectionManager)
           
 void setCookieManager(CookieManager cookieManager)
           
static void setDefaultHttpVersion(String httpVersion)
           
static void setDefaultRedirectsEnabled(boolean redirectsEnabled)
           
static void setDefaultRetryBrokenConnections(boolean retryBrokenConnections)
           
 void setHttpVersion(String httpVersion)
           
 void setMemoryManager(MemoryManager memoryManager)
           
 void setProxyResolver(ProxyResolver proxyResolver)
           
 void setRedirectsEnabled(boolean redirectsEnabled)
           
 void setRequestHeaders(HeaderMap requestHeaders)
           
 void setRetryBrokenConnections(boolean retryBrokenConnections)
           
static boolean shouldDefaultRetryBrokenConnections()
           
 boolean shouldRetryBrokenConnections()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

httpVersion

protected String httpVersion
Constructor Detail

HttpURLConnectionSettings

public HttpURLConnectionSettings()

Constructs an HttpURLConnectionSettings object.

Method Detail

areDefaultRedirectsEnabled

public static boolean areDefaultRedirectsEnabled()

areRedirectsEnabled

public boolean areRedirectsEnabled()

equals

public boolean equals(Object object)

getAcceptLanguageList

public Vector getAcceptLanguageList()

getAuthenticationManager

public AuthenticationManager getAuthenticationManager()

Returns the AuthenticationManager of this HttpConnectionSettings object.

Returns:
the authentication manager.

getCacheManager

public CacheManager getCacheManager()

Returns the CacheManager of this HttpConnectionSettings object.

Returns:
the cache manager.

getConnectionManager

public ConnectionManager getConnectionManager()

Returns the ConnectionManager of this HttpConnectionSettings object.

Returns:
the connection manager.

getCookieManager

public CookieManager getCookieManager()

Returns the CookieManager of this HttpConnectionSettings object.

Returns:
the cookie manager.

getDefaultHttpVersion

public static String getDefaultHttpVersion()

getHttpVersion

public String getHttpVersion()

getMemoryManager

public MemoryManager getMemoryManager()

Returns the MemoryManager of this HttpConnectionSettings object.

Returns:
the memory manager.

getProxyResolver

public ProxyResolver getProxyResolver()

Returns the ProxyManager of this HttpConnectionSettings object.

Returns:
the proxy manager.

getRequestHeaders

public HeaderMap getRequestHeaders()

resetToDefault

public void resetToDefault()
Description copied from interface: Settings

Resets the settings of current instance to the default settings.

Specified by:
resetToDefault in interface Settings

setAcceptLanguageList

public void setAcceptLanguageList(Vector acceptLanguageList)

setAuthenticationManager

public void setAuthenticationManager(AuthenticationManager authenticationManager)

setCacheManager

public void setCacheManager(CacheManager cacheManager)

setConnectionManager

public void setConnectionManager(ConnectionManager connectionManager)
                          throws IllegalArgumentException
Throws:
IllegalArgumentException

setCookieManager

public void setCookieManager(CookieManager cookieManager)

setDefaultHttpVersion

public static void setDefaultHttpVersion(String httpVersion)
                                  throws IllegalArgumentException
Throws:
IllegalArgumentException

setDefaultRedirectsEnabled

public static void setDefaultRedirectsEnabled(boolean redirectsEnabled)
                                       throws SecurityException
Throws:
SecurityException

setDefaultRetryBrokenConnections

public static void setDefaultRetryBrokenConnections(boolean retryBrokenConnections)

setHttpVersion

public void setHttpVersion(String httpVersion)
                    throws IllegalArgumentException
Throws:
IllegalArgumentException

setMemoryManager

public void setMemoryManager(MemoryManager memoryManager)

setProxyResolver

public void setProxyResolver(ProxyResolver proxyResolver)

setRedirectsEnabled

public void setRedirectsEnabled(boolean redirectsEnabled)
                         throws SecurityException
Throws:
SecurityException

setRequestHeaders

public void setRequestHeaders(HeaderMap requestHeaders)

setRetryBrokenConnections

public void setRetryBrokenConnections(boolean retryBrokenConnections)

shouldDefaultRetryBrokenConnections

public static boolean shouldDefaultRetryBrokenConnections()

shouldRetryBrokenConnections

public boolean shouldRetryBrokenConnections()

toString

public String toString()

checkHttpVersion

protected static void checkHttpVersion(String httpVersion)
                                throws IllegalArgumentException
Throws:
IllegalArgumentException