(Jid jid)
| 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 | } |