|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sapia.ubik.rmi.server.transport.http.JdkClientConnectionPool
public class JdkClientConnectionPool
This class implements the Connections interface over the JDK's
HTTP support classes (URL, HttpURLConnection). It is
a sub-optimal implementation used only if the Jakarta HTTP client classes are not
in the classpath.
| Constructor Summary | |
|---|---|
JdkClientConnectionPool(HttpAddress address)
|
|
JdkClientConnectionPool(java.lang.String transportType,
Uri serverUri)
|
|
| Method Summary | |
|---|---|
RmiConnection |
acquire()
Acquires a connection from this pool. |
void |
clear()
Closes all connections kept internally and removes them. |
java.lang.String |
getTransportType()
Returns the "transport type" of the connections held by this instance. |
void |
release(Connection conn)
Releases the given connection to this pool. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JdkClientConnectionPool(HttpAddress address)
throws UriSyntaxException
transportType - the "transport type" identifier.address - the address of the target server.
UriSyntaxException
public JdkClientConnectionPool(java.lang.String transportType,
Uri serverUri)
transportType - the "transport type" identifier.serverUri - the address of the target server.| Method Detail |
|---|
public RmiConnection acquire()
throws java.rmi.RemoteException
Connections
acquire in interface ConnectionsConnection.
java.rmi.RemoteException - if a problem occurs acquiring a connection.Connections.acquire()public void clear()
Connections
clear in interface ConnectionsConnections.clear()public java.lang.String getTransportType()
Connections
getTransportType in interface ConnectionsConnections.getTransportType()public void release(Connection conn)
Connections
release in interface ConnectionsConnections.release(org.sapia.ubik.net.Connection)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||