Class FeatureCollectionMessageBodyReaderWfs20
java.lang.Object
org.codice.ddf.spatial.ogc.wfs.v2_0_0.catalog.source.reader.FeatureCollectionMessageBodyReaderWfs20
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<Wfs20FeatureCollection>
@Consumes({"text/xml","application/xml","application/gml+xml"})
@Provider
public class FeatureCollectionMessageBodyReaderWfs20
extends Object
implements javax.ws.rs.ext.MessageBodyReader<Wfs20FeatureCollection>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FeatureCollectionConverterWfs20protected com.thoughtworks.xstream.XStream -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisReadable(Class<?> clazz, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) readFrom(Class<Wfs20FeatureCollection> clazz, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String, String> headers, InputStream inStream) voidregisterConverter(org.codice.ddf.spatial.ogc.wfs.catalog.converter.FeatureConverter converter)
-
Field Details
-
xstream
protected com.thoughtworks.xstream.XStream xstream -
featureCollectionConverter
-
featureConverterMap
-
-
Constructor Details
-
FeatureCollectionMessageBodyReaderWfs20
public FeatureCollectionMessageBodyReaderWfs20()
-
-
Method Details
-
isReadable
public boolean isReadable(Class<?> clazz, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) - Specified by:
isReadablein interfacejavax.ws.rs.ext.MessageBodyReader<Wfs20FeatureCollection>
-
readFrom
public Wfs20FeatureCollection readFrom(Class<Wfs20FeatureCollection> clazz, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String, String> headers, InputStream inStream) throws IOException, javax.ws.rs.WebApplicationException- Specified by:
readFromin interfacejavax.ws.rs.ext.MessageBodyReader<Wfs20FeatureCollection>- Throws:
IOExceptionjavax.ws.rs.WebApplicationException
-
registerConverter
public void registerConverter(org.codice.ddf.spatial.ogc.wfs.catalog.converter.FeatureConverter converter)
-