Package org.apache.axis2.deployment.util

Examples of org.apache.axis2.deployment.util.PhasesInfo


                    new QName(MODULEST));
            processOpeasrtionModuleRefs(modules, op_descrip);

            //setting Operation phase
            if (engine !=null) {
                PhasesInfo info = engine.getPhasesinfo();
                info.setOperationPhases(op_descrip);
            }

            Iterator moduleConfigs = operation.getChildrenWithName(new QName(MODULECONFIG));
            processOperationModuleConfig(moduleConfigs,op_descrip,op_descrip);
View Full Code Here


        res.sendRedirect(VIEW_SERVICE_HANDLERS_JSP_NAME);
    }

    private void listPhases(HttpServletRequest req, HttpServletResponse res) throws IOException {
        ArrayList phaselist = new ArrayList();
        PhasesInfo info = ((AxisConfigurationImpl) configContext.getAxisConfiguration()).getPhasesinfo();
        phaselist.add(info.getINPhases());
        phaselist.add(info.getIN_FaultPhases());
        phaselist.add(info.getOUTPhases());
        phaselist.add(info.getOUT_FaultPhases());

        phaselist.add(info.getOperationInPhases());
        phaselist.add(info.getOperationInFaultPhases());
        phaselist.add(info.getOperationOutPhases());
        phaselist.add(info.getOperationOutFaultPhases());
        req.getSession().setAttribute(Constants.PHASE_LIST, phaselist);
        res.sendRedirect(LIST_PHASES_JSP_NAME);
    }
View Full Code Here

            Iterator modules = operation.getChildrenWithName(
                    new QName(MODULEST));
            processOpeasrtionModuleRefs(modules, op_descrip);

            //setting Operation phase
            PhasesInfo info = engine.getPhasesinfo();
            info.setOperationPhases(op_descrip);

            //adding the opeartion
            operations.add(op_descrip);
        }
        return operations;
View Full Code Here

    /**
     * To process all the phase orders which are defined in axis2.xml
     * @param phaserders
     */
    private void processPhaseOrders(Iterator phaserders){
        PhasesInfo info = engine.getPhasesinfo();
        while (phaserders.hasNext()) {
            OMElement phaseOrders = (OMElement) phaserders.next();
            String flowType = phaseOrders.getAttribute(new QName(TYPE)).getValue();
            if(INFLOWST.equals(flowType)){
                info.setINPhases(getPhaseList(phaseOrders));
            }   else if (IN_FAILTFLOW.equals(flowType)){
                info.setIN_FaultPhases(getPhaseList(phaseOrders));
            }   else if (OUTFLOWST.equals(flowType)){
                info.setOUTPhases(getPhaseList(phaseOrders));
            }   else if (OUT_FAILTFLOW.equals(flowType)){
                info.setOUT_FaultPhases(getPhaseList(phaseOrders));
            }

        }
    }
View Full Code Here

        QName assumedServiceName = new QName("AnonymousService");
        ServiceDescription axisService = new ServiceDescription(assumedServiceName);
        operationTemplate = new OperationDescription(new QName("TemplateOperation"));
//        ServiceGroupDescription serviceGroupDescription = new ServiceGroupDescription(sysContext.getAxisConfiguration());

        PhasesInfo info =((AxisConfigurationImpl)sysContext.getAxisConfiguration()).getPhasesinfo();
        //to set the operation flows
        if(info != null){
            info.setOperationPhases(operationTemplate);
        }
        axisService.addOperation(operationTemplate);
        sysContext.getAxisConfiguration().addService(axisService);
//        serviceGroupDescription.addService(axisService);
//        serviceGroupDescription.getServiceGroupContext(sysContext);
View Full Code Here

            if (policyRefElements != null && policyRefElements.hasNext()) {
                processPolicyRefElements(policyRefElements, module.getPolicySubject());
            }

            // setting Operation phase
            PhasesInfo info = axisConfig.getPhasesInfo();
            try {
                info.setOperationPhases(op_descrip);
            } catch (AxisFault axisFault) {
                throw new DeploymentException(axisFault);
            }
           
