Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
easyWSDL - easyWSDL toolbox Platform. Copyright (c) 2008, eBM Websourcing All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the University of California, Berkeley nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 package org.ow2.easywsdl.wsdl.api;
 
 import java.net.URI;
 import java.net.URL;
 import java.util.Map;
 
This interface describes a collection of methods that enable conversion of a WSDL document (in XML, following the WSDL schema described in the WSDL specification) into a WSDL model.

Author(s):
Nicolas Salatge - eBM WebSourcing
 
 public interface WSDLReader {

Constants for the Message Exchange Patterns.
 
 	public enum FeatureConstants {
 		VERBOSE("org.ow2.easywsdl.schema.test.verbose"), IMPORT_DOCUMENTS(
 				"org.ow2.easywsdl.schema.test.importDocuments");
 
 		private final String value;

Creates a new instance of WSDLReader.FeatureConstants

Parameters:
value
 
 		private FeatureConstants(final String value) {
 			this. = value;
 		}

Returns:
 
 		public String value() {
 			return this.;
 		}

Please use this equals method instead of using : value().equals(value) which is almost 10 times slower...

Parameters:
value
Returns:
 
 		public boolean equals(final String val) {
 			return this.value().equals(val);
 		}
 
 		/*
 		 * (non-Javadoc)
 		 * 
 		 * @see java.lang.Enum#toString()
 		 */
 		public String toString() {
 			return this.;
		}
	}

Sets the specified feature to the specified value.

The minimum features that must be supported are:

NameDescriptionImplDefault Value
org.ow2.easywsdl.schema.test.verbose
If set to true, status messages will be displayed.
type: boolean - default value: false
org.ow2.easywsdl.schema.test.importDocuments
If set to true, imported WSDL documents will be retrieved and processed.
type: boolean - default value: true
org.ow2.easywsdl.schema.test.pathDirectoryOfImportLocations
If the location is set, imported WSDL documents will be retrieved at this location (Set the importDocuments Features at true).
type: String

All feature names must be fully-qualified, Java package style. All names starting with om.ebmwebsourcing. are reserved for features defined by the specification. It is recommended that implementation- specific features be fully-qualified to match the package name of that implementation. For example: com.abc.featureName

Parameters:
name the name of the feature to be set.
value the value to set the feature to.
Throws:
WSDLException TODO
See also:
getFeature(org.ow2.easywsdl.wsdl.api.WSDLReader.FeatureConstants)
	void setFeature(FeatureConstants nameObject valuethrows WSDLException;

Gets the value of the specified feature.

Parameters:
name the name of the feature to get the value of.
Returns:
the value of feature
Throws:
java.lang.IllegalArgumentException if the feature name is not recognized.
See also:
setFeature(org.ow2.easywsdl.wsdl.api.WSDLReader.FeatureConstants,java.lang.Object)
Set all features.
    void setFeatures(final Map<FeatureConstantsObjectfeatures);

    
Read the WSDL document accessible via the specified URI into a WSDL definition.

Deprecated:
Use read(java.net.URL)
Parameters:
wsdlURI a URI (can be a filename or URL) pointing to a WSDL XML definition.
Returns:
the definition.
	Description readWSDL(final URI wsdlURIthrows WSDLException;

    

Read the WSDL definition available at the location identified by the specified URL, and bind it into a Description object.

Note: all relative URIs are resolved according to the specified URL.

Parameters:
wsdlURL an URL pointing to a WSDL definition.
Returns:
the Description definition.
Throws:
WSDLException An error occurs during the parsing or the binding of the WSDL definition
java.net.URISyntaxException If the URL is not formatted strictly according to to RFC2396 and cannot be converted to a URI.
java.io.IOException An I/O error occurs openning the URL stream.
	Description readWSDL(final Document docthrows WSDLException;

    

Read the WSDL definition available at the specified DOM org.w3c.dom.Document, and bind it into a Description object.

Note: To be able to resolve relative URIs, the org.w3c.dom.Document base URI must be set.

Parameters:
document a DOM org.w3c.dom.Document pointing to a WSDL definition.
Returns:
the Description definition.
Throws:
WSDLException An error occurs during the parsing or the binding of the WSDL definition
java.net.URISyntaxException the DOM org.w3c.dom.Document base URI is not formatted strictly according to to RFC2396 and cannot be converted to a URI.
    Description read(final Document documentthrows WSDLExceptionURISyntaxException;

    

Read the WSDL definition available at the specified org.xml.sax.InputSource, and bind it into a Description object.

Note: To be able to resolve relative URIs, the org.xml.sax.InputSource system identifier must be set.

Parameters:
inputSource an org.xml.sax.InputSource pointing to a WSDL definition.
Returns:
the Description definition.
Throws:
WSDLException An error occurs during the parsing or the binding of the WSDL definition.
java.net.MalformedURLException The org.xml.sax.InputSource system identifier is not a well-formed URL.
java.net.URISyntaxException the org.xml.sax.InputSource system identifier is not formatted strictly according to to RFC2396 and cannot be converted to a URI.
    Description read(final InputSource inputSourcethrows WSDLExceptionMalformedURLExceptionURISyntaxException;

    
Read an WSDL part provided by an org.xml.sax.InputSource, description imports/includes and schema imports/includes provided by descriptionImports and schemaImports are not read.

Throws:
WSDLException
java.net.MalformedURLException The org.xml.sax.InputSource systemId is a malformed URL.
java.net.URISyntaxException The org.xml.sax.InputSource systemId is an URL not formatted strictly according to to RFC2396 and cannot be converted to a URI.
    Description read(final InputSource sourcefinal Map<URIAbsItfDescriptiondescriptionImportsfinal Map<URIAbsItfSchemaschemaImportsthrows WSDLExceptionMalformedURLExceptionURISyntaxException;
New to GrepCode? Check out our FAQ X