|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.indexdata.mkjsf.pazpar2.ServiceProxyClient
public class ServiceProxyClient
Search client handling Service Proxy requests.
Nested Class Summary | |
---|---|
class |
ServiceProxyClient.ProxyPz2ResponseHandler
|
Field Summary | |
---|---|
static String |
MODULENAME
|
static String |
SP_INIT_DOC_PATHS
|
Constructor Summary | |
---|---|
ServiceProxyClient()
|
Method Summary | |
---|---|
ServiceProxyClient |
cloneMe()
|
void |
configure(ConfigurationReader configReader)
Configures the Configurable using the configuration obtained by the provided configuration reader |
List<String> |
documentConfiguration()
The components documentation of how it was configured. |
HttpResponseWrapper |
executeCommand(Pazpar2Command command)
|
Configuration |
getConfiguration()
|
Map<String,String> |
getDefaults()
Returns default configuration parameters for the client. |
List<String> |
getInitDocPaths()
|
String |
getModuleName()
Returns the configuration name of the client |
String |
getReasonPhrase()
|
String |
getServiceUrl()
|
int |
getStatusCode()
|
boolean |
hasServiceUrl()
Returns true if a Service Proxy URL was defined yet. |
boolean |
isAuthenticatingClient()
|
HttpResponseWrapper |
postInitDoc(byte[] initDoc,
Pazpar2Command command)
|
ClientCommandResponse |
postInitDoc(String filePath)
|
ClientCommandResponse |
send(Pazpar2Command command)
Makes the request |
void |
setSearchCommand(Pazpar2Command command)
Does nothing in Service Proxy context |
void |
setServiceUrl(String url)
Sets the URL of the Service Proxy that should service requests. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String MODULENAME
public static final String SP_INIT_DOC_PATHS
Constructor Detail |
---|
public ServiceProxyClient()
Method Detail |
---|
public void configure(ConfigurationReader configReader) throws MissingConfigurationContextException
Configurable
configure
in interface Configurable
configReader
- used for reading the configuration
MissingConfigurationContextException
public boolean isAuthenticatingClient()
isAuthenticatingClient
in interface SearchClient
public ClientCommandResponse send(Pazpar2Command command)
request
-
org.apache.http.client.ClientProtocolException
IOException
public int getStatusCode()
public String getReasonPhrase()
public void setSearchCommand(Pazpar2Command command)
setSearchCommand
in interface SearchClient
public HttpResponseWrapper executeCommand(Pazpar2Command command)
executeCommand
in interface SearchClient
public ServiceProxyClient cloneMe()
cloneMe
in interface SearchClient
public Map<String,String> getDefaults()
getDefaults
in interface Configurable
public String getModuleName()
getModuleName
in interface Configurable
public List<String> documentConfiguration()
Configurable
documentConfiguration
in interface Configurable
public ClientCommandResponse postInitDoc(String filePath) throws IOException
IOException
public List<String> getInitDocPaths()
public HttpResponseWrapper postInitDoc(byte[] initDoc, Pazpar2Command command)
public void setServiceUrl(String url)
setServiceUrl
in interface SearchClient
public Configuration getConfiguration()
getConfiguration
in interface SearchClient
public String getServiceUrl()
getServiceUrl
in interface SearchClient
public boolean hasServiceUrl()
hasServiceUrl
in interface SearchClient
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |