public void engageModuleToMessage(AxisMessage axisMessage, AxisModule axisModule) throws PhaseException { String direction = axisMessage.getDirection(); AxisOperation axisOperation = axisMessage.getAxisOperation(); if (WSDLConstants.MESSAGE_LABEL_OUT_VALUE.equalsIgnoreCase(direction)) { engageModuleToOperation(axisOperation, axisModule, PhaseMetadata.OUT_FLOW); } else if (WSDLConstants.MESSAGE_LABEL_IN_VALUE.equalsIgnoreCase(direction)) { engageModuleToOperation(axisOperation, axisModule, PhaseMetadata.IN_FLOW); } else if (WSDLConstants.MESSAGE_LABEL_FAULT_VALUE.equals(direction)) { //TODO : Need to handle fault correctly } } }
public void engageModuleToMessage(AxisMessage axisMessage, AxisModule axisModule) throws PhaseException { String direction = axisMessage.getDirection(); AxisOperation axisOperation = axisMessage.getAxisOperation(); if (WSDLConstants.MESSAGE_LABEL_OUT_VALUE.equalsIgnoreCase(direction)) { engageModuleToOperation(axisOperation, axisModule, PhaseMetadata.OUT_FLOW); } else if (WSDLConstants.MESSAGE_LABEL_IN_VALUE.equalsIgnoreCase(direction)) { engageModuleToOperation(axisOperation, axisModule, PhaseMetadata.IN_FLOW); } else if (WSDLConstants.MESSAGE_LABEL_FAULT_VALUE.equals(direction)) { //TODO : Need to handle fault correctly } } }
public XmlSchemaElement getSchemaElement() { XmlSchemaElement xmlSchemaElement = null; AxisService service = getAxisOperation().getAxisService(); ArrayList schemas = service.getSchema(); for (Object schema : schemas) { xmlSchemaElement = getSchemaElement((XmlSchema)schema); if (xmlSchemaElement != null) { break; } } return xmlSchemaElement; }
public XmlSchemaElement getSchemaElement() { XmlSchemaElement xmlSchemaElement = null; AxisService service = getAxisOperation().getAxisService(); ArrayList schemas = service.getSchema(); for (Object schema : schemas) { xmlSchemaElement = getSchemaElement((XmlSchema)schema); if (xmlSchemaElement != null) { break; } } return xmlSchemaElement; }
private void processAttributes(XmlSchemaComplexType complexType, AxisMessage message, List partNameList, String qnameSuffix) { QName opName = message.getAxisOperation().getName(); XmlSchemaAttribute xmlSchemaAttribute; for (XmlSchemaObject item : complexType.getAttributes()) { if (item instanceof XmlSchemaAttribute) { xmlSchemaAttribute = (XmlSchemaAttribute) item; String partName = xmlSchemaAttribute.getName(); partNameList.add( WSDLUtil.getPartQName(opName.getLocalPart(), qnameSuffix, partName)); } } }
public Policy calculateEffectivePolicy() { PolicySubject policySubject; Collection<PolicyComponent> policyList = new ArrayList<PolicyComponent>(); // AxisMessage policySubject = getPolicySubject(); policyList.addAll(policySubject.getAttachedPolicyComponents()); // AxisOperation AxisOperation axisOperation = getAxisOperation(); if (axisOperation != null) { policyList.addAll(axisOperation.getPolicySubject() .getAttachedPolicyComponents()); } // AxisService AxisService axisService = (axisOperation == null) ? null : axisOperation.getAxisService(); if (axisService != null) { policyList.addAll(axisService.getPolicySubject() .getAttachedPolicyComponents()); } // AxisConfiguration AxisConfiguration axisConfiguration = (axisService == null) ? null : axisService.getAxisConfiguration(); if (axisConfiguration != null) { policyList.addAll(axisConfiguration.getPolicySubject() .getAttachedPolicyComponents()); } Policy result = PolicyUtil.getMergedPolicy(policyList, axisService); return result; }
public Policy calculateEffectivePolicy() { PolicySubject policySubject; Collection<PolicyComponent> policyList = new ArrayList<PolicyComponent>(); // AxisMessage policySubject = getPolicySubject(); policyList.addAll(policySubject.getAttachedPolicyComponents()); // AxisOperation AxisOperation axisOperation = getAxisOperation(); if (axisOperation != null) { policyList.addAll(axisOperation.getPolicySubject() .getAttachedPolicyComponents()); } // AxisService AxisService axisService = (axisOperation == null) ? null : axisOperation.getAxisService(); if (axisService != null) { policyList.addAll(axisService.getPolicySubject() .getAttachedPolicyComponents()); } // AxisConfiguration AxisConfiguration axisConfiguration = (axisService == null) ? null : axisService.getAxisConfiguration(); if (axisConfiguration != null) { policyList.addAll(axisConfiguration.getPolicySubject() .getAttachedPolicyComponents()); } Policy result = PolicyUtil.getMergedPolicy(policyList, axisService); return result; }
AxisService axisService = message.getAxisOperation().getAxisService(); ArrayList schemasList = axisService.getSchema();
AxisService axisService = axisMessage.getAxisOperation().getAxisService(); for (XmlSchema schema : axisService.getSchema()) { schemaType = getSchemaType(schema, schemaTypeQname);
AxisService axisService = axisMessage.getAxisOperation().getAxisService(); for (XmlSchema schema : axisService.getSchema()) { schemaType = getSchemaType(schema, schemaTypeQname);
: axisMessage.getAxisOperation(); if (axisOperation != null) { policyList.addAll(axisOperation.getPolicySubject()
private AxisDescription getUpperLevel(short type, AxisDescription thisLevel) { switch (type) { case AXIS_BINDING_MESSAGE: return ((AxisBindingMessage) thisLevel).getAxisBindingOperation(); case AXIS_BINDING_OPERATION: return ((AxisBindingOperation) thisLevel).getAxisBinding(); case AXIS_BINDING: return ((AxisBinding) thisLevel).getAxisEndpoint(); case AXIS_ENDPOINT: return ((AxisEndpoint) thisLevel).getAxisService(); case AXIS_MESSAGE: return ((AxisMessage) thisLevel).getAxisOperation(); case AXIS_OPERATION: return ((AxisOperation) thisLevel).getAxisService(); case AXIS_SERVICE: return ((AxisService) thisLevel).getAxisServiceGroup(); case AXIS_SERVICE_GROUP: return ((AxisServiceGroup) thisLevel).getAxisConfiguration(); default: return null; } }
: axisMessage.getAxisOperation(); if (axisOperation != null) { policyList.addAll(axisOperation.getPolicySubject()
private AxisDescription getUpperLevel(short type, AxisDescription thisLevel) { switch (type) { case AXIS_BINDING_MESSAGE: return ((AxisBindingMessage) thisLevel).getAxisBindingOperation(); case AXIS_BINDING_OPERATION: return ((AxisBindingOperation) thisLevel).getAxisBinding(); case AXIS_BINDING: return ((AxisBinding) thisLevel).getAxisEndpoint(); case AXIS_ENDPOINT: return ((AxisEndpoint) thisLevel).getAxisService(); case AXIS_MESSAGE: return ((AxisMessage) thisLevel).getAxisOperation(); case AXIS_OPERATION: return ((AxisOperation) thisLevel).getAxisService(); case AXIS_SERVICE: return ((AxisService) thisLevel).getAxisServiceGroup(); case AXIS_SERVICE_GROUP: return ((AxisServiceGroup) thisLevel).getAxisConfiguration(); default: return null; } }
: axisMessage.getAxisOperation(); if (axisOperation != null && axisOperation.getPolicySubject().getLastUpdatedTime().after(
: axisMessage.getAxisOperation(); if (axisOperation != null && axisOperation.getPolicySubject().getLastUpdatedTime().after(
AxisService axisService = message.getAxisOperation().getAxisService(); for (XmlSchema schema : axisService.getSchema()) { schemaType = getSchemaType(schema, schemaTypeQname);
AxisService axisService = message.getAxisOperation().getAxisService(); for (XmlSchema schema : axisService.getSchema()) { schemaType = getSchemaType(schema, schemaTypeQname);
private Policy getApplicablePolicy(AxisDescription axisDescription) { if (axisDescription instanceof AxisMessage) { AxisMessage axisMessage = (AxisMessage)axisDescription; AxisOperation axisOperation = axisMessage.getAxisOperation(); if (axisOperation != null) { AxisService axisService = axisOperation.getAxisService();
private Policy getApplicablePolicy(AxisDescription axisDescription) { if (axisDescription instanceof AxisMessage) { AxisMessage axisMessage = (AxisMessage)axisDescription; AxisOperation axisOperation = axisMessage.getAxisOperation(); if (axisOperation != null) { AxisService axisService = axisOperation.getAxisService();