View Full Code Here

                    }
                });
        serviceClassLoader = systemClassLoader;
        moduleClassLoader = systemClassLoader;

        this.phasesinfo = new PhasesInfo();
        targetResolvers = new ArrayList<TargetResolver>();
    }
View Full Code Here

     *
     * @throws org.apache.axis2.deployment.DeploymentException
     *
     */
    public void validateSystemPredefinedPhases() throws DeploymentException {
        PhasesInfo phasesInfo = getPhasesInfo();
        setInPhasesUptoAndIncludingPostDispatch(phasesInfo.getGlobalInflow());
        setInFaultPhases(phasesInfo.getGlobalInFaultPhases());
        setGlobalOutPhase(phasesInfo.getGlobalOutPhaseList());
        setOutFaultPhases(phasesInfo.getOUT_FaultPhases());
    }
View Full Code Here

    }
    if (targetNamespace != null && !"".equals(targetNamespace)) {
      axisService.setTargetNamespace(targetNamespace);
    }
    Method[] method = schemaGenerator.getMethods();
    PhasesInfo pinfo = axisConfiguration.getPhasesInfo();
    for (int i = 0; i < method.length; i++) {
      Method jmethod = method[i];
      AxisOperation operation = axisService.getOperation(new QName(
          jmethod.getName()));
      String mep = operation.getMessageExchangePattern();
      MessageReceiver mr;
      if (messageReceiverClassMap != null) {

        if (messageReceiverClassMap.get(mep) != null) {
          Object obj = messageReceiverClassMap.get(mep);
          if (obj instanceof MessageReceiver) {
            mr = (MessageReceiver) obj;
            operation.setMessageReceiver(mr);
          } else {
            log
                .error("Object is not an instance of MessageReceiver, thus, default MessageReceiver has been set");
            mr = axisConfiguration.getMessageReceiver(operation
                .getMessageExchangePattern());
            operation.setMessageReceiver(mr);
          }
        } else {
          log
              .error("Required MessageReceiver couldn't be found, thus, default MessageReceiver has been used");
          mr = axisConfiguration.getMessageReceiver(operation
              .getMessageExchangePattern());
          operation.setMessageReceiver(mr);
        }
      } else {
        log
            .error("MessageRecevierClassMap couldn't be found, thus, default MessageReceiver has been used");
        mr = axisConfiguration.getMessageReceiver(operation
            .getMessageExchangePattern());
        operation.setMessageReceiver(mr);
      }
      pinfo.setOperationPhases(operation);
      axisService.addOperation(operation);
    }

    String endpointName = axisService.getEndpointName();
    if ((endpointName == null || endpointName.length() == 0)
View Full Code Here

     * Processes all the phase orders which are defined in axis2.xml.
     *
     * @param phaserders
     */
    private void processPhaseOrders(Iterator phaserders) throws DeploymentException {
        PhasesInfo info = axisConfig.getPhasesInfo();

        while (phaserders.hasNext()) {
            OMElement phaseOrders = (OMElement) phaserders.next();
            String flowType = phaseOrders.getAttribute(new QName(TAG_TYPE)).getAttributeValue();

            if (TAG_FLOW_IN.equals(flowType)) {
                info.setINPhases(processPhaseList(phaseOrders));
            } else if (TAG_FLOW_IN_FAULT.equals(flowType)) {
                info.setIN_FaultPhases(processPhaseList(phaseOrders));
            } else if (TAG_FLOW_OUT.equals(flowType)) {
                info.setOUTPhases(processPhaseList(phaseOrders));
            } else if (TAG_FLOW_OUT_FAULT.equals(flowType)) {
                info.setOUT_FaultPhases(processPhaseList(phaseOrders));
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.axis2.deployment.util.PhasesInfo

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.