ComCorba

index

The following is the IDL file that is used :
19  /* Lioubliou IDL file
20   * Lioubliou is the filters server of The Birds Lake framework
21   * STRASSER Michel
22   */
23
24  module Lioubliou {
25          exception EBadFilterName                        { };
26          exception EBadLogin                             { };
27          exception EFilterError                          { string mesg; };
28          exception EInvalidInterfacesStream              { };
29          exception EInvalidLsmStream                     { };
30          exception EBadDocument                          { };
31          exception EBadRessourcePath                     { };
32          exception EBadSessionKey                        { };
33          exception ESessionTimedOut                      { };
34
35          typedef sequence<octet>         Stream;
36          typedef string                  RessourcePath;
37          typedef sequence<RessourcePath> InterfacesList;
38          typedef string                  SessionKey;
39
40          enum FilterType {
41                  IMPORT, EXPORT
42          };
43
44          interface Server {
45                  SessionKey
46                          getRendezVous
47                                          (in FilterType type,
48                                           in string name,
49                                           in string user,
50                                           in string password,
51                                           in Stream lsmStream, /* the document */
52                                           out InterfacesList interfacesList,
53                                           out short vortexLifeTime)
54                                  raises (EBadFilterName, EBadLogin, EInvalidLsmStream, EBadDocument);
55
56                  Stream /* LsmStream, the returned filtered document */
57                          applyFilter
58                                          (in SessionKey sessionKey,
59                                           in Stream interfacesStream)
60                                  raises (EFilterError, EBadSessionKey, ESessionTimedOut, EInvalidInterfacesStream);
61
62                  Stream /* Ressource */
63                          getRessource
64                                          (in RessourcePath ressourcePath)
65                                  raises (EBadRessourcePath);
66          };
67  };
68