Home | History | Annotate | Download | only in smackx

Lines Matching refs:Gateway

20  * This class is the general entry point to gateway interaction (XEP-0100). 
23 * are not on his server. All actual interaction with a gateway is handled in the
24 * class {@see Gateway}.
35 private Map<String,Gateway> localGateways = new HashMap<String,Gateway>();
37 private Map<String,Gateway> nonLocalGateways = new HashMap<String,Gateway>();
39 private Map<String,Gateway> gateways = new HashMap<String,Gateway>();
74 * Discovers {@link DiscoveryInfo} and {@link DiscoveryInfo.Identity} of a gateway
75 * and creates a {@link Gateway} object representing this gateway.
86 if(category.toLowerCase().equals("gateway")){
87 gateways.put(itemJID, new Gateway(connection,itemJID));
90 new Gateway(connection,itemJID,info,identity));
94 new Gateway(connection,itemJID,info,identity));
141 public List<Gateway> getLocalGateways() throws XMPPException{
145 return new ArrayList<Gateway>(localGateways.values());
155 public List<Gateway> getNonLocalGateways() throws XMPPException{
159 return new ArrayList<Gateway>(nonLocalGateways.values());
171 * Returns a Gateway object for a given JID. Please note that it is not checked if
172 * the JID belongs to valid gateway. If this JID doesn't belong to valid gateway
173 * all operations on this Gateway object should fail with a XMPPException. But there is
176 * @return a Gateway object
178 public Gateway getGateway(String entityJID){
188 Gateway gateway = new Gateway(connection,entityJID);
190 localGateways.put(entityJID, gateway);
193 nonLocalGateways.put(entityJID, gateway);
195 gateways.put(entityJID, gateway);
196 return gateway;