Package com.sun.xml.ws.config.metro
Class SimpleFeatureReader<T extends jakarta.xml.ws.WebServiceFeature>
- java.lang.Object
-
- com.sun.xml.ws.config.metro.SimpleFeatureReader<T>
-
- All Implemented Interfaces:
FeatureReader
- Direct Known Subclasses:
TcpTransportFeatureReader
public abstract class SimpleFeatureReader<T extends jakarta.xml.ws.WebServiceFeature> extends Object implements FeatureReader
Parse a feature with no further attributes than "enabled" and return it as a WebServiceFeature instance.- Author:
- Fabian Ritzmann
-
-
Field Summary
-
Fields inherited from interface com.sun.xml.ws.config.metro.dev.FeatureReader
ENABLED_ATTRIBUTE_NAME
-
-
Constructor Summary
Constructors Constructor Description SimpleFeatureReader()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract TcreateFeature(boolean enabled)Instantiate the proper feature class.Tparse(XMLEventReader reader)Parse an XML stream and return the corresponding WebServiceFeature instance.
-
-
-
Method Detail
-
parse
public T parse(XMLEventReader reader) throws jakarta.xml.ws.WebServiceException
Description copied from interface:FeatureReaderParse an XML stream and return the corresponding WebServiceFeature instance.- Specified by:
parsein interfaceFeatureReader<T extends jakarta.xml.ws.WebServiceFeature>- Throws:
jakarta.xml.ws.WebServiceException
-
createFeature
protected abstract T createFeature(boolean enabled) throws jakarta.xml.ws.WebServiceException
Instantiate the proper feature class.- Throws:
jakarta.xml.ws.WebServiceException
-
-