diff options
author | kchong | 2006-04-18 06:05:58 +0000 |
---|---|---|
committer | kchong | 2006-04-18 06:05:58 +0000 |
commit | ec48e7c36fdb2df91bb3739925255afe0d21338c (patch) | |
tree | 55721ff2454181766633a4f192ceccdb1a19c92b /bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1110.java | |
parent | ce31ada71d2822d7e0a13d29b9c20ac05fb1b387 (diff) | |
download | webtools.webservices-200604181102.tar.gz webtools.webservices-200604181102.tar.xz webtools.webservices-200604181102.zip |
This commit was manufactured by cvs2svn to create tag 'v200604181102'.v200604181102
Diffstat (limited to 'bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1110.java')
-rw-r--r-- | bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1110.java | 104 |
1 files changed, 0 insertions, 104 deletions
diff --git a/bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1110.java b/bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1110.java deleted file mode 100644 index 8b3b9e247..000000000 --- a/bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1110.java +++ /dev/null @@ -1,104 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2002-2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM - Initial API and implementation - *******************************************************************************/ -package org.eclipse.wst.wsi.internal.core.profile.validator.impl.message; - -import org.eclipse.wst.wsi.internal.core.WSIConstants; -import org.eclipse.wst.wsi.internal.core.WSIException; -import org.eclipse.wst.wsi.internal.core.profile.TestAssertion; -import org.eclipse.wst.wsi.internal.core.profile.validator.EntryContext; -import org.eclipse.wst.wsi.internal.core.profile.validator.impl.AssertionProcess; -import org.eclipse.wst.wsi.internal.core.profile.validator.impl.BaseMessageValidator; -import org.eclipse.wst.wsi.internal.core.report.AssertionResult; -import org.w3c.dom.Document; -import org.w3c.dom.Element; -import org.w3c.dom.Node; -import org.w3c.dom.NodeList; - - -/** - * WSI1110. - * Any conformance claims MUST adhere to the WS-I conformance - * claim schema defined in the Basic Profile. - */ -public class WSI1110 extends AssertionProcess -{ - private final BaseMessageValidator validator; - - /** - * @param BaseMessageValidator - */ - public WSI1110(BaseMessageValidator impl) - { - super(impl); - this.validator = impl; - } - - /** - * @see org.eclipse.wst.wsi.test.profile.validator.impl.BaseValidatorImpl.AssertionProcess#validate(TestAssertion, EntryContext) - */ - public AssertionResult validate( - TestAssertion testAssertion, - EntryContext entryContext) - throws WSIException - { - - Document doc; - if (entryContext.getMessageEntry() != null - && !this.validator.isOneWayResponse(entryContext) - && (doc = entryContext.getMessageEntryDocument()) != null) - { - Element root = doc.getDocumentElement(); - // find "Claim" element - NodeList claimList = - root.getElementsByTagNameNS(WSIConstants.NS_URI_CLAIM, "Claim"); - if (claimList == null || claimList.getLength() == 0) - { - result = AssertionResult.RESULT_NOT_APPLICABLE; - } - else - { - for (int i = 0; i < claimList.getLength(); i++) - { - Element elem = (Element) claimList.item(i); - // check "conformsTo" attribute - Node node = elem.getAttributeNode("conformsTo"); - if (node == null) - { - result = AssertionResult.RESULT_FAILED; - failureDetail = - this.validator.createFailureDetail( - "\nSOAP message:\n" - + entryContext.getMessageEntry().getMessage(), - entryContext); - break; - } - /* This is checked in WSI1111 - // check "mustUnderstand" attribute - node = elem.getAttributeNodeNS(WSIConstants.NS_URI_SOAP, "mustUnderstand"); - if (node != null) - { - result = AssertionResult.RESULT_FAILED; - failureDetail = createFailureDetail("\nSOAP message:\n" + entryContext.getMessageEntry().getMessage(), entryContext); - break; - } - */ - } - } - } - else - { - result = AssertionResult.RESULT_NOT_APPLICABLE; - } - - // Return assertion result - return validator.createAssertionResult(testAssertion, result, failureDetail); - } -}
\ No newline at end of file |