Class SimpleFeatureReader<T extends javax.xml.ws.WebServiceFeature>

  • All Implemented Interfaces:
    FeatureReader
    Direct Known Subclasses:
    TcpTransportFeatureReader

    public abstract class SimpleFeatureReader<T extends javax.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
    • Constructor Detail

      • SimpleFeatureReader

        public SimpleFeatureReader()
    • Method Detail

      • parse

        public T parse​(XMLEventReader reader)
                throws javax.xml.ws.WebServiceException
        Description copied from interface: FeatureReader
        Parse an XML stream and return the corresponding WebServiceFeature instance.
        Specified by:
        parse in interface FeatureReader<T extends javax.xml.ws.WebServiceFeature>
        Throws:
        javax.xml.ws.WebServiceException
      • createFeature

        protected abstract T createFeature​(boolean enabled)
                                    throws javax.xml.ws.WebServiceException
        Instantiate the proper feature class.
        Throws:
        javax.xml.ws.WebServiceException