MCPcopy Create free account
hub / github.com/BombusMod/BombusMod / getTransport

Method getTransport

src/main/java/xmpp/JidUtils.java:51–59  ·  view source on GitHub ↗
(Jid jid)

Source from the content-addressed store, hash-verified

49 }
50
51 public static String getTransport(Jid jid) {
52 try {
53 int beginIndex = jid.getBare().indexOf('@') + 1;
54 int endIndex = jid.getBare().indexOf('.', beginIndex);
55 return jid.getBare().substring(beginIndex, endIndex);
56 } catch (Exception e) {
57 return "-";
58 }
59 }
60}

Callers 2

ContactMethod · 0.95
cloneMethod · 0.95

Calls 1

getBareMethod · 0.80

Tested by

no test coverage detected