Package eu.clarin.sru.server
Class SRUServer
- java.lang.Object
-
- eu.clarin.sru.server.SRUServer
-
public final class SRUServer extends Object
SRU/CQL protocol implementation for the server-side (SRU/S). This class implements SRU/CQL version 1.1 and and 1.2.
-
-
Constructor Summary
Constructors Constructor Description SRUServer(SRUServerConfig config, SRUQueryParserRegistry queryParsers, SRUAuthenticationInfoProvider authenticationInfoProvider, SRUSearchEngine searchEngine)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Handle a SRU request.
-
-
-
Constructor Detail
-
SRUServer
public SRUServer(SRUServerConfig config, SRUQueryParserRegistry queryParsers, SRUAuthenticationInfoProvider authenticationInfoProvider, SRUSearchEngine searchEngine) throws SRUConfigException
Constructor.- Parameters:
config
- aSRUServerConfig
objectqueryParsers
- aSRUQueryParserRegistry
objectauthenticationInfoProvider
- aSRUAuthenticationInfoProvider
ornull
searchEngine
- an object implementing theSRUSearchEngine
interface- Throws:
NullPointerException
- if config, queryParserRegistry or searchEngine isnull
SRUConfigException
- if an error occurred with configuration or initialization of the server
-
-