com.indexdata.masterkey.pazpar2.client
Class Pazpar2ClientGeneric
java.lang.Object
com.indexdata.masterkey.pazpar2.client.AbstractPazpar2Client
com.indexdata.masterkey.pazpar2.client.Pazpar2ClientGeneric
- All Implemented Interfaces:
- Pazpar2Client
public class Pazpar2ClientGeneric
- extends AbstractPazpar2Client
- Author:
- nielserik, jakub
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 |
Pazpar2ClientGeneric
public Pazpar2ClientGeneric(Pazpar2ClientConfiguration cfg)
throws ProxyErrorException
- Throws:
ProxyErrorException
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.