org.gcube.opensearch.opensearchlibrary.responseelements
Class XMLResponse

java.lang.Object
  extended by org.gcube.opensearch.opensearchlibrary.responseelements.OpenSearchResponse
      extended by org.gcube.opensearch.opensearchlibrary.responseelements.XMLResponse

public class XMLResponse
extends OpenSearchResponse

Class implementing an OpenSearch XML response

Author:
gerasimos.farantatos

Constructor Summary
XMLResponse(java.io.InputStream in, QueryElementFactory qElFactory, QueryBuilder qb, java.lang.String encoding, java.util.Map<java.lang.String,java.lang.String> nsPrefixes)
           
 
Method Summary
 
Methods inherited from class org.gcube.opensearch.opensearchlibrary.responseelements.OpenSearchResponse
containsPagingElements, getItemsPerPage, getQueryBuilders, getResponse, getStartIndex, getTotalResults, isFirstPage, isLastPage
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 response
qElFactory - The QueryElement factory that will be used to construct query element implementations
qb - A QueryBuilder that is to be further populated in case a query contained in a response query element is requested
encoding - The encoding to expect
nsPrefixes - 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