Changeset 2642
- Timestamp:
- 03/01/13 10:56:29 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
SRUServer/trunk/src/main/java/eu/clarin/sru/server/utils/SRUServerServlet.java
r2623 r2642 50 50 * Add the following to the web.xml of your web applications web.xml to define a 51 51 * SRU server. Of course, the value of the Servlet initialization parameter 52 * "eu.clarin.sru.server.utils.sruServerSe rachEngineClass" must be adapted to52 * "eu.clarin.sru.server.utils.sruServerSearchEngineClass" must be adapted to 53 53 * match the name of your search engine implementation. Furthermore, you can 54 54 * choose different url-pattern, to match your needs. … … 66 66 * <servlet-class>eu.clarin.sru.server.utils.SRUServerServlet</servlet-class> 67 67 * <init-param> 68 * <param-name>eu.clarin.sru.server.utils.sruServerSe rachEngineClass</param-name>68 * <param-name>eu.clarin.sru.server.utils.sruServerSearchEngineClass</param-name> 69 69 * <param-value>com.acme.MySearchEngine</param-value> 70 70 * </init-param> … … 94 94 * SRU search engine. 95 95 */ 96 public static final String SRU_SERVER_SE RACH_ENGINE_CLASS_PARAM =97 "eu.clarin.sru.server.utils.sruServerSe rachEngineClass";98 /** 99 * @deprecated use {@link #SRU_SERVER_SE RACH_ENGINE_CLASS_PARAM}96 public static final String SRU_SERVER_SEARCH_ENGINE_CLASS_PARAM = 97 "eu.clarin.sru.server.utils.sruServerSearchEngineClass"; 98 /** 99 * @deprecated use {@link #SRU_SERVER_SEARCH_ENGINE_CLASS_PARAM} 100 100 */ 101 101 @Deprecated 102 private static final String LEGACY_SRU_SERVER_SE RACH_ENGINE_CLASS_PARAM =103 "sruServerSe rachEngineClass";102 private static final String LEGACY_SRU_SERVER_SEARCH_ENGINE_CLASS_PARAM = 103 "sruServerSearchEngineClass"; 104 104 105 105 /** … … 155 155 156 156 String sruServerSearchEngineClass = 157 cfg.getInitParameter(SRU_SERVER_SE RACH_ENGINE_CLASS_PARAM);157 cfg.getInitParameter(SRU_SERVER_SEARCH_ENGINE_CLASS_PARAM); 158 158 if (sruServerSearchEngineClass == null) { 159 sruServerSearchEngineClass = cfg.getInitParameter(LEGACY_SRU_SERVER_SE RACH_ENGINE_CLASS_PARAM);159 sruServerSearchEngineClass = cfg.getInitParameter(LEGACY_SRU_SERVER_SEARCH_ENGINE_CLASS_PARAM); 160 160 if (sruServerSearchEngineClass != null) { 161 161 logger.warn("init parameter '" + 162 LEGACY_SRU_SERVER_SE RACH_ENGINE_CLASS_PARAM +162 LEGACY_SRU_SERVER_SEARCH_ENGINE_CLASS_PARAM + 163 163 "' is deprecated, please use init parameter '" + 164 SRU_SERVER_SE RACH_ENGINE_CLASS_PARAM + "' instead!");164 SRU_SERVER_SEARCH_ENGINE_CLASS_PARAM + "' instead!"); 165 165 } else { 166 166 throw new ServletException("init parameter '" + 167 SRU_SERVER_SE RACH_ENGINE_CLASS_PARAM +167 SRU_SERVER_SEARCH_ENGINE_CLASS_PARAM + 168 168 "' not defined in servlet configuration"); 169 169 }
Note: See TracChangeset
for help on using the changeset viewer.