All files / src/Glacier2 Router.js

96.61% Statements 114/118
100% Branches 5/5
80% Functions 4/5
96.61% Lines 114/118

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 11941x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 1x 1x 41x 41x 1x 1x 41x 41x 1x 1x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x         41x 41x 41x 41x 41x 41x 41x 123x 123x 123x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x  
// Copyright (c) ZeroC, Inc.
 
// slice2js version 3.8.0-alpha.0
// <auto-generated>Generated from Slice file 'Router.ice'.</auto-generated>
 
/* eslint-disable */
/* jshint ignore: start */
 
import * as Ice_DefaultSliceLoader from "../Ice/DefaultSliceLoader.js";
import * as Ice_Object from "../Ice/Object.js";
import * as Ice_ObjectPrx from "../Ice/ObjectPrx.js";
import * as Ice_Operation from "../Ice/Operation.js";
import * as Ice_StreamHelpers from "../Ice/StreamHelpers.js";
import * as Ice_TypeRegistry from "../Ice/TypeRegistry.js";
import * as Ice_UserException from "../Ice/UserException.js";
import * as Ice_Value from "../Ice/Value.js";
import { Ice as Ice____Ice_Router } from "../Ice/Router.js"
 
const Ice = {
    ...Ice_DefaultSliceLoader,
    ...Ice_Object,
    ...Ice_ObjectPrx,
    ...Ice_Operation,
    ...Ice_StreamHelpers,
    ...Ice_TypeRegistry,
    ...Ice_UserException,
    ...Ice_Value,
    ...Ice____Ice_Router,
};
 
import { 
    Glacier2 as Glacier2___PermissionsVerifier, } from "./PermissionsVerifier.js"
import { 
    Glacier2 as Glacier2___Session, } from "./Session.js"
 
const Glacier2 = {
    ...Glacier2___PermissionsVerifier,
    ...Glacier2___Session,
};
export { Glacier2 };
 
/**
 * The exception that is thrown when a client tries to destroy a session with a router, but no session exists for
 * this client.
 * @see Router#destroySession
 */
Glacier2.SessionNotExistException = class extends Ice.UserException {
    static get _parent() {
        return Ice.UserException;
    }
 
    static get _ice_id() {
        return "::Glacier2::SessionNotExistException";
    }
 
    _mostDerivedType() {
        return Glacier2.SessionNotExistException;
    }
};
 
Ice.defineClass(Glacier2.SessionNotExistException, "::Glacier2::SessionNotExistException");
 
const iceC_Glacier2_Router_ids = [
    "::Glacier2::Router",
    "::Ice::Object",
    "::Ice::Router"
];
 
/**
 * The Glacier2 specialization of the {@link Ice.RouterPrx} interface.
 */
Glacier2.Router = class extends Ice.Object {
    static get _iceImplements() {
        return [
            Ice.Router
        ];
    }
};
 
/**
 * The Glacier2 specialization of the {@link Ice.RouterPrx} interface.
 */
Glacier2.RouterPrx = class extends Ice.ObjectPrx {
    static get _implements() {
        return [
            Ice.RouterPrx];
    }
};
 
Ice.TypeRegistry.declareProxyType("Glacier2.RouterPrx", Glacier2.RouterPrx);
 
Ice.defineOperations(
    Glacier2.Router,
    Glacier2.RouterPrx,
    iceC_Glacier2_Router_ids,
    "::Glacier2::Router", {
        "getCategoryForClient": [, 2, , [7], , , , , ],
        "createSession": [, 0, , ["Glacier2.SessionPrx"], [[7], [7]], ,
        [
            Glacier2.PermissionDeniedException,
            Glacier2.CannotCreateSessionException
        ], , ],
        "createSessionFromSecureConnection": [, 0, , ["Glacier2.SessionPrx"], , ,
        [
            Glacier2.PermissionDeniedException,
            Glacier2.CannotCreateSessionException
        ], , ],
        "refreshSession": [, 0, , , , ,
        [
            Glacier2.SessionNotExistException
        ], , ],
        "destroySession": [, 0, , , , ,
        [
            Glacier2.SessionNotExistException
        ], , ],
        "getSessionTimeout": [, 2, , [4], , , , , ],
        "getACMTimeout": [, 2, , [3], , , , , ]
    });