|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jafer.srwserver.SRWServerConfig
public class SRWServerConfig
This class extracts the config information for the SRWServer from the specified config file
Field Summary | |
---|---|
private org.w3c.dom.Node |
configRoot
Stores a reference to the config root |
private java.lang.String |
defaultMaxRecords
Stores a reference to the default max records to set in the request if not currently set. |
private java.lang.String |
defaultSchema
Stores a reference to the default schema to return records as if not set in the request. |
private double |
highestSupportedSearchVersion
Stores a reference to highest supported version by this SRWServer |
protected static java.util.logging.Logger |
logger
Stores a reference to the logger |
Constructor Summary | |
---|---|
SRWServerConfig()
|
Method Summary | |
---|---|
java.lang.String |
getDefaultMaxRecords()
Returns the default maximum records value to set in a request if it's not specified |
java.lang.String |
getDefaultSchema()
Returns the default schema to use if not specified in requests |
java.lang.String |
getDiagnosticMessaage(java.lang.String code)
Returns the diagnostic message for the specified code |
double |
getHighestSupportedSearchVersion()
Returns the highest version number supported by the SRWServer |
private void |
initialise()
|
void |
initialiseFromResourceStream(java.lang.String resourceLocation)
Initilalises the SRWServerConfig parsing in the details from the specified config file |
void |
initialiseFromXML(java.lang.String xml)
Initialises the SRWServerConfig parsing in the details from the specified xml |
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 java.lang.String defaultSchema
private java.lang.String defaultMaxRecords
private org.w3c.dom.Node configRoot
private double highestSupportedSearchVersion
Constructor Detail |
---|
public SRWServerConfig()
Method Detail |
---|
public void initialiseFromXML(java.lang.String xml) throws JaferException
xml
- The XML to process
JaferException
public void initialiseFromResourceStream(java.lang.String resourceLocation) throws JaferException
resourceLocation
- The location of the resource in the distribution
that will be retrieved as a stream using
class.getResourceAsStream() to load the srwserver config details
JaferException
private void initialise() throws JaferException
JaferException
public java.lang.String getDefaultMaxRecords()
public java.lang.String getDefaultSchema()
public double getHighestSupportedSearchVersion()
public java.lang.String getDiagnosticMessaage(java.lang.String code) throws JaferException
code
-
JaferException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |