com.ebmwebsourcing.wsstar.addressing.definition.impl
Class WSAddressingReaderImpl

java.lang.Object
  extended by com.ebmwebsourcing.wsstar.addressing.definition.impl.WSAddressingReaderImpl
All Implemented Interfaces:
WSAddressingReader

public class WSAddressingReaderImpl
extends java.lang.Object
implements WSAddressingReader

Author:
Nicolas Salatge - eBM WebSourcing

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.ebmwebsourcing.wsstar.addressing.definition.api.WSAddressingReader
WSAddressingReader.FeatureConstants
 
Constructor Summary
WSAddressingReaderImpl()
           
WSAddressingReaderImpl(java.util.List<java.lang.Class> addedObjectFactories)
           
 
Method Summary
 java.lang.Object getFeature(WSAddressingReader.FeatureConstants name)
          Gets the value of the specified feature.
 java.util.Map<WSAddressingReader.FeatureConstants,java.lang.Object> getFeatures()
          Gets all features.
static javax.xml.bind.JAXBContext getJaxbContext()
           
 EndpointReferenceType readEndpointReferenceType(org.w3c.dom.Document document)
          Read the specified SchemaImpl document into a SchemaImpl definition.
 EndpointReferenceType readEndpointReferenceType(java.io.File file)
          Read a EndpointReferanceType object from a file (used be persistence feature)
 EndpointReferenceType readEndpointReferenceType(java.net.URI uri)
          Read the SchemaImpl document accessible via the specified URI into a SchemaImpl definition.
 EndpointReferenceType readEndpointReferenceType(java.net.URI uri, org.xml.sax.InputSource source)
          Read a SchemaImpl document into a SchemaImpl definition.
 void setFeature(WSAddressingReader.FeatureConstants name, java.lang.Object value)
          Sets the specified feature to the specified value.
 void setFeatures(java.util.Map<WSAddressingReader.FeatureConstants,java.lang.Object> features)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSAddressingReaderImpl

public WSAddressingReaderImpl()
                       throws WSAddressingException
Throws:
WSAddressingException

WSAddressingReaderImpl

public WSAddressingReaderImpl(java.util.List<java.lang.Class> addedObjectFactories)
                       throws WSAddressingException
Throws:
WSAddressingException
Method Detail

getJaxbContext

public static javax.xml.bind.JAXBContext getJaxbContext()
Returns:
the jaxbContext

readEndpointReferenceType

public EndpointReferenceType readEndpointReferenceType(java.net.URI uri)
                                                throws WSAddressingException
Description copied from interface: WSAddressingReader
Read the SchemaImpl document accessible via the specified URI into a SchemaImpl definition.

Specified by:
readEndpointReferenceType in interface WSAddressingReader
Returns:
the definition.
Throws:
WSAddressingException

readEndpointReferenceType

public EndpointReferenceType readEndpointReferenceType(org.w3c.dom.Document document)
                                                throws WSAddressingException
Description copied from interface: WSAddressingReader
Read the specified SchemaImpl document into a SchemaImpl definition.

Specified by:
readEndpointReferenceType in interface WSAddressingReader
Returns:
the definition described in the document.
Throws:
WSAddressingException

readEndpointReferenceType

public EndpointReferenceType readEndpointReferenceType(java.net.URI uri,
                                                       org.xml.sax.InputSource source)
                                                throws WSAddressingException
Description copied from interface: WSAddressingReader
Read a SchemaImpl document into a SchemaImpl definition.

Specified by:
readEndpointReferenceType in interface WSAddressingReader
source - an InputSource pointing to the SchemaImpl document, an XML document obeying the SchemaImpl parent.
Returns:
the definition described in the document pointed to by the InputSource.
Throws:
WSAddressingException

setFeature

public void setFeature(WSAddressingReader.FeatureConstants name,
                       java.lang.Object value)
                throws java.lang.IllegalArgumentException
Description copied from interface: WSAddressingReader
Sets the specified feature to the specified value.

The minimum features that must be supported are:

Name Description Default Value
org.ow2.easywsdl.schema.verbose
If set to true, status messages will be displayed.
type: boolean - default value: false
org.ow2.easywsdl.schema.importDocuments
If set to true, imported WSDL documents will be retrieved and processed.
type: boolean - default value: true
org.ow2.easywsdl.schema.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 com.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

Specified by:
setFeature in interface WSAddressingReader
Parameters:
name - the name of the feature to be set.
value - the value to set the feature to.
Throws:
java.lang.IllegalArgumentException - if the feature name is not recognized.
See Also:
#getFeature(String)

getFeature

public java.lang.Object getFeature(WSAddressingReader.FeatureConstants name)
                            throws java.lang.IllegalArgumentException
Description copied from interface: WSAddressingReader
Gets the value of the specified feature.

Specified by:
getFeature in interface WSAddressingReader
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(String, boolean)

getFeatures

public java.util.Map<WSAddressingReader.FeatureConstants,java.lang.Object> getFeatures()
Description copied from interface: WSAddressingReader
Gets all features.

Specified by:
getFeatures in interface WSAddressingReader
Returns:
the features
See Also:
#setFeature(String, boolean)

setFeatures

public void setFeatures(java.util.Map<WSAddressingReader.FeatureConstants,java.lang.Object> features)

readEndpointReferenceType

public EndpointReferenceType readEndpointReferenceType(java.io.File file)
                                                throws WSAddressingException
Description copied from interface: WSAddressingReader
Read a EndpointReferanceType object from a file (used be persistence feature)

Specified by:
readEndpointReferenceType in interface WSAddressingReader
Parameters:
file - the File object which the EndpointReferenceType object must be read from
Returns:
a EndpointReferenceType Java object instance
Throws:
WSAddressingException


Copyright © 2009-2011 eBM Websourcing. All Rights Reserved.