|
||||||||||
| 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.HttpClientConnectionPool
public class HttpClientConnectionPool
This class implements the Connections interface over Jakarta's
HTTP client. It does not do pooling, and leaves connection management to the
HTTP client.
| Constructor Summary | |
|---|---|
HttpClientConnectionPool(HttpAddress address)
|
|
HttpClientConnectionPool(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 HttpClientConnectionPool(HttpAddress address)
throws UriSyntaxException
address - the address of the target server.
UriSyntaxExceptionpublic HttpClientConnectionPool(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 | |||||||||