Changeset 2665
- Timestamp:
- 03/08/13 10:31:21 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
SRUServer/trunk/src/main/java/eu/clarin/sru/server/utils/SRUServerServlet.java
r2664 r2665 99 99 */ 100 100 @Deprecated 101 private static final String LEGACY_SRU_SERVER_SERACH_ENGINE_CLASS_PARAM = 101 private static final String LEGACY_SRU_SERVER_SEARCH_ENGINE_CLASS_PARAM_1 = 102 "sruServerSerachEngineClass"; 103 /** 104 * @deprecated use {@link #SRU_SERVER_SEARCH_ENGINE_CLASS_PARAM} 105 */ 106 @Deprecated 107 private static final String LEGACY_SRU_SERVER_SEARCH_ENGINE_CLASS_PARAM_2 = 102 108 "eu.clarin.sru.server.utils.sruServerSerachEngineClass"; 103 /**104 * @deprecated use {@link #SRU_SERVER_SEARCH_ENGINE_CLASS_PARAM}105 */106 @Deprecated107 private static final String LEGACY_SRU_SERVER_SEARCH_ENGINE_CLASS_PARAM =108 "sruServerSerachEngineClass";109 109 /** 110 110 * Default value for the location of the SRU server configuration. … … 137 137 logger.warn("init parameter '" + 138 138 LEGACY_SRU_SERVER_CONFIG_LOCATION_PARAM + 139 "' is deprecated, please use init 139 "' is deprecated, please use init-parameter '" + 140 140 SRU_SERVER_CONFIG_LOCATION_PARAM + "' instead!"); 141 141 } else { … … 148 148 sruServerConfigFile = ctx.getResource(sruServerConfigLocation); 149 149 } catch (MalformedURLException e) { 150 throw new ServletException("init 150 throw new ServletException("init-parameter '" + 151 151 SRU_SERVER_CONFIG_LOCATION_PARAM + "' is not a valid URL", 152 152 e); 153 153 } 154 154 if (sruServerConfigFile == null) { 155 throw new ServletException("init 155 throw new ServletException("init-parameter '" + 156 156 SRU_SERVER_CONFIG_LOCATION_PARAM + 157 157 "' points to non-existing resource (" + … … 159 159 } 160 160 161 /* get search engine class name from Servlet init 161 /* get search engine class name from Servlet init-parameters */ 162 162 String sruServerSearchEngineClass = 163 163 cfg.getInitParameter(SRU_SERVER_SEARCH_ENGINE_CLASS_PARAM); … … 166 166 if (sruServerSearchEngineClass == null) { 167 167 sruServerSearchEngineClass = cfg.getInitParameter( 168 LEGACY_SRU_SERVER_SEARCH_ENGINE_CLASS_PARAM );168 LEGACY_SRU_SERVER_SEARCH_ENGINE_CLASS_PARAM_1); 169 169 if (sruServerSearchEngineClass != null) { 170 logger.warn("init 171 LEGACY_SRU_SERVER_SEARCH_ENGINE_CLASS_PARAM +172 "' is deprecated, please use init 170 logger.warn("init-parameter '" + 171 LEGACY_SRU_SERVER_SEARCH_ENGINE_CLASS_PARAM_1 + 172 "' is deprecated, please use init-parameter '" + 173 173 SRU_SERVER_SEARCH_ENGINE_CLASS_PARAM + "' instead!"); 174 174 } … … 178 178 if (sruServerSearchEngineClass == null) { 179 179 sruServerSearchEngineClass = cfg.getInitParameter( 180 LEGACY_SRU_SERVER_SE RACH_ENGINE_CLASS_PARAM);180 LEGACY_SRU_SERVER_SEARCH_ENGINE_CLASS_PARAM_2); 181 181 if (sruServerSearchEngineClass != null) { 182 logger.warn("init 183 LEGACY_SRU_SERVER_SE RACH_ENGINE_CLASS_PARAM+184 "' is deprecated, please use init 182 logger.warn("init-parameter '" + 183 LEGACY_SRU_SERVER_SEARCH_ENGINE_CLASS_PARAM_2 + 184 "' is deprecated, please use init-parameter '" + 185 185 SRU_SERVER_SEARCH_ENGINE_CLASS_PARAM + "' instead!"); 186 186 } … … 189 189 /* if still nothing, give up */ 190 190 if (sruServerSearchEngineClass == null) { 191 throw new ServletException("init 191 throw new ServletException("init-parameter '" + 192 192 SRU_SERVER_SEARCH_ENGINE_CLASS_PARAM + 193 193 "' not defined in servlet configuration");
Note: See TracChangeset
for help on using the changeset viewer.