com.indexdata.masterkey.pazpar2.client
Class Pazpar2ClientGeneric

java.lang.Object
  extended by com.indexdata.masterkey.pazpar2.client.AbstractPazpar2Client
      extended by com.indexdata.masterkey.pazpar2.client.Pazpar2ClientGeneric
All Implemented Interfaces:
Pazpar2Client

public class Pazpar2ClientGeneric
extends AbstractPazpar2Client

Author:
nielserik, jakub

Nested Class Summary
 
Nested classes/interfaces inherited from class com.indexdata.masterkey.pazpar2.client.AbstractPazpar2Client
AbstractPazpar2Client.HttpResponse
 
Field Summary
 
Fields inherited from class com.indexdata.masterkey.pazpar2.client.AbstractPazpar2Client
cfg, pazpar2Session, serviceDefinition, XML_CT
 
Constructor Summary
Pazpar2ClientGeneric(Pazpar2ClientConfiguration cfg)
           
 
Method Summary
 Pazpar2Client cloneMe()
          Creates a Pazpar2 client clone with the same Pazpar2 configuration and target settings as the original.
 Pazpar2Settings getSettings()
           
 void init()
          Initializes a Pazpar2 session while retaining statically defined databases from Pazpar2's configuration
protected  boolean requiresForcedInit()
           
 
Methods inherited from class com.indexdata.masterkey.pazpar2.client.AbstractPazpar2Client
executeCommand, executeSearch, getHit, getResults, getSearchCommand, getSearchCount, getSessionId, getTimeStamp, pipeStream, recordRequest, recordRequest, request, searchRequest, sendInit, sendInit, sendRequest, sessionIsAlive, setSearchCommand, showRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pazpar2ClientGeneric

public Pazpar2ClientGeneric(Pazpar2ClientConfiguration cfg)
                     throws ProxyErrorException
Throws:
ProxyErrorException
Method Detail

requiresForcedInit

protected boolean requiresForcedInit()
Specified by:
requiresForcedInit in class AbstractPazpar2Client

init

public void init()
          throws Pazpar2IOException,
                 Pazpar2ErrorException
Initializes a Pazpar2 session while retaining statically defined databases from Pazpar2's configuration

Throws:
Pazpar2ErrorException - on pazpar2 application-level errors
Pazpar2IOException

cloneMe

public Pazpar2Client cloneMe()
                      throws Pazpar2ErrorException,
                             Pazpar2IOException
Description copied from interface: Pazpar2Client
Creates a Pazpar2 client clone with the same Pazpar2 configuration and target settings as the original. The client will be initialized but no search state is copied over from the original. The cloned client can be used by plug-ins to make pazpar2 requests independently of RelayPlugins master pazpar2 session.

Returns:
Uninitialized clone of this client
Throws:
ProxyErrorException
Pazpar2ErrorException
Pazpar2IOException

getSettings

public Pazpar2Settings getSettings()
Returns:
The Pazpar2 target settings for the current session


Copyright © 2012. All Rights Reserved.