|
Voyager ORB | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.objectspace.voyager.transport.Transport
The Transport class is where all ITransport implementations and IRequestHandlers are registred.
An ITransport implementation provides specific network protocol services, like tcp or udp.
The default transport provides the default networking protocol, for example, the TcpTransport
allows all default communications to happen over the tcp/ip protocol. Thus all urls have an implied
prefix, tcp://
An IRequestHandler implementation provides specific application protocol handling services, like vrmp or http.
A request handler processes incoming data from any registered transport.
Method Summary | |
static ITransportConnection |
acquireConnection(java.lang.String xurl)
Returns an existing or creates a new ITransportConnection implemetation connected to the given xurl. |
static ITransportConnection |
acquireConnection(java.lang.String bindXURL,
java.lang.String xurl)
Returns an existing or creates a new ITransportConnection implemetation connected to the given xurl and locally bound to the given bindXURL value. |
static ITransportServer |
acquireServer(java.lang.String xurl)
Returns an existing or starts a new ITransportServer implementation for the given protocol, bind address, and port. |
static void |
addRequestHandler(IRequestHandler handler)
Adds a new IRequestHandler implementation. |
static java.lang.String |
getDefaultTransport()
Returns the default transport value. |
static ITransportServer |
getServer(java.lang.String xurl)
Returns an existing ITransportServer implementation for the given protocol, bind address, and port. |
static boolean |
isLocal(java.lang.String xurl)
Tests if the given xurl value references the local vm/host. |
static ITransportConnection |
newConnection(java.lang.String xurl)
Creates and returns a new connection to the given xurl value. |
static void |
register(ITransport transport)
Registers an ITransport implementation. |
static void |
setDefaultTransport(java.lang.String transport)
Sets the default transport protocol to use. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Method Detail |
public static void register(ITransport transport)
public static void setDefaultTransport(java.lang.String transport)
ITransport.getProtocol()
.public static java.lang.String getDefaultTransport()
public static ITransportServer getServer(java.lang.String xurl)
public static ITransportServer acquireServer(java.lang.String xurl) throws java.io.IOException
public static ITransportConnection acquireConnection(java.lang.String xurl) throws java.io.IOException
public static ITransportConnection acquireConnection(java.lang.String bindXURL, java.lang.String xurl) throws java.io.IOException
public static ITransportConnection newConnection(java.lang.String xurl) throws java.io.IOException
public static boolean isLocal(java.lang.String xurl)
public static void addRequestHandler(IRequestHandler handler)
|
ObjectSpace Inc. | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |