Package com.zeroc.Ice
Interface Router
- All Superinterfaces:
Object
- All Known Subinterfaces:
Router
The Ice router interface. Routers can be set either globally with
Communicator.setDefaultRouter(com.zeroc.Ice.RouterPrx)
, or with ice_router
on specific
proxies.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Holds the result of operation getClientProxy.Nested classes/interfaces inherited from interface com.zeroc.Ice.Object
Object.Ice_invokeResult
-
Method Summary
Modifier and TypeMethodDescriptionaddProxies
(ObjectPrx[] proxies, Current current) Add new proxy information to the router's routing table.getClientProxy
(Current current) Get the router's client proxy, i.e., the proxy to use for forwarding requests from the client to the router.getServerProxy
(Current current) Get the router's server proxy, i.e., the proxy to use for forwarding requests from the server to the router.default String
Returns the Slice type ID of the most-derived interface supported by this object.default String[]
Returns the Slice type IDs of the interfaces supported by this object.static String
Returns the Slice type ID of the interface supported by this object.Methods inherited from interface com.zeroc.Ice.Object
ice_dispatch, ice_isA, ice_ping
-
Method Details
-
getClientProxy
Get the router's client proxy, i.e., the proxy to use for forwarding requests from the client to the router. If a null proxy is returned, the client will forward requests to the router's endpoints.- Parameters:
current
- The Current object for the invocation.- Returns:
- An instance of Router.GetClientProxyResult.
-
getServerProxy
Get the router's server proxy, i.e., the proxy to use for forwarding requests from the server to the router.- Parameters:
current
- The Current object for the invocation.- Returns:
- The router's server proxy.
-
addProxies
Add new proxy information to the router's routing table.- Parameters:
proxies
- The proxies to add.current
- The Current object for the invocation.- Returns:
- Proxies discarded by the router.
-
ice_ids
Description copied from interface:Object
Returns the Slice type IDs of the interfaces supported by this object. -
ice_id
Description copied from interface:Object
Returns the Slice type ID of the most-derived interface supported by this object. -
ice_staticId
Description copied from interface:Object
Returns the Slice type ID of the interface supported by this object.- Returns:
- The return value is always ::Ice::Object.
-