Ice 3.7 Slice API Reference
Router.ice
Go to the documentation of this file.
1 //
2 // Copyright (c) ZeroC, Inc. All rights reserved.
3 //
4 
5 #pragma once
6 
7 [["cpp:dll-export:GLACIER2_API"]]
8 [["cpp:doxygen:include:Glacier2/Glacier2.h"]]
9 [["cpp:header-ext:h"]]
10 [["cpp:include:Glacier2/Config.h"]]
11 
12 [["js:module:ice"]]
13 [["js:cjs-module"]]
14 
15 [["objc:dll-export:GLACIER2_API"]]
16 [["objc:header-dir:objc"]]
17 
18 [["python:pkgdir:Glacier2"]]
19 
20 #include <Ice/Router.ice>
21 #include <Glacier2/Session.ice>
23 
24 #ifndef __SLICE2JAVA_COMPAT__
25 [["java:package:com.zeroc"]]
26 #endif
27 
36 ["objc:prefix:GLACIER2"]
37 module Glacier2
38 {
39 
49 {
50 }
51 
57 interface Router extends Ice::Router
58 {
70  ["nonmutating", "cpp:const"] idempotent string getCategoryForClient();
71 
105  ["amd", "format:sliced"] Session* createSession(string userId, string password)
107 
137  ["amd", "format:sliced"] Session* createSessionFromSecureConnection()
139 
148  ["amd"] void refreshSession()
150 
159  void destroySession()
161 
170  ["nonmutating", "cpp:const"] idempotent long getSessionTimeout();
171 
183  ["nonmutating", "cpp:const"] idempotent int getACMTimeout();
184 }
185 
186 }
Ice::Router
The Ice router interface.
Definition: Router.ice:39
Router.ice
Glacier2::Router
The Glacier2 specialization of the Ice::Router interface.
Definition: Router.ice:58
Glacier2::CannotCreateSessionException
This exception is raised if an attempt to create a new session failed.
Definition: Session.ice:39
Glacier2
Glacier2 is a firewall solution for Ice.
Definition: PermissionsVerifier.ice:28
PermissionsVerifier.ice
Session.ice
Glacier2::Router::getCategoryForClient
idempotent string getCategoryForClient()
This category must be used in the identities of all of the client's callback objects.
Glacier2::Router::createSession
Session * createSession(string userId, string password)
Create a per-client session with the router.
Glacier2::Router::createSessionFromSecureConnection
Session * createSessionFromSecureConnection()
Create a per-client session with the router.
Glacier2::Session
A client-visible session object, which is tied to the lifecycle of a Router.
Definition: Session.ice:57
Glacier2::PermissionDeniedException
This exception is raised if a client is denied the ability to create a session with the router.
Definition: PermissionsVerifier.ice:38
Glacier2::SessionNotExistException
This exception is raised if a client tries to destroy a session with a router, but no session exists ...
Definition: Router.ice:49