public class SruSrwClientImpl extends Object implements SruSrwClientInterface
Constructor and Description |
---|
SruSrwClientImpl() |
Modifier and Type | Method and Description |
---|---|
Map |
callSruSrwProvider(String identifier)
Looks up using SRU/SRW defined endpoint an identifier (normally ISBN)
and returns the first record returned by SRU/SRW as a HashMap of fields
|
String |
getEndPointURL()
Returns the the SRU/SRW service provider URI
|
String |
getProxyHostName()
Returns the proxy hostname
|
String |
getProxyPasswd()
Returns the proxy userid
|
String |
getProxyPort()
Returns the proxy port
|
String |
getProxyUserId()
Returns the proxy userid
|
org.apache.axiom.soap.SOAPEnvelope |
getSOAPPayload(String isbn)
Creates the full SOAPEnvelope to be sent to LOC, based on SRW schemas
|
void |
setEndPointURL(String endPointURL)
Sets the URI for the SRU/SRW service provider, default to http://z3950.loc.gov:7090/voyager
|
void |
setProxyHostName(String proxyHostName)
Set the proxy name if a proxy is required (ex.
|
void |
setProxyPasswd(String proxyPasswd)
Set the proxy password if proxy is required and configured (non-empty), ignored otherwise
Default is "anonymous", if a non-authenticate proxy is used this value must be the default
|
void |
setProxyPort(String proxyPort)
Set the proxy port if proxy is required and configured (non-empty), ignored otherwise
Content of the string must be between 1 and 65556
Default value is 8080
|
void |
setProxyUserId(String proxyUserId)
Set the proxy userid if proxy is required and configured (non-empty), ignored otherwise
Default is "anonymous", if a non-authenticate proxy is used this value must be the default
|
public void setEndPointURL(String endPointURL)
public String getEndPointURL()
public void setProxyHostName(String proxyHostName)
public String getProxyHostName()
public void setProxyUserId(String proxyUserId)
public String getProxyUserId()
public void setProxyPasswd(String proxyPasswd)
public String getProxyPasswd()
public void setProxyPort(String proxyPort)
public String getProxyPort()
public Map callSruSrwProvider(String identifier) throws Exception
callSruSrwProvider
in interface SruSrwClientInterface
identifier
- Normally the isbn of the book to search,
expressed in the "xxxxxxxxxx" format
Exception
- if either parameters are incorrect, the SRU/SRW enpoint
cannot be called, if the returned XML cannot be parsed or
if the record identified by identifier could not be found by providerpublic org.apache.axiom.soap.SOAPEnvelope getSOAPPayload(String isbn)
isbn
- The isbn of the book to search,
expressed in the "xxxxxxxxxx" format
ISBN can be in 10 or 13 digit format, no spaces or dashesCopyright © 2003-2017 The Virtual Library Team. All Rights Reserved.