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 voidhandleRequest(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- aSRUServerConfigobjectqueryParsers- aSRUQueryParserRegistryobjectauthenticationInfoProvider- aSRUAuthenticationInfoProviderornullsearchEngine- an object implementing theSRUSearchEngineinterface- Throws:
NullPointerException- if config, queryParserRegistry or searchEngine isnullSRUConfigException- if an error occurred with configuration or initialization of the server
-
-