Ice 3.7 Slice API Reference
Loading...
Searching...
No Matches
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"]
37module Glacier2
38{
39
49{
50}
51
57interface 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
161
170 ["nonmutating", "cpp:const"] idempotent long getSessionTimeout();
171
183 ["nonmutating", "cpp:const"] idempotent int getACMTimeout();
184}
185
186}
This exception is raised if an attempt to create a new session failed.
Definition Session.ice:39
This exception is raised if a client is denied the ability to create a session with the router.
Definition PermissionsVerifier.ice:38
This exception is raised if a client tries to destroy a session with a router, but no session exists ...
Definition Router.ice:49
The Glacier2 specialization of the Ice::Router interface.
Definition Router.ice:58
idempotent int getACMTimeout()
Get the value of the ACM timeout.
void refreshSession()
Keep the calling client's session with this router alive.
idempotent long getSessionTimeout()
Get the value of the session timeout.
Session * createSessionFromSecureConnection()
Create a per-client session with the router.
idempotent string getCategoryForClient()
This category must be used in the identities of all of the client's callback objects.
Session * createSession(string userId, string password)
Create a per-client session with the router.
void destroySession()
Destroy the calling client's session with this router.
A client-visible session object, which is tied to the lifecycle of a Router.
Definition Session.ice:57
The Ice router interface.
Definition Router.ice:39
Glacier2 is a firewall solution for Ice.
Definition PermissionsVerifier.ice:28