Package org.apache.axis2.transport.xmpp.util

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


            String contentTypeStr = contentType != null ?
                    contentType.getValue() : inferContentType();

            boolean eprFound = false;
            if (endpointsConfiguration != null) {
                URLEndpoint epr = endpointsConfiguration.getEndpoint(request.getRequestLine().getUri());
                if (epr != null) {
                    eprFound = true;
                    String type = TransportUtils.getContentType(contentTypeStr, msgContext);
                    msgContext.setProperty(Constants.Configuration.MESSAGE_TYPE, type);

                    epr.setParameters(msgContext);

                    Builder builder = epr.getBuilder(type);
                    RESTUtil.processGetAndDeleteRequest(
                            msgContext, os, request.getRequestLine().getUri(),
                            request.getFirstHeader(HTTP.CONTENT_TYPE), builder,
                            method, isRestDispatching);
                }
View Full Code Here


        params = getListenerParameters();


        param = transportIn.getParameter(NhttpConstants.ENDPOINTS_CONFIGURATION);
        if (param != null && param.getValue() != null) {
            endpoints = new URLEndpointsConfigurationFactory().create(param.getValue().toString());
        }
    }
View Full Code Here

     */ 
  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

            } 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

     */ 
  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

     */ 
  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

  /**
   * 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

            } 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

     */ 
  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

            } 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

Related Classes of org.apache.axis2.transport.xmpp.util.XMPPServerCredentials

Copyright © 2018 www.massapicom. 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.