|
||||||||||
| 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.HttpTransportProvider
public class HttpTransportProvider
An instance of this class creates HttpRmiServer instances,
as well as client-side connections (using Jakartas HTTP client). It is the
entry-point into Ubik's HTTP tranport layer.
For the properties that an instance of this class takes (and their default values),
see the HttpConsts interface.
HttpConsts,
HttpRmiServer| Field Summary |
|---|
| Fields inherited from interface org.sapia.ubik.rmi.server.transport.http.HttpConsts |
|---|
DEFAULT_CONTEXT_PATH, DEFAULT_HTTP_PORT, DEFAULT_HTTP_TRANSPORT_TYPE, HTTP_PORT_KEY, PATH_KEY, SERVER_URL_KEY |
| Constructor Summary | |
|---|---|
HttpTransportProvider()
|
|
HttpTransportProvider(java.lang.String transportType)
|
|
HttpTransportProvider(java.lang.String transportType,
java.io.File baseDir)
|
|
| Method Summary | |
|---|---|
Connections |
getPoolFor(ServerAddress address)
Returns a client connection pool to the given server address. |
ServiceMapper |
getServiceMapper()
Returns the service mapper that is held within this instance. |
ServiceMapper |
getServices()
|
java.lang.String |
getTransportType()
Returns this instance's "transport type". |
Server |
newDefaultServer()
This method is called by Ubik RMI's runtime when a server is needed on the client side to recieve asynchronous responses (i.e.: callbacks). |
Server |
newServer(java.util.Properties props)
Returns a server implementation. |
void |
shutdown()
Shuts down this provider. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpTransportProvider()
public HttpTransportProvider(java.lang.String transportType)
transportType - a "transport type" identifier.
public HttpTransportProvider(java.lang.String transportType,
java.io.File baseDir)
transportType - a "transport type" identifier.| Method Detail |
|---|
public ServiceMapper getServices()
ServiceMapper that holds this instance`s request handlers ("services", in
the Simple API's terms).
public Connections getPoolFor(ServerAddress address)
throws java.rmi.RemoteException
TransportProvider
getPoolFor in interface TransportProvideraddress - a ServerAddress.
Connection.
java.rmi.RemoteException - if a problem occurs creating the connection.TransportProvider.getPoolFor(org.sapia.ubik.net.ServerAddress)public java.lang.String getTransportType()
TransportProvider
getTransportType in interface TransportProviderTransportProvider.getTransportType()
public Server newDefaultServer()
throws java.rmi.RemoteException
TransportProviderServer instance.
newDefaultServer in interface TransportProviderServer.
java.rmi.RemoteExceptionTransportProvider.newDefaultServer()
public Server newServer(java.util.Properties props)
throws java.rmi.RemoteException
TransportProvider
newServer in interface TransportProviderprops - the Properties used to create the server.
Server instance.
java.rmi.RemoteExceptionTransportProvider.newServer(java.util.Properties)public void shutdown()
TransportProvider
shutdown in interface TransportProviderTransportProvider.shutdown()public ServiceMapper getServiceMapper()
ServiceMapper that this instance holds.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||