public boolean checkCompatibility(InterfaceContract source, InterfaceContract target, Compatibility compatibility, boolean ignoreCallback, boolean silent) throws IncompatibleInterfaceContractException { // create dummy audit object. Audit audit = new Audit(); return checkCompatibility(source, target, compatibility, ignoreCallback, silent, audit); }
matchAudit.append("Match because there is no interface contract on the reference "); matchAudit.appendSeperator(); return true; matchAudit.appendSeperator(); return true; (endpointContract.getNormalizedWSDLContract() != null && endpointContract.getNormalizedWSDLContract().getInterface().getOperations().size() == 0)){ matchAudit.append("Match because the endpoint is remote and we don't have a copy of it's interface contract "); matchAudit.appendSeperator(); return true; matchAudit.append("Match failed because the interface contract mapper failed "); } else { matchAudit.append("Match because the interface contract mapper succeeded "); matchAudit.appendSeperator();
if (!silent) { audit.append("Remotable settings do not match: "+ source + "," + target); // TODO see if serialization is sufficient audit.appendSeperator(); throw new IncompatibleInterfaceContractException( "Remotable settings do not match", source, target); if (!silent) { audit.append("Operation " + operation.getName()+ " not found on target"); audit.appendSeperator(); throw new IncompatibleInterfaceContractException( "Operation " + operation.getName() audit = new Audit(); if (!isCompatible(operation, targetOperation, Compatibility.SUBSET, true, audit)) { audit.append("Operations called " + operation.getName()+ " are not compatible"); audit.appendSeperator(); throw new IncompatibleInterfaceContractException( "Operations called " + operation.getName()
if (source == null || target == null) { if (audit != null){ audit.append("One of either the source or target data types is null for");
private void processUnknownEndpoint(EndpointReference endpointReference, Audit matchAudit){ Binding b = null; if (unknownEndpointHandler != null) { b = unknownEndpointHandler.handleUnknownEndpoint(endpointReference); } if (b != null) { Endpoint matchedEndpoint = new RuntimeEndpointImpl(extensionPoints); matchedEndpoint.setBinding(b); matchedEndpoint.setRemote(true); endpointReference.setTargetEndpoint(matchedEndpoint); endpointReference.setBinding(b); endpointReference.setUnresolved(false); endpointReference.setStatus(EndpointReference.Status.WIRED_TARGET_FOUND_AND_MATCHED); matchAudit.append("Match because the UnknownEndpointHandler provided a binding: " + b.getType() + " uri: " + b.getURI()); matchAudit.appendSeperator(); } }
if (!silent) { audit.append("Remotable settings do not match: "+ source + "," + target); // TODO see if serialization is sufficient audit.appendSeperator(); throw new IncompatibleInterfaceContractException( "Remotable settings do not match", source, target); if (!silent) { audit.append("Operation " + operation.getName()+ " not found on target"); audit.appendSeperator(); throw new IncompatibleInterfaceContractException( "Operation " + operation.getName() audit = new Audit(); if (!isCompatible(operation, targetOperation, Compatibility.SUBSET, true, audit)) { audit.append("Operations called " + operation.getName()+ " are not compatible"); audit.appendSeperator(); throw new IncompatibleInterfaceContractException( "Operations called " + operation.getName()
if (source == null || target == null) { if (audit != null){ audit.append("One of either the source or target data types is null for");
audit.append("Callback interface doesn't match as one of the callback interfaces is null"); audit.appendSeperator(); throw new IncompatibleInterfaceContractException("Callback interface doesn't match as one of the callback interfaces is null", source, target); } else { if (!silent) { audit.append("Callback operation not found on target " + operation.getName()); audit.appendSeperator(); throw new IncompatibleInterfaceContractException("Callback operation not found on target", source, target, null, targetOperation); if (!silent) { audit.append("Target callback operation is not compatible " + operation.getName()); audit.appendSeperator(); throw new IncompatibleInterfaceContractException("Target callback operation is not compatible", source, target, operation, targetOperation);
public boolean checkCompatibility(InterfaceContract source, InterfaceContract target, Compatibility compatibility, boolean ignoreCallback, boolean silent) throws IncompatibleInterfaceContractException { // create dummy audit object. Audit audit = new Audit(); return checkCompatibility(source, target, compatibility, ignoreCallback, silent, audit); }
audit.append("Callback interface doesn't match as one of the callback interfaces is null"); audit.appendSeperator(); throw new IncompatibleInterfaceContractException("Callback interface doesn't match as one of the callback interfaces is null", source, target); } else { if (!silent) { audit.append("Callback operation not found on target " + operation.getName()); audit.appendSeperator(); throw new IncompatibleInterfaceContractException("Callback operation not found on target", source, target, null, targetOperation); if (!silent) { audit.append("Target callback operation is not compatible " + operation.getName()); audit.appendSeperator(); throw new IncompatibleInterfaceContractException("Target callback operation is not compatible", source, target, operation, targetOperation);
"and the target endpoint is not an OASIS endpoint, specVersion = " + endpoint.getSpecVersion()); matchAudit.appendSeperator(); return false; } else { matchAudit.appendSeperator(); return true; epIntent.toString() + " "); matchAudit.appendSeperator(); return false; (noEndpointReferencePolicies) && (noEndpointPolicies)) { matchAudit.append("Match because there are no intents or policies "); matchAudit.appendSeperator(); return true; matchAudit.appendSeperator(); return false; matchAudit.appendSeperator(); return false; matchAudit.append("Match because the intents are resolved and there are no policy sets "); matchAudit.appendSeperator(); return true;
" target = " + target.getName()); audit.appendSeperator(); " target = " + target.getName()); audit.appendSeperator(); " target = " + target.isNonBlocking()); audit.appendSeperator(); audit.append("different number of output types"); audit.appendSeperator(); if (!isCompatible(targetOutputType.get(i), sourceOutputType.get(i), passByValue, audit)) { if (audit != null){ audit.append(" output types"); audit.appendSeperator(); audit.append("different number of input types"); audit.appendSeperator(); if (!isCompatible(sourceInputType.get(i), targetInputType.get(i), passByValue, audit)) { if (audit != null){ audit.append(" input types"); audit.appendSeperator(); audit.append("Fault types incompatible");
" target = " + target.getName()); audit.appendSeperator(); " target = " + target.getName()); audit.appendSeperator(); " target = " + target.isNonBlocking()); audit.appendSeperator(); audit.append("different number of output types"); audit.appendSeperator(); if (!isCompatible(targetOutputType.get(i), sourceOutputType.get(i), passByValue, audit)) { if (audit != null){ audit.append(" output types"); audit.appendSeperator(); audit.append("different number of input types"); audit.appendSeperator(); if (!isCompatible(sourceInputType.get(i), targetInputType.get(i), passByValue, audit)) { if (audit != null){ audit.append(" input types"); audit.appendSeperator(); audit.append("Fault types incompatible");