|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectice.net.ConnectionManager
| Constructor Summary | |
ConnectionManager()
|
|
ConnectionManager(ConnectionManagerSettings connectionManagerSettings)
Construct a ConnectionManager. |
|
ConnectionManager(ice.net.HttpSession httpSession)
Deprecated. As of 1.5, replaced by . |
|
| Method Summary | |
void |
addHttpURLConnectionListener(HttpURLConnectionListener httpUrlConnectionListener)
Adds the specified httpUrlConnectionListener for
connection events. |
boolean |
arePersistentConnectionsEnabled()
|
CachedInputStream |
createInputStream(HttpURLConnection httpUrlConnection,
CacheManager cacheManager,
Connection connection,
byte[] buffer,
int offset,
int length)
Deprecated. As of 1.6.0, replaced by . |
CachedInputStream |
createInputStream(HttpURLConnection httpUrlConnection,
CacheManager cacheManager,
Connection connection,
byte[] buffer,
int offset,
int length)
|
protected Socket |
createSocket(InetAddress inetAddress,
int port)
Factory method for creating sockets. |
protected void |
fireHttpURLConnectionEvent(HttpURLConnection httpUrlConnection,
int eventType,
HttpRequest httpRequest)
|
protected void |
fireHttpURLConnectionEvent(HttpURLConnection httpUrlConnection,
int eventType,
HttpRequest httpRequest,
HttpResponse httpResponse)
|
protected InetAddress |
getByName(String host)
Gets the IP address of the specified host. |
protected InetAddress |
getByName(String host,
boolean useIp)
Gets the IP address of the specified host. |
Connection |
getConnection(HttpURLConnection httpUrlConnection,
URL url,
InetAddress inetAddress,
int port)
Get a connection. |
int |
getMaxPersistentConnections()
|
boolean |
getPersistent()
Deprecated. As of 1.5, replaced by . |
int |
getPersistentConnectionTimeout()
|
int |
getReadBufferSize()
|
int |
getSoTimeout()
|
boolean |
isNagleEnabled()
|
void |
removeHttpURLConnectionListener(HttpURLConnectionListener httpUrlConnectionListener)
Removes the specified httpUrlConnectionListener for
connection events. |
static void |
setLimits(boolean limits)
Deprecated. As of 1.5, replaced by . |
void |
setMaxPersistentConnections(int maxPersistentConnections)
|
void |
setNagleEnabled(boolean nagleEnabled)
|
void |
setPersistent(boolean persistent)
Deprecated. As of 1.5, replaced by . |
void |
setPersistentConnectionsEnabled(boolean persistentConnectionsEnabled)
|
void |
setPersistentConnectionTimeout(int persistentConnectionTimeout)
|
void |
setReadBufferSize(int readBufferSize)
|
void |
setSoTimeout(int soTimeout)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ConnectionManager()
public ConnectionManager(ConnectionManagerSettings connectionManagerSettings)
public ConnectionManager(ice.net.HttpSession httpSession)
ConnectionManager(ConnectionManagerSettings).
| Method Detail |
public void addHttpURLConnectionListener(HttpURLConnectionListener httpUrlConnectionListener)
Adds the specified httpUrlConnectionListener for
connection events.
httpUrlConnectionListener - the listener to be added.public boolean arePersistentConnectionsEnabled()
public int getMaxPersistentConnections()
public boolean getPersistent()
arePersistentConnectionsEnabled().
public int getPersistentConnectionTimeout()
public int getReadBufferSize()
public int getSoTimeout()
public boolean isNagleEnabled()
public void removeHttpURLConnectionListener(HttpURLConnectionListener httpUrlConnectionListener)
Removes the specified httpUrlConnectionListener for
connection events.
httpUrlConnectionListener - the listener to be removed.
public static void setLimits(boolean limits)
throws UnsupportedOperationException
setMaxPersistentConnections(int).
UnsupportedOperationException
public void setMaxPersistentConnections(int maxPersistentConnections)
throws IllegalArgumentException
IllegalArgumentExceptionpublic void setNagleEnabled(boolean nagleEnabled)
public void setPersistent(boolean persistent)
setPersistentConnectionsEnabled(boolean).
public void setPersistentConnectionsEnabled(boolean persistentConnectionsEnabled)
public void setPersistentConnectionTimeout(int persistentConnectionTimeout)
throws IllegalArgumentException
IllegalArgumentException
public void setReadBufferSize(int readBufferSize)
throws IllegalArgumentException
IllegalArgumentException
public void setSoTimeout(int soTimeout)
throws IllegalArgumentException
IllegalArgumentException
protected Socket createSocket(InetAddress inetAddress,
int port)
throws IOException
IOException
protected void fireHttpURLConnectionEvent(HttpURLConnection httpUrlConnection,
int eventType,
HttpRequest httpRequest)
throws IllegalArgumentException
IllegalArgumentException
protected void fireHttpURLConnectionEvent(HttpURLConnection httpUrlConnection,
int eventType,
HttpRequest httpRequest,
HttpResponse httpResponse)
throws IllegalArgumentException
IllegalArgumentException
public CachedInputStream createInputStream(HttpURLConnection httpUrlConnection,
CacheManager cacheManager,
Connection connection,
byte[] buffer,
int offset,
int length)
createInputStream(HttpURLConnection, CacheManager, Connection, byte[], int, int).
public CachedInputStream createInputStream(HttpURLConnection httpUrlConnection,
CacheManager cacheManager,
Connection connection,
byte[] buffer,
int offset,
int length)
public Connection getConnection(HttpURLConnection httpUrlConnection,
URL url,
InetAddress inetAddress,
int port)
throws IOException
IOException
protected InetAddress getByName(String host)
throws SecurityException,
UnknownHostException
Gets the IP address of the specified host.
host - the host for which the IP address is needed.
SecurityException - if a security manager exists and its
SecurityManager.checkConnect(String, int)
method doesn't allow the operation
UnknownHostException - if no IP address for the specified host
could be found.
protected InetAddress getByName(String host,
boolean useIp)
throws SecurityException,
UnknownHostException
Gets the IP address of the specified host. The specified
useIp indicates if the IP (Internet Protocol) is allowed to
be used in determining the IP address.
host - the host for which the IP address is needed.useIp - indicates that the use of the IP is allowed.
SecurityException - if a security manager exists and its
SecurityManager.checkConnect(String, int)
method doesn't allow the operation
UnknownHostException - if no IP address for the specified host
could be found.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||