Class GetRecordsMessageBodyReader
java.lang.Object
org.codice.ddf.spatial.ogc.csw.catalog.common.source.reader.GetRecordsMessageBodyReader
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<CswRecordCollection>
public class GetRecordsMessageBodyReader
extends Object
implements javax.ws.rs.ext.MessageBodyReader<CswRecordCollection>
Custom JAX-RS MessageBodyReader for parsing a CSW GetRecords response, extracting the search
results and CSW records.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGetRecordsMessageBodyReader(com.thoughtworks.xstream.converters.Converter converter, CswSourceConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) readFrom(Class<CswRecordCollection> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String, String> httpHeaders, InputStream inStream)
-
Field Details
-
BYTES_SKIPPED
- See Also:
-
-
Constructor Details
-
GetRecordsMessageBodyReader
public GetRecordsMessageBodyReader(com.thoughtworks.xstream.converters.Converter converter, CswSourceConfiguration configuration)
-
-
Method Details
-
isReadable
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) - Specified by:
isReadablein interfacejavax.ws.rs.ext.MessageBodyReader<CswRecordCollection>
-
readFrom
public CswRecordCollection readFrom(Class<CswRecordCollection> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String, String> httpHeaders, InputStream inStream) throws IOException, javax.ws.rs.WebApplicationException- Specified by:
readFromin interfacejavax.ws.rs.ext.MessageBodyReader<CswRecordCollection>- Throws:
IOExceptionjavax.ws.rs.WebApplicationException
-