private Phase getAddressingPhase(MessageContext context) { if (addressingPhase == null) { List<Phase> inFlowPhases = context.getConfigurationContext().getAxisConfiguration().getPhasesInfo() .getINPhases(); for (Phase p : inFlowPhases) { if (p.getName().equalsIgnoreCase("Addressing")) { addressingPhase = p; } } } return addressingPhase; }
private Phase getAddressingPhase(MessageContext context) { if (addressingPhase == null) { List<Phase> inFlowPhases = context.getConfigurationContext().getAxisConfiguration().getPhasesInfo() .getINPhases(); for (Phase p : inFlowPhases) { if (p.getName().equalsIgnoreCase("Addressing")) { addressingPhase = p; } } } return addressingPhase; }
private Phase getAddressingPhase(MessageContext context) { if (addressingPhase == null) { List<Phase> inFlowPhases = context.getConfigurationContext().getAxisConfiguration().getPhasesInfo() .getINPhases(); for (Phase p : inFlowPhases) { if (p.getName().equalsIgnoreCase("Addressing")) { addressingPhase = p; } } } return addressingPhase; }
private Phase getAddressingPhase(MessageContext context) { if (addressingPhase == null) { List<Phase> inFlowPhases = context.getConfigurationContext().getAxisConfiguration().getPhasesInfo() .getINPhases(); for (Phase p : inFlowPhases) { if (p.getName().equalsIgnoreCase("Addressing")) { addressingPhase = p; } } } return addressingPhase; }
public static void overrideAddressingPhaseHander(ConfigurationContext configContext, AddressingBasedDispatcher dispatcher) { List<Phase> inflowPhases = configContext.getAxisConfiguration().getPhasesInfo().getINPhases(); boolean foundFlag = false;
public static void overrideAddressingPhaseHander(ConfigurationContext configContext, AddressingBasedDispatcher dispatcher) { List<Phase> inflowPhases = configContext.getAxisConfiguration().getPhasesInfo().getINPhases(); boolean foundFlag = false;
/** * 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)); } } }
public Map<String, AxisService> buildAxisServices(DeploymentFileData deploymentFileData) throws DeploymentException { ArchiveReader archiveReader = new ArchiveReader(); Map<String, AxisService> wsdlservices = archiveReader.processWSDLs(deploymentFileData); if (wsdlservices != null && wsdlservices.size() > 0) { for (AxisService service : wsdlservices.values()) { Iterator<AxisOperation> operations = service.getOperations(); while (operations.hasNext()) { AxisOperation axisOperation = operations.next(); try { getConfigurationContext().getAxisConfiguration().getPhasesInfo() .setOperationPhases(axisOperation); } catch (AxisFault e) { throw new DeploymentException(e); } } } } return wsdlservices; } }
public Map<String, AxisService> buildAxisServices(DeploymentFileData deploymentFileData) throws DeploymentException { ArchiveReader archiveReader = new ArchiveReader(); Map<String, AxisService> wsdlservices = archiveReader.processWSDLs(deploymentFileData); if (wsdlservices != null && wsdlservices.size() > 0) { for (AxisService service : wsdlservices.values()) { Iterator<AxisOperation> operations = service.getOperations(); while (operations.hasNext()) { AxisOperation axisOperation = operations.next(); try { getConfigurationContext().getAxisConfiguration().getPhasesInfo() .setOperationPhases(axisOperation); } catch (AxisFault e) { throw new DeploymentException(e); } } } } return wsdlservices; } }
/** * 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)); } } }
while (operations.hasNext()) { AxisOperation axisOperation = operations.next(); axisConfiguration.getPhasesInfo().setOperationPhases(axisOperation);
/** * Checks whether the system pre-defined phases * for all the flows, have been changed. If they have been changed, throws a DeploymentException. * * @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()); }
axisConfiguration.getPhasesInfo().setOperationPhases(operation);
/** * Checks whether the system pre-defined phases * for all the flows, have been changed. If they have been changed, throws a DeploymentException. * * @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()); }
PhasesInfo info = axisConfig.getPhasesInfo(); try { info.setOperationPhases(op_descrip);
axisAnonSvcGroup.addService(axisAnonymousService); axisCfg.addServiceGroup(axisAnonSvcGroup); axisCfg.getPhasesInfo().setOperationPhases(outInAxisOperation); return axisAnonymousService;
axisAnonSvcGroup.addService(axisAnonymousService); axisCfg.addServiceGroup(axisAnonSvcGroup); axisCfg.getPhasesInfo().setOperationPhases(outInAxisOperation); return axisAnonymousService;
axisAnonSvcGroup.addService(axisAnonymousService); axisCfg.addServiceGroup(axisAnonSvcGroup); axisCfg.getPhasesInfo().setOperationPhases(dynamicOperation); return axisAnonymousService;
axisAnonSvcGroup.addService(axisAnonymousService); axisCfg.addServiceGroup(axisAnonSvcGroup); axisCfg.getPhasesInfo().setOperationPhases(dynamicOperation); return axisAnonymousService;
PhasesInfo pinfo = axisConfig.getPhasesInfo();