keycloak-federation
公開メンバ関数 | 非公開変数類 | 全メンバ一覧
org.freedesktop.dbus.AbstractConnection.FallbackContainer クラス
org.freedesktop.dbus.AbstractConnection.FallbackContainer 連携図
Collaboration graph

公開メンバ関数

synchronized void add (String path, ExportedObject eo)
 
synchronized void remove (String path)
 
synchronized ExportedObject get (String path)
 

非公開変数類

Map< String[], ExportedObjectfallbacks = new HashMap<String[], ExportedObject>()
 

詳解

関数詳解

◆ add()

synchronized void org.freedesktop.dbus.AbstractConnection.FallbackContainer.add ( String  path,
ExportedObject  eo 
)
inline
46  {
47  if (Debug.debug) Debug.print(Debug.DEBUG, "Adding fallback on " + path + " of " + eo);
48  fallbacks.put(path.split("/"), eo);
49  }
Map< String[], ExportedObject > fallbacks
Definition: AbstractConnection.java:44

◆ get()

synchronized ExportedObject org.freedesktop.dbus.AbstractConnection.FallbackContainer.get ( String  path)
inline
56  {
57  int best = 0;
58  int i = 0;
59  ExportedObject bestobject = null;
60  String[] pathel = path.split("/");
61  for (String[] fbpath : fallbacks.keySet()) {
62  if (Debug.debug)
63  Debug.print(Debug.VERBOSE, "Trying fallback path " + Arrays.deepToString(fbpath) + " to match " + Arrays.deepToString(pathel));
64  for (i = 0; i < pathel.length && i < fbpath.length; i++)
65  if (!pathel[i].equals(fbpath[i])) break;
66  if (i > 0 && i == fbpath.length && i > best)
67  bestobject = fallbacks.get(fbpath);
68  if (Debug.debug) Debug.print(Debug.VERBOSE, "Matches " + i + " bestobject now " + bestobject);
69  }
70  if (Debug.debug) Debug.print(Debug.DEBUG, "Found fallback for " + path + " of " + bestobject);
71  return bestobject;
72  }
Map< String[], ExportedObject > fallbacks
Definition: AbstractConnection.java:44

◆ remove()

synchronized void org.freedesktop.dbus.AbstractConnection.FallbackContainer.remove ( String  path)
inline
51  {
52  if (Debug.debug) Debug.print(Debug.DEBUG, "Removing fallback on " + path);
53  fallbacks.remove(path.split("/"));
54  }
Map< String[], ExportedObject > fallbacks
Definition: AbstractConnection.java:44

メンバ詳解

◆ fallbacks

Map<String[], ExportedObject> org.freedesktop.dbus.AbstractConnection.FallbackContainer.fallbacks = new HashMap<String[], ExportedObject>()
private

このクラス詳解は次のファイルから抽出されました: