|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jafer.srwserver.SRWServer
public class SRWServer
This class services SRW requests
Field Summary | |
---|---|
private DatabeanManagerFactory |
databeanManagerFactory
Stores a reference to the data bean manager factory to use |
protected static java.util.logging.Logger |
logger
Stores a reference to the logger |
private SRWServerConfig |
serverConfig
Stores a reference to server configuration information |
Constructor Summary | |
---|---|
SRWServer(SRWServerConfig srwserverConfig,
DatabeanManagerFactoryConfig factoryConfig)
The SRWServer is constructed with the databean manager factory that creates a databean manager to process all the search requests. |
|
SRWServer(java.lang.String srwserverConfigLocation,
DatabeanManagerFactory factory)
The SRWServer is constructed with the databean manager factory that creates a databean manager to process all the search requests. |
|
SRWServer(java.lang.String srwserverConfigLocation,
java.lang.String databeanManagerConfigLocation)
The SRWServer is constructed with the databean manager factory that creates a databean manager to process all the search requests. |
Method Summary | |
---|---|
private void |
addReplyRecordsToResponse(gov.loc.www.zing.srw.SearchRetrieveRequestType request,
gov.loc.www.zing.srw.SearchRetrieveResponseType response,
DatabeanManager beanManager)
This method adds the requested results to the response according to the request information for startrecord, maxrecords, recordpacking values |
private gov.loc.www.zing.srw.SearchRetrieveResponseType |
createBasicSearchRetrieveResponse(gov.loc.www.zing.srw.SearchRetrieveRequestType request)
This method creates a basic response object from the request to be populated with the results of the search and retrieve operaration |
private gov.loc.www.zing.srw.diagnostic.DiagnosticType |
createDiagnostic(java.lang.String code,
java.lang.String details)
This method creates a DiagnosticType for the information provided |
gov.loc.www.zing.srw.ScanResponseType |
scanOperation(gov.loc.www.zing.srw.ScanRequestType body)
This method processes a scan operation. |
gov.loc.www.zing.srw.SearchRetrieveResponseType |
searchRetrieveOperation(gov.loc.www.zing.srw.SearchRetrieveRequestType request)
This method processes a search and retrieve operation |
void |
setDatabeanManagerFactory(DatabeanManagerFactory factory)
Allows the databean factory to be updated on the server |
private boolean |
validateSearchRetrieveRequest(gov.loc.www.zing.srw.SearchRetrieveRequestType request,
gov.loc.www.zing.srw.SearchRetrieveResponseType response)
This method makes sure that the request contains all the required parameters. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static java.util.logging.Logger logger
private DatabeanManagerFactory databeanManagerFactory
private SRWServerConfig serverConfig
Constructor Detail |
---|
public SRWServer(java.lang.String srwserverConfigLocation, java.lang.String databeanManagerConfigLocation) throws JaferException
srwserverConfigLocation
- The location of the resource in the
distribution that will be retrieved as a stream using
class.getResourceAsStream() to load the srwserver config detailsdatabeanManagerConfigLocation
- The location of the resource in the
distribution that will be retrieved as a stream using
class.getResourceAsStream() to load the databeanmanager config
details
JaferException
public SRWServer(java.lang.String srwserverConfigLocation, DatabeanManagerFactory factory) throws JaferException
srwserverConfigLocation
- The location of the resource in the
distribution that will be retrieved as a stream using
class.getResourceAsStream()factory
- The databean manager factory to use
JaferException
public SRWServer(SRWServerConfig srwserverConfig, DatabeanManagerFactoryConfig factoryConfig) throws JaferException
srwserverConfig
- The srw server config classfactoryConfig
- The databean factory config class
JaferException
Method Detail |
---|
public void setDatabeanManagerFactory(DatabeanManagerFactory factory) throws JaferException
factory
- the databean factory to use
JaferException
private gov.loc.www.zing.srw.diagnostic.DiagnosticType createDiagnostic(java.lang.String code, java.lang.String details) throws org.apache.axis.types.URI.MalformedURIException
code
- the diagnostic lookup codedetails
- The diagnotic details
org.apache.axis.types.URI.MalformedURIException
private boolean validateSearchRetrieveRequest(gov.loc.www.zing.srw.SearchRetrieveRequestType request, gov.loc.www.zing.srw.SearchRetrieveResponseType response) throws org.apache.axis.types.URI.MalformedURIException, JaferException
request
- The SearchRetrieveRequestType request messageresponse
- The SearchRetrieveResponseType response message
org.apache.axis.types.URI.MalformedURIException
JaferException
private gov.loc.www.zing.srw.SearchRetrieveResponseType createBasicSearchRetrieveResponse(gov.loc.www.zing.srw.SearchRetrieveRequestType request)
request
- The request object that must be replecated in the response
private void addReplyRecordsToResponse(gov.loc.www.zing.srw.SearchRetrieveRequestType request, gov.loc.www.zing.srw.SearchRetrieveResponseType response, DatabeanManager beanManager) throws JaferException
request
- The SearchRetrieveRequestType request messageresponse
- The SearchRetrieveResponseType response messagebeanManager
- The bean manager to retrieve results from
JaferException
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
request
- The search and retrieve request message
java.rmi.RemoteException
public gov.loc.www.zing.srw.ScanResponseType scanOperation(gov.loc.www.zing.srw.ScanRequestType body) throws java.rmi.RemoteException
scanOperation
in interface gov.loc.www.zing.srw.interfaces.SRWPort
body
- The scan request message
java.rmi.RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |