|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jafer.zclient.SRUBinding
public class SRUBinding
This class binds an SRWSession to a host that only supports SRU
Field Summary | |
---|---|
protected static java.util.logging.Logger |
logger
Stores a reference to the logger |
private static java.lang.String |
SOAP_END
Stores a reference to the required end xml of a SOAP envelope |
private static java.lang.String |
SOAP_START
Stores a reference to the required start xml of a SOAP envelope |
private java.lang.String |
url
Stores a reference to url of the binding |
Constructor Summary | |
---|---|
SRUBinding(java.lang.String url)
Constructor |
Method Summary | |
---|---|
private java.lang.String |
constructExtraRequestData(gov.loc.www.zing.srw.ExtraDataType extraData)
This method extracts the extra data parameters and creates a URL string (?key=value&key2=value2) that can be appended to the URL for a scan/search GET request. |
private java.lang.String |
constructURLScanRequestParameters(gov.loc.www.zing.srw.ScanRequestType request)
This method extracts the scan request parameters and creates a URL string (?key=value&key2=value2) that can be appended to the URL for a scan GET request. |
private java.lang.String |
constructURLSearchRequestParameters(gov.loc.www.zing.srw.SearchRetrieveRequestType request)
This method extracts the search request parameters and creates a URL string (?key=value&key2=value2) that can be appended to the URL for a search GET request.As all the construction is contained in this method static strings are not defined. see http://www.loc.gov/standards/sru/sru-spec.html for param details Note - String parameters must be URL Encoded |
private java.lang.Object |
deserialiseResponse(java.lang.String xml,
java.lang.Class responseClass)
This method takes an xml response, wraps it in a soap envelope and then uses the axis derserialisation process to return an instance of the specified response class |
gov.loc.www.zing.srw.ScanResponseType |
scanOperation(gov.loc.www.zing.srw.ScanRequestType request)
This method performs the scanOperation connecting to the host using SRU. |
gov.loc.www.zing.srw.SearchRetrieveResponseType |
searchRetrieveOperation(gov.loc.www.zing.srw.SearchRetrieveRequestType request)
This method performs the searchRetrieveOperation connecting to the host using SRU. |
private java.lang.String |
sendRequest(java.lang.String requestParameters)
This method sends a GET request to the specified URL appending the supplied request parameters. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static java.lang.String SOAP_START
private static java.lang.String SOAP_END
protected static java.util.logging.Logger logger
private java.lang.String url
Constructor Detail |
---|
public SRUBinding(java.lang.String url)
url
- The url of the bindingMethod Detail |
---|
private java.lang.Object deserialiseResponse(java.lang.String xml, java.lang.Class responseClass) throws JaferException
xml
- The xml to response to processresponseClass
- The response class type
JaferException
private java.lang.String sendRequest(java.lang.String requestParameters) throws java.io.IOException
requestParameters
- The request paramaters string URLEncoded
java.io.IOException
private java.lang.String constructExtraRequestData(gov.loc.www.zing.srw.ExtraDataType extraData) throws java.io.UnsupportedEncodingException
extraData
- The extra data to be processed
java.io.UnsupportedEncodingException
private java.lang.String constructURLScanRequestParameters(gov.loc.www.zing.srw.ScanRequestType request) throws JaferException
request
- The ScanRequestType of request parameters
JaferException
private java.lang.String constructURLSearchRequestParameters(gov.loc.www.zing.srw.SearchRetrieveRequestType request) throws JaferException
request
- The SearchRetrieveRequestType of request parameters
JaferException
public gov.loc.www.zing.srw.ScanResponseType scanOperation(gov.loc.www.zing.srw.ScanRequestType request) throws java.rmi.RemoteException
scanOperation
in interface gov.loc.www.zing.srw.interfaces.SRWPort
body
- The ScanRequestType message
java.rmi.RemoteException
public gov.loc.www.zing.srw.SearchRetrieveResponseType searchRetrieveOperation(gov.loc.www.zing.srw.SearchRetrieveRequestType request) throws java.rmi.RemoteException
searchRetrieveOperation
in interface gov.loc.www.zing.srw.interfaces.SRWPort
body
- The SearchRetrieveRequestType message
java.rmi.RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |