Package org.apache.axis2.phaseresolver

Examples of org.apache.axis2.phaseresolver.PhaseResolver


     * @throws AxisFault if a problem occurs
     */
    void addModuleOperations(AxisModule module) throws AxisFault {
        HashMap map = module.getOperations();
        Collection col = map.values();
        PhaseResolver phaseResolver = new PhaseResolver(getAxisConfiguration());
        for (Iterator iterator = col.iterator(); iterator.hasNext();) {
            AxisOperation axisOperation = copyOperation((AxisOperation) iterator.next());
            if (this.getOperation(axisOperation.getName()) == null) {
                ArrayList wsamappings = axisOperation.getWSAMappingList();
                if (wsamappings != null) {
                    for (int j = 0, size = wsamappings.size(); j < size; j++) {
                        String mapping = (String) wsamappings.get(j);
                        mapActionToOperation(mapping, axisOperation);
                    }
                }
                // If we've set the "expose" parameter for this operation, it's normal (non-
                // control) and therefore it will appear in generated WSDL.  If we haven't,
                // it's a control operation and will be ignored at WSDL-gen time.
                if (axisOperation.isParameterTrue(DeploymentConstants.TAG_EXPOSE)) {
                    axisOperation.setControlOperation(false);
                } else {
                    axisOperation.setControlOperation(true);
                }

                phaseResolver.engageModuleToOperation(axisOperation, module);

                this.addOperation(axisOperation);
            }
        }
    }
View Full Code Here


            AxisOperation axisOperation = (AxisOperation) operations.next();
            axisOperation.disengageModule(module);
        }
        AxisConfiguration config = getAxisConfiguration();
        if (!config.isEngaged(module.getName())) {
            PhaseResolver phaseResolver = new PhaseResolver(config);
            phaseResolver.disengageModuleFromGlobalChains(module);
        }
    }
View Full Code Here

     * belonging to this module from all the handler chains.
     *
     * @param module module to disengage
     */
    public void onDisengage(AxisModule module) throws AxisFault {
        PhaseResolver phaseResolver = new PhaseResolver(this);
        phaseResolver.disengageModuleFromGlobalChains(module);

        Iterator serviceGroups = getServiceGroups();
        while (serviceGroups.hasNext()) {
            AxisServiceGroup axisServiceGroup = (AxisServiceGroup) serviceGroups.next();
            axisServiceGroup.disengageModule(module);
View Full Code Here

   *             if a problem occurs
   */
  void addModuleOperations(AxisModule module) throws AxisFault {
    HashMap<QName, AxisOperation> map = module.getOperations();
    Collection<AxisOperation> col = map.values();
    PhaseResolver phaseResolver = new PhaseResolver(getAxisConfiguration());
    for (Iterator<AxisOperation> iterator = col.iterator(); iterator.hasNext();) {
      AxisOperation axisOperation = copyOperation((AxisOperation) iterator
          .next());
      if (this.getOperation(axisOperation.getName()) == null) {
        ArrayList<String> wsamappings = axisOperation.getWSAMappingList();
        if (wsamappings != null) {
          for (int j = 0, size = wsamappings.size(); j < size; j++) {
            String mapping = (String) wsamappings.get(j);
            mapActionToOperation(mapping, axisOperation);
          }
        }
        // If we've set the "expose" parameter for this operation, it's
        // normal (non-
        // control) and therefore it will appear in generated WSDL. If
        // we haven't,
        // it's a control operation and will be ignored at WSDL-gen
        // time.
        if (axisOperation
            .isParameterTrue(DeploymentConstants.TAG_EXPOSE)) {
          axisOperation.setControlOperation(false);
        } else {
          axisOperation.setControlOperation(true);
        }

        phaseResolver.engageModuleToOperation(axisOperation, module);

        this.addOperation(axisOperation);
      }
    }
  }
View Full Code Here

      AxisOperation axisOperation = (AxisOperation) operations.next();
      axisOperation.disengageModule(module);
    }
    AxisConfiguration config = getAxisConfiguration();
    if (!config.isEngaged(module.getName())) {
      PhaseResolver phaseResolver = new PhaseResolver(config);
      phaseResolver.disengageModuleFromGlobalChains(module);
    }
  }
View Full Code Here

            if (service != null) {
                service.addModuleOperations(axisModule);
            }
        }
        AxisConfiguration axisConfig = getAxisConfiguration();
        PhaseResolver phaseResolver = new PhaseResolver(axisConfig);
        phaseResolver.engageModuleToOperation(this, axisModule);
    }
View Full Code Here

    protected void onDisengage(AxisModule module) {
        AxisService service = getAxisService();
        if (service == null) return;

        AxisConfiguration axisConfiguration = service.getAxisConfiguration();
        PhaseResolver phaseResolver = new PhaseResolver(axisConfiguration);
        if (!service.isEngaged(module.getName()) &&
            (axisConfiguration != null && !axisConfiguration.isEngaged(module.getName()))) {
            phaseResolver.disengageModuleFromGlobalChains(module);
        }
        phaseResolver.disengageModuleFromOperationChain(module, this);

        //removing operations added at the time of module engagemnt
        HashMap<QName, AxisOperation> moduleOperations = module.getOperations();
        if (moduleOperations != null) {
            Iterator<AxisOperation> moduleOperations_itr = moduleOperations.values().iterator();
View Full Code Here

     * @param axisModule AxisModule to engage
     * @param engager
     * @throws AxisFault something went wrong
     */
    public void onEngage(AxisModule axisModule, AxisDescription engager) throws AxisFault {
        PhaseResolver phaseResolver = new PhaseResolver(getAxisConfiguration());
        phaseResolver.engageModuleToMessage(this, axisModule);
    }
View Full Code Here

     * belonging to this module from all the handler chains.
     *
     * @param module module to disengage
     */
    public void onDisengage(AxisModule module) throws AxisFault {
        PhaseResolver phaseResolver = new PhaseResolver(this);
        phaseResolver.disengageModuleFromGlobalChains(module);

        Iterator<AxisServiceGroup> serviceGroups = getServiceGroups();
        while (serviceGroups.hasNext()) {
            AxisServiceGroup axisServiceGroup = (AxisServiceGroup) serviceGroups.next();
            axisServiceGroup.disengageModule(module);
View Full Code Here

     * @param axisModule AxisModule to engage
     * @param engager
     * @throws AxisFault something went wrong
     */
    public void onEngage(AxisModule axisModule, AxisDescription engager) throws AxisFault {
        PhaseResolver phaseResolver = new PhaseResolver(getAxisConfiguration());
        phaseResolver.engageModuleToMessage(this, axisModule);
    }
View Full Code Here

TOP

Related Classes of org.apache.axis2.phaseresolver.PhaseResolver

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.