Package org.apache.axis2.description

Examples of org.apache.axis2.description.ParameterIncludeImpl


     * @param parameter the axis2.xml 'Parameter' that defined the JMS CF
     */
    public JMSConnectionFactory(Parameter parameter) {

        this.name = parameter.getName();
        ParameterIncludeImpl pi = new ParameterIncludeImpl();

        try {
            pi.deserializeParameters(parameter.getParameterElement());
        } catch (AxisFault axisFault) {
            handleException("Error reading parameters for JMS connection factory" + name, axisFault);
        }

        for (Object o : pi.getParameters()) {
            Parameter p = (Parameter) o;
            parameters.put(p.getName(), (String) p.getValue());
        }

        digestCacheLevel();
View Full Code Here


    private void initializeConnectionFactories(TransportInDescription transportIn) throws AxisFault{     
        Iterator serversToListenOn = transportIn.getParameters().iterator();
        while (serversToListenOn.hasNext()) {
            Parameter connection = (Parameter) serversToListenOn.next();
            log.info("Trying to establish connection for : "+connection.getName());
            ParameterIncludeImpl pi = new ParameterIncludeImpl();
            try {
                pi.deserializeParameters((OMElement) connection.getValue());
            } 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())){
View Full Code Here

    ParameterInclude parameterimpl;

    // The initilization code will go here
    public void init(AxisConfiguration axisConfig) {
         parameterimpl = new ParameterIncludeImpl();
    }
View Full Code Here

     * @param jmsConFactory the JMS connection factory to which the parameters should be applied
     */
    public static void setConnectionFactoryParameters(
        Parameter param, JMSConnectionFactory jmsConFactory) {

        ParameterIncludeImpl pi = new ParameterIncludeImpl();
        try {
            pi.deserializeParameters((OMElement) param.getValue());
        } catch (AxisFault axisFault) {
            log.error("Error reading parameters for JMS connection factory" +
                jmsConFactory.getName(), axisFault);
        }

        Iterator params = pi.getParameters().iterator();
        while (params.hasNext()) {

            Parameter p = (Parameter) params.next();

            if (JMSConstants.CONFAC_TYPE.equals(p.getName())) {
View Full Code Here

     * @param service the Axis Service
     * @return the name of the JMS destination
     */
    public static List<AMQPBinding> getBindingsForService(AxisService service) {
        Parameter bindingsParam = service.getParameter(AMQPConstants.BINDINGS_PARAM);
        ParameterIncludeImpl pi = new ParameterIncludeImpl();
        try {
            pi.deserializeParameters((OMElement) bindingsParam.getValue());
        } catch (AxisFault axisFault) {
            log.error("Error reading parameters for AMQP binding definitions" +
                    bindingsParam.getName(), axisFault);
        }

        Iterator params = pi.getParameters().iterator();
        ArrayList<AMQPBinding> list = new ArrayList<AMQPBinding>();
        if(params.hasNext())
        {
            while (params.hasNext())
            {
View Full Code Here

        Iterator conIter = transprtIn.getParameters().iterator();

        while (conIter.hasNext()) {
            Parameter conParams = (Parameter) conIter.next();

            ParameterIncludeImpl pi = new ParameterIncludeImpl();
            AMQPConnection conDef = new AMQPConnection();
            try {
                pi.deserializeParameters((OMElement) conParams.getValue());
            } catch (AxisFault axisFault) {
                log.error("Error reading parameters for AMQP Connection definitions" +
                        conParams.getName(), axisFault);
            }
            conDef.setName((String)conParams.getValue());

            Iterator params = pi.getParameters().iterator();
            while (params.hasNext()) {

                Parameter p = (Parameter) params.next();

                if (AMQPConstants.CONNECTION_URL_PARAM.equals(p.getName())) {
View Full Code Here

    ParameterInclude parameterimpl;

    // The initilization code will go here
    public void init(AxisConfiguration axisConfig) {
        parameterimpl = new ParameterIncludeImpl();
    }
View Full Code Here

        //  server and it is needed to call it from synapse using the main sequence
        //  2) request is to be injected into  the main sequence  .i.e. http://localhost:8280
        // This method does not cause any performance issue ...
        // Proper fix should be refractoring axis2 RestUtil in a proper way
        if (dispatching) {
            RequestURIBasedDispatcher requestDispatcher = new RequestURIBasedDispatcher();
            AxisService axisService = requestDispatcher.findService(msgContext);
            if (axisService == null) {
                String defaultSvcName = NHttpConfiguration.getInstance().getStringValue(
                        "nhttp.default.service", "__SynapseService");
                axisService = msgContext.getConfigurationContext()
                        .getAxisConfiguration().getService(defaultSvcName);
View Full Code Here

                String serverName = (String)
                        messageContext.getProperty(SynapseConstants.Axis2Param.SYNAPSE_SERVER_NAME);

                if(serverName != null && messageContext instanceof Axis2MessageContext) {

                    AxisConfiguration configuration = ((Axis2MessageContext)messageContext).
                            getAxis2MessageContext().
                            getConfigurationContext().getAxisConfiguration();

                    String myServerName = getAxis2ParameterValue(configuration,
                            SynapseConstants.Axis2Param.SYNAPSE_SERVER_NAME);
View Full Code Here

    /**
     * Start the proxy service
     * @param synCfg the synapse configuration
     */
    public void start(SynapseConfiguration synCfg) {
        AxisConfiguration axisConfig = synCfg.getAxisConfiguration();
        if (axisConfig != null) {

            Parameter param = axisConfig.getParameter(SynapseConstants.SYNAPSE_ENV);
            if (param != null && param.getValue() instanceof SynapseEnvironment)  {
                SynapseEnvironment env = (SynapseEnvironment) param.getValue();
                if (targetInLineInSequence != null) {
                    targetInLineInSequence.init(env);
                }
                if (targetInLineOutSequence != null) {
                    targetInLineOutSequence.init(env);
                }
                if (targetInLineFaultSequence != null) {
                    targetInLineFaultSequence.init(env);
                }
            } else {
                auditWarn("Unable to find the SynapseEnvironment. " +
                    "Components of the proxy service may not be initialized");
            }

            AxisService as = axisConfig.getServiceForActivation(this.getName());
            as.setActive(true);
            axisConfig.notifyObservers(new AxisEvent(AxisEvent.SERVICE_START, as), as);
            this.setRunning(true);
            auditInfo("Started the proxy service : " + name);
        } else {
            auditWarn("Unable to start proxy service : " + name +
                ". Couldn't access Axis configuration");
View Full Code Here

TOP

Related Classes of org.apache.axis2.description.ParameterIncludeImpl

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.