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; }
public boolean isPolicyUpdated() { // AxisMessage if (getPolicySubject().getLastUpdatedTime().after( lastPolicyCalculatedTime)) { return true; } // AxisOperation AxisOperation axisOperation = (AxisOperation) parent; if (axisOperation != null && axisOperation.getPolicySubject().getLastUpdatedTime().after( lastPolicyCalculatedTime)) { return true; } // AxisService AxisService axisService = (axisOperation == null) ? null : axisOperation.getAxisService(); if (axisService != null && axisService.getPolicySubject().getLastUpdatedTime().after( lastPolicyCalculatedTime)) { return true; } // AxisConfiguration AxisConfiguration axisConfiguration = (axisService == null) ? null : axisService.getAxisConfiguration(); return axisConfiguration != null && axisConfiguration.getPolicySubject().getLastUpdatedTime() .after(lastPolicyCalculatedTime); } }
/** * This is called when a module is engaged on this operation. Handle operation-specific tasks. * * @param axisModule AxisModule being engaged * @param engager the AxisDescription where the engage occurred - could be us or a parent * @throws AxisFault */ public final void onEngage(AxisModule axisModule, AxisDescription engager) throws AxisFault { // Am I the source of this engagement? boolean selfEngaged = (engager == this); // If I'm not, the operations will already have been added by someone above, so don't // do it again. if (selfEngaged) { AxisService service = getAxisService(); if (service != null) { service.addModuleOperations(axisModule); } } AxisConfiguration axisConfig = getAxisConfiguration(); PhaseResolver phaseResolver = new PhaseResolver(axisConfig); phaseResolver.engageModuleToOperation(this, axisModule); }
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(); while (moduleOperations_itr.hasNext()) { AxisOperation operation = moduleOperations_itr.next(); service.removeOperation(operation.getName()); } } }
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; }
/** * This is called when a module is engaged on this operation. Handle operation-specific tasks. * * @param axisModule AxisModule being engaged * @param engager the AxisDescription where the engage occurred - could be us or a parent * @throws AxisFault */ public final void onEngage(AxisModule axisModule, AxisDescription engager) throws AxisFault { // Am I the source of this engagement? boolean selfEngaged = (engager == this); // If I'm not, the operations will already have been added by someone above, so don't // do it again. if (selfEngaged) { AxisService service = getAxisService(); if (service != null) { service.addModuleOperations(axisModule); } } AxisConfiguration axisConfig = getAxisConfiguration(); PhaseResolver phaseResolver = new PhaseResolver(axisConfig); phaseResolver.engageModuleToOperation(this, axisModule); }
public boolean isPolicyUpdated() { // AxisMessage if (getPolicySubject().getLastUpdatedTime().after( lastPolicyCalculatedTime)) { return true; } // AxisOperation AxisOperation axisOperation = (AxisOperation) parent; if (axisOperation != null && axisOperation.getPolicySubject().getLastUpdatedTime().after( lastPolicyCalculatedTime)) { return true; } // AxisService AxisService axisService = (axisOperation == null) ? null : axisOperation.getAxisService(); if (axisService != null && axisService.getPolicySubject().getLastUpdatedTime().after( lastPolicyCalculatedTime)) { return true; } // AxisConfiguration AxisConfiguration axisConfiguration = (axisService == null) ? null : axisService.getAxisConfiguration(); return axisConfiguration != null && axisConfiguration.getPolicySubject().getLastUpdatedTime() .after(lastPolicyCalculatedTime); } }
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(); while (moduleOperations_itr.hasNext()) { AxisOperation operation = moduleOperations_itr.next(); service.removeOperation(operation.getName()); } } }
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; }
msgContext.setAxisService(axisOperation.getAxisService());
AxisService axisService = axisMessage.getAxisOperation().getAxisService(); for (XmlSchema schema : axisService.getSchema()) { schemaType = getSchemaType(schema, schemaTypeQname);
AxisService axisService = message.getAxisOperation().getAxisService(); ArrayList schemasList = axisService.getSchema();
AxisService axisService = axisMessage.getAxisOperation().getAxisService(); for (XmlSchema schema : axisService.getSchema()) { schemaType = getSchemaType(schema, schemaTypeQname);
: axisOperation.getAxisService(); if (axisService != null) { policyList.addAll(axisService.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; } }
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; } }
AxisService axisService = message.getAxisOperation().getAxisService(); for (XmlSchema schema : axisService.getSchema()) { schemaType = getSchemaType(schema, schemaTypeQname);
AxisOperation axisOperation = axisMessage.getAxisOperation(); if (axisOperation != null) { AxisService axisService = axisOperation.getAxisService(); if (axisService != null) { if (axisService.getEndpointName() != null) {
AxisOperation axisOperation = axisMessage.getAxisOperation(); if (axisOperation != null) { AxisService axisService = axisOperation.getAxisService(); if (axisService != null) { if (axisService.getEndpointName() != null) {