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
| Fields inherited from class org.gcube.opensearch.opensearchlibrary.responseelements.OpenSearchResponse |
containsInfo, isFirstPage, isLastPage, itemsPerPage, logger, nsPrefixes, queryBuilders, queryElements, response, startIndex, totalResults |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLResponse
public XMLResponse(InputStream in,
QueryElementFactory qElFactory,
QueryBuilder qb,
String encoding,
Map<String,String> nsPrefixes)
throws 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:
Exception - If an error occurs while parsing the response
Copyright © 2013. All Rights Reserved.