org.gcube.opensearch.opensearchlibrary.responseelements
Class XMLResponse
java.lang.Object
org.gcube.opensearch.opensearchlibrary.responseelements.OpenSearchResponse
org.gcube.opensearch.opensearchlibrary.responseelements.XMLResponse
public class XMLResponse
- extends OpenSearchResponse
Class implementing an OpenSearch XML response
- Author:
- gerasimos.farantatos
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLResponse
public XMLResponse(java.io.InputStream in,
QueryElementFactory qElFactory,
QueryBuilder qb,
java.lang.String encoding,
java.util.Map<java.lang.String,java.lang.String> nsPrefixes)
throws java.lang.Exception
- Parameters:
in
- The InputStream from which to read the responseqElFactory
- The QueryElement factory that will be used to construct query element implementationsqb
- A QueryBuilder that is to be further populated in case a query contained in a response query element is requestedencoding
- The encoding to expectnsPrefixes
- The mapping from namespace URIs to namespace prefixes for all namespaces contained in a description document
- Throws:
java.lang.Exception
- If an error occurs while parsing the response