Examples of XMPPServerCredentials


Examples of org.apache.axis2.transport.xmpp.util.XMPPServerCredentials

     */ 
  public void init(ConfigurationContext confContext,
      TransportOutDescription transportOut) throws AxisFault {
    //if connection details are available from axis configuration
    //use those & connect to jabber server(s)
    serverCredentials = new XMPPServerCredentials();
    getConnectionDetailsFromAxisConfiguration(transportOut);   
    connectionFactory = new XMPPConnectionFactory();
    connectionFactory.connect(serverCredentials);   
  }
View Full Code Here

Examples of org.apache.axis2.transport.xmpp.util.XMPPServerCredentials

            } catch (AxisFault axisFault) {
                log.error("Error reading parameters");
            }

            Iterator params = pi.getParameters().iterator();
            XMPPServerCredentials serverCredentials =
              new XMPPServerCredentials();
           
            while (params.hasNext()) {
                Parameter param = (Parameter) params.next();
                if(XMPPConstants.XMPP_SERVER_URL.equals(param.getName())){
                  xmppServerUrl = (String)param.getValue();
              serverCredentials.setServerUrl(xmppServerUrl);                 
                }else if(XMPPConstants.XMPP_SERVER_USERNAME.equals(param.getName())){
                  xmppServerUsername = (String) param.getValue();
                  serverCredentials.setAccountName(xmppServerUsername);
                }else if(XMPPConstants.XMPP_SERVER_PASSWORD.equals(param.getName())){
              serverCredentials.setPassword((String)param.getValue());                 
                }else if(XMPPConstants.XMPP_SERVER_TYPE.equals(param.getName())){
              serverCredentials.setServerType((String)param.getValue());                 
                }
            }
        XMPPConnectionFactory xmppConnectionFactory = new XMPPConnectionFactory();
        xmppConnectionFactory.connect(serverCredentials);
       
        connectionFactories.put(serverCredentials.getAccountName() + "@"
            + serverCredentials.getServerUrl(), xmppConnectionFactory);          
        }
  }
View Full Code Here

Examples of org.apache.axis2.transport.xmpp.util.XMPPServerCredentials

     */ 
  public void init(ConfigurationContext confContext,
      TransportOutDescription transportOut) throws AxisFault {
    //if connection details are available from axis configuration
    //use those & connect to jabber server(s)
    serverCredentials = new XMPPServerCredentials();
    getConnectionDetailsFromAxisConfiguration(transportOut)
   
    defaultConnectionFactory = new XMPPConnectionFactory();
  }
View Full Code Here

Examples of org.apache.axis2.transport.xmpp.util.XMPPServerCredentials

     */ 
  public void init(ConfigurationContext confContext,
      TransportOutDescription transportOut) throws AxisFault {
    //if connection details are available from axis configuration
    //use those & connect to jabber server(s)
    XMPPServerCredentials serverCredentials = new XMPPServerCredentials();
    getConnectionDetailsFromAxisConfiguration(serverCredentials,transportOut);
    connectionFactory = new XMPPConnectionFactory();
    connectionFactory.connect(serverCredentials);   
  }
View Full Code Here

Examples of org.apache.axis2.transport.xmpp.util.XMPPServerCredentials

  /**
   * Extract connection details from Client options
   * @param msgCtx
   */
  private void connectUsingClientOptions(MessageContext msgCtx) throws AxisFault{   
    XMPPServerCredentials serverCredentials = new XMPPServerCredentials();
    getConnectionDetailsFromClientOptions(serverCredentials,msgCtx);
    connectionFactory = new XMPPConnectionFactory();
    connectionFactory.connect(serverCredentials);
  }
View Full Code Here

Examples of org.apache.axis2.transport.xmpp.util.XMPPServerCredentials

            } catch (AxisFault axisFault) {
                log.error("Error reading parameters");
            }

            Iterator params = pi.getParameters().iterator();
            XMPPServerCredentials serverCredentials =
              new XMPPServerCredentials();
           
            while (params.hasNext()) {
                Parameter param = (Parameter) params.next();
                if(XMPPConstants.XMPP_SERVER_URL.equals(param.getName())){
              serverCredentials.setServerUrl((String)param.getValue());                 
                }else if(XMPPConstants.XMPP_SERVER_USERNAME.equals(param.getName())){
              serverCredentials.setAccountName((String)param.getValue());                 
                }else if(XMPPConstants.XMPP_SERVER_PASSWORD.equals(param.getName())){
              serverCredentials.setPassword((String)param.getValue());                 
                }else if(XMPPConstants.XMPP_SERVER_TYPE.equals(param.getName())){
              serverCredentials.setServerType((String)param.getValue());                 
                }
            }
        XMPPConnectionFactory xmppConnectionFactory = new XMPPConnectionFactory();
        xmppConnectionFactory.connect(serverCredentials);
       
        connectionFactories.put(serverCredentials.getAccountName() + "@"
            + serverCredentials.getServerUrl(), xmppConnectionFactory);          
        }
  }
View Full Code Here

Examples of org.apache.axis2.transport.xmpp.util.XMPPServerCredentials

     */ 
  public void init(ConfigurationContext confContext,
      TransportOutDescription transportOut) throws AxisFault {
    //if connection details are available from axis configuration
    //use those & connect to jabber server(s)
    serverCredentials = new XMPPServerCredentials();
    getConnectionDetailsFromAxisConfiguration(transportOut)
   
    defaultConnectionFactory = new XMPPConnectionFactory();
  }
View Full Code Here

Examples of org.apache.axis2.transport.xmpp.util.XMPPServerCredentials

            } catch (AxisFault axisFault) {
                log.error("Error reading parameters");
            }

            Iterator params = pi.getParameters().iterator();
            serverCredentials = new XMPPServerCredentials();
           
            while (params.hasNext()) {
                Parameter param = (Parameter) params.next();
                if(XMPPConstants.XMPP_SERVER_URL.equals(param.getName())){
              serverCredentials.setServerUrl((String)param.getValue());                 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.