fix #131
This commit is contained in:
parent
29e7c2a34c
commit
72e5da0253
98 changed files with 223 additions and 278 deletions
11
pom.xml
11
pom.xml
|
@ -108,7 +108,8 @@
|
|||
</profiles>
|
||||
<properties>
|
||||
<dbflute.version>1.0.4K</dbflute.version>
|
||||
<s2robot.version>0.6.2</s2robot.version>
|
||||
<s2robot.version>0.7.0-SNAPSHOT</s2robot.version>
|
||||
<solr.version>4.7.0</solr.version>
|
||||
</properties>
|
||||
<build>
|
||||
<finalName>fess</finalName>
|
||||
|
@ -432,7 +433,7 @@
|
|||
<dependency>
|
||||
<groupId>jp.sf.fess</groupId>
|
||||
<artifactId>fess-suggest</artifactId>
|
||||
<version>1.1.0</version>
|
||||
<version>1.2.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>jp.sf.fess</groupId>
|
||||
|
@ -524,7 +525,7 @@
|
|||
<dependency>
|
||||
<groupId>org.apache.solr</groupId>
|
||||
<artifactId>solr-core</artifactId>
|
||||
<version>4.6.1</version>
|
||||
<version>${solr.version}</version>
|
||||
<scope>test</scope>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
|
@ -544,7 +545,7 @@
|
|||
<dependency>
|
||||
<groupId>org.apache.solr</groupId>
|
||||
<artifactId>solr-solrj</artifactId>
|
||||
<version>4.6.1</version>
|
||||
<version>${solr.version}</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>org.apache.httpcomponents</groupId>
|
||||
|
@ -603,7 +604,7 @@
|
|||
<dependency>
|
||||
<groupId>org.codelibs.solr</groupId>
|
||||
<artifactId>solrlib</artifactId>
|
||||
<version>1.1.2</version>
|
||||
<version>1.2.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.codelibs.sastruts</groupId>
|
||||
|
|
|
@ -35,10 +35,6 @@ public class Constants extends CoreLibConstants {
|
|||
|
||||
public static final String WEB_API_VERSION = "5";
|
||||
|
||||
public static final String EMPTY_STRING = "";
|
||||
|
||||
public static final String[] EMPTY_STRINGS = new String[0];
|
||||
|
||||
public static final String TRUE = "true";
|
||||
|
||||
public static final String FALSE = "false";
|
||||
|
|
|
@ -26,7 +26,7 @@ import jp.sf.fess.helper.SystemHelper;
|
|||
|
||||
import org.apache.commons.lang.StringEscapeUtils;
|
||||
import org.codelibs.sastruts.core.exception.SSCActionMessagesException;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.struts.annotation.ActionForm;
|
||||
import org.seasar.struts.annotation.Execute;
|
||||
import org.seasar.struts.util.RequestUtil;
|
||||
|
|
|
@ -79,6 +79,7 @@ import org.apache.commons.io.IOUtils;
|
|||
import org.apache.commons.lang.StringEscapeUtils;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.codelibs.core.util.DynamicProperties;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.codelibs.sastruts.core.exception.SSCActionMessagesException;
|
||||
import org.codelibs.solr.lib.exception.SolrLibQueryException;
|
||||
import org.seasar.framework.beans.util.Beans;
|
||||
|
@ -86,7 +87,6 @@ import org.seasar.framework.container.annotation.tiger.Binding;
|
|||
import org.seasar.framework.container.annotation.tiger.BindingType;
|
||||
import org.seasar.framework.util.InputStreamUtil;
|
||||
import org.seasar.framework.util.OutputStreamUtil;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.seasar.struts.annotation.ActionForm;
|
||||
import org.seasar.struts.annotation.Execute;
|
||||
import org.seasar.struts.taglib.S2Functions;
|
||||
|
@ -1107,8 +1107,7 @@ public class IndexAction {
|
|||
if (!labelTypeItems.isEmpty()
|
||||
&& !indexForm.fields.containsKey(LABEL_FIELD)) {
|
||||
final String defaultLabelValue = crawlerProperties.getProperty(
|
||||
Constants.DEFAULT_LABEL_VALUE_PROPERTY,
|
||||
Constants.EMPTY_STRING);
|
||||
Constants.DEFAULT_LABEL_VALUE_PROPERTY, StringUtil.EMPTY);
|
||||
if (StringUtil.isNotBlank(defaultLabelValue)) {
|
||||
final String[] values = defaultLabelValue.split("\n");
|
||||
if (values != null && values.length > 0) {
|
||||
|
|
|
@ -39,7 +39,7 @@ import jp.sf.fess.util.ComponentUtil;
|
|||
import org.apache.struts.Globals;
|
||||
import org.codelibs.core.crypto.CachedCipher;
|
||||
import org.codelibs.sastruts.core.SSCConstants;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.struts.annotation.ActionForm;
|
||||
import org.seasar.struts.annotation.Execute;
|
||||
import org.seasar.struts.util.RequestUtil;
|
||||
|
|
|
@ -43,7 +43,7 @@ import org.apache.commons.lang.StringUtils;
|
|||
import org.codelibs.core.util.DynamicProperties;
|
||||
import org.codelibs.sastruts.core.exception.SSCActionMessagesException;
|
||||
import org.seasar.framework.beans.util.Beans;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.struts.annotation.ActionForm;
|
||||
import org.seasar.struts.annotation.Execute;
|
||||
import org.seasar.struts.util.RequestUtil;
|
||||
|
|
|
@ -30,6 +30,7 @@ import jp.sf.fess.form.admin.CrawlForm;
|
|||
import jp.sf.fess.helper.SystemHelper;
|
||||
|
||||
import org.codelibs.core.util.DynamicProperties;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.codelibs.sastruts.core.annotation.Token;
|
||||
import org.codelibs.sastruts.core.exception.SSCActionMessagesException;
|
||||
import org.seasar.struts.annotation.ActionForm;
|
||||
|
@ -71,7 +72,7 @@ public class CrawlAction implements Serializable {
|
|||
crawlForm.crawlingThreadCount = crawlerProperties.getProperty(
|
||||
Constants.CRAWLING_THREAD_COUNT_PROPERTY, "5");
|
||||
crawlForm.mobileTranscoder = crawlerProperties.getProperty(
|
||||
Constants.MOBILE_TRANSCODER_PROPERTY, Constants.EMPTY_STRING);
|
||||
Constants.MOBILE_TRANSCODER_PROPERTY, StringUtil.EMPTY);
|
||||
crawlForm.searchLog = crawlerProperties.getProperty(
|
||||
Constants.SEARCH_LOG_PROPERTY, Constants.TRUE);
|
||||
crawlForm.userInfo = crawlerProperties.getProperty(
|
||||
|
@ -112,7 +113,7 @@ public class CrawlAction implements Serializable {
|
|||
Constants.PURGE_BY_BOTS_PROPERTY,
|
||||
Constants.DEFAULT_PURGE_BY_BOTS);
|
||||
crawlForm.notificationTo = crawlerProperties.getProperty(
|
||||
Constants.NOTIFICATION_TO_PROPERTY, Constants.EMPTY_STRING);
|
||||
Constants.NOTIFICATION_TO_PROPERTY, StringUtil.EMPTY);
|
||||
if (redirect) {
|
||||
return "index?redirect=true";
|
||||
} else {
|
||||
|
@ -252,7 +253,7 @@ public class CrawlAction implements Serializable {
|
|||
|
||||
public List<Map<String, String>> getMobileTranscoderItems() {
|
||||
final List<Map<String, String>> mobileTranscoderList = new ArrayList<Map<String, String>>();
|
||||
mobileTranscoderList.add(createItem("-", Constants.EMPTY_STRING));
|
||||
mobileTranscoderList.add(createItem("-", StringUtil.EMPTY));
|
||||
mobileTranscoderList.add(createItem(MessageResourcesUtil.getMessage(
|
||||
RequestUtil.getRequest().getLocale(),
|
||||
"labels.mobile_transcoder_google"),
|
||||
|
|
|
@ -39,7 +39,7 @@ import org.codelibs.core.util.DynamicProperties;
|
|||
import org.codelibs.sastruts.core.annotation.Token;
|
||||
import org.codelibs.sastruts.core.exception.SSCActionMessagesException;
|
||||
import org.seasar.framework.util.FileUtil;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.struts.annotation.ActionForm;
|
||||
import org.seasar.struts.annotation.Execute;
|
||||
import org.seasar.struts.util.ResponseUtil;
|
||||
|
|
|
@ -45,7 +45,7 @@ import org.codelibs.solr.lib.SolrGroupManager;
|
|||
import org.codelibs.solr.lib.SolrLibConstants;
|
||||
import org.codelibs.solr.lib.policy.QueryType;
|
||||
import org.codelibs.solr.lib.policy.impl.StatusPolicyImpl;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.struts.annotation.ActionForm;
|
||||
import org.seasar.struts.annotation.Execute;
|
||||
import org.seasar.struts.taglib.S2Functions;
|
||||
|
|
|
@ -33,7 +33,7 @@ import org.apache.commons.io.IOUtils;
|
|||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.codelibs.sastruts.core.exception.SSCActionMessagesException;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.struts.annotation.Execute;
|
||||
import org.seasar.struts.util.RequestUtil;
|
||||
import org.seasar.struts.util.ResponseUtil;
|
||||
|
|
|
@ -38,7 +38,7 @@ import jp.sf.fess.util.FessBeans;
|
|||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.codelibs.sastruts.core.exception.SSCActionMessagesException;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.struts.annotation.Execute;
|
||||
import org.seasar.struts.exception.ActionMessagesException;
|
||||
import org.seasar.struts.util.MessageResourcesUtil;
|
||||
|
|
|
@ -40,7 +40,7 @@ import jp.sf.fess.util.ComponentUtil;
|
|||
|
||||
import org.apache.commons.codec.binary.Base64;
|
||||
import org.codelibs.sastruts.core.exception.SSCActionMessagesException;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.struts.annotation.ActionForm;
|
||||
import org.seasar.struts.annotation.Execute;
|
||||
import org.seasar.struts.util.ResponseUtil;
|
||||
|
|
|
@ -40,7 +40,7 @@ import org.codelibs.solr.lib.SolrGroup;
|
|||
import org.codelibs.solr.lib.SolrGroupManager;
|
||||
import org.codelibs.solr.lib.policy.QueryType;
|
||||
import org.seasar.framework.beans.util.Beans;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.struts.annotation.ActionForm;
|
||||
import org.seasar.struts.annotation.Execute;
|
||||
import org.seasar.struts.taglib.S2Functions;
|
||||
|
|
|
@ -34,9 +34,9 @@ import jp.sf.fess.helper.SystemHelper;
|
|||
import org.apache.commons.io.IOUtils;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.codelibs.sastruts.core.exception.SSCActionMessagesException;
|
||||
import org.seasar.framework.beans.util.Beans;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.seasar.struts.annotation.Execute;
|
||||
import org.seasar.struts.util.RequestUtil;
|
||||
import org.seasar.struts.util.ResponseUtil;
|
||||
|
@ -60,7 +60,7 @@ public class SearchLogAction extends BsSearchLogAction {
|
|||
public String search() {
|
||||
final Map<String, String> searchParams = searchLogForm.searchParams;
|
||||
if (!searchParams.containsKey("startPage")) {
|
||||
searchParams.put("startPage", Constants.EMPTY_STRING);
|
||||
searchParams.put("startPage", StringUtil.EMPTY);
|
||||
}
|
||||
Beans.copy(searchParams, searchLogPager)
|
||||
.excludes(CommonConstants.PAGER_CONVERSION_RULE).execute();
|
||||
|
|
|
@ -32,7 +32,7 @@ import jp.sf.fess.service.StatsService;
|
|||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.seasar.framework.beans.util.Beans;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.struts.annotation.ActionForm;
|
||||
import org.seasar.struts.annotation.Execute;
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ import org.codelibs.solr.lib.SolrGroupManager;
|
|||
import org.codelibs.solr.lib.SolrLibConstants;
|
||||
import org.codelibs.solr.lib.policy.QueryType;
|
||||
import org.codelibs.solr.lib.policy.impl.StatusPolicyImpl;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.struts.annotation.ActionForm;
|
||||
import org.seasar.struts.annotation.Execute;
|
||||
import org.seasar.struts.util.RequestUtil;
|
||||
|
|
|
@ -29,6 +29,7 @@ import jp.sf.fess.form.admin.SystemInfoForm;
|
|||
import jp.sf.fess.helper.SystemHelper;
|
||||
|
||||
import org.codelibs.core.util.DynamicProperties;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.struts.annotation.ActionForm;
|
||||
import org.seasar.struts.annotation.Execute;
|
||||
|
||||
|
@ -118,9 +119,9 @@ public class SystemInfoAction implements Serializable {
|
|||
final Object value) {
|
||||
final Map<String, String> map = new HashMap<String, String>(2);
|
||||
map.put(Constants.ITEM_LABEL, label != null ? label.toString()
|
||||
: Constants.EMPTY_STRING);
|
||||
: StringUtil.EMPTY);
|
||||
map.put(Constants.ITEM_VALUE, value != null ? value.toString()
|
||||
: Constants.EMPTY_STRING);
|
||||
: StringUtil.EMPTY);
|
||||
return map;
|
||||
}
|
||||
}
|
|
@ -39,7 +39,7 @@ import org.apache.commons.logging.Log;
|
|||
import org.apache.commons.logging.LogFactory;
|
||||
import org.codelibs.sastruts.core.annotation.Token;
|
||||
import org.codelibs.sastruts.core.exception.SSCActionMessagesException;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.struts.annotation.Execute;
|
||||
import org.seasar.struts.exception.ActionMessagesException;
|
||||
import org.seasar.struts.util.MessageResourcesUtil;
|
||||
|
|
|
@ -44,9 +44,9 @@ import jp.sf.fess.util.ComponentUtil;
|
|||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.codelibs.core.util.DynamicProperties;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.codelibs.sastruts.core.annotation.Token;
|
||||
import org.codelibs.sastruts.core.exception.SSCActionMessagesException;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.seasar.robot.util.CharUtil;
|
||||
import org.seasar.struts.annotation.ActionForm;
|
||||
import org.seasar.struts.annotation.Execute;
|
||||
|
@ -167,17 +167,13 @@ public class WizardAction implements Serializable {
|
|||
wConfig.setDepth(Integer.parseInt(wizardForm.depth));
|
||||
}
|
||||
wConfig.setExcludedDocUrls(getDefaultString(
|
||||
"default.config.web.excludedDocUrls",
|
||||
Constants.EMPTY_STRING));
|
||||
"default.config.web.excludedDocUrls", StringUtil.EMPTY));
|
||||
wConfig.setExcludedUrls(getDefaultString(
|
||||
"default.config.web.excludedUrls",
|
||||
Constants.EMPTY_STRING));
|
||||
"default.config.web.excludedUrls", StringUtil.EMPTY));
|
||||
wConfig.setIncludedDocUrls(getDefaultString(
|
||||
"default.config.web.includedDocUrls",
|
||||
Constants.EMPTY_STRING));
|
||||
"default.config.web.includedDocUrls", StringUtil.EMPTY));
|
||||
wConfig.setIncludedUrls(getDefaultString(
|
||||
"default.config.web.includedUrls",
|
||||
Constants.EMPTY_STRING));
|
||||
"default.config.web.includedUrls", StringUtil.EMPTY));
|
||||
wConfig.setIntervalTime(getDefaultInteger(
|
||||
"default.config.web.intervalTime",
|
||||
Constants.DEFAULT_INTERVAL_TIME_FOR_WEB));
|
||||
|
@ -217,16 +213,14 @@ public class WizardAction implements Serializable {
|
|||
}
|
||||
fConfig.setExcludedDocPaths(getDefaultString(
|
||||
"default.config.file.excludedDocPaths",
|
||||
Constants.EMPTY_STRING));
|
||||
StringUtil.EMPTY));
|
||||
fConfig.setExcludedPaths(getDefaultString(
|
||||
"default.config.file.excludedPaths",
|
||||
Constants.EMPTY_STRING));
|
||||
"default.config.file.excludedPaths", StringUtil.EMPTY));
|
||||
fConfig.setIncludedDocPaths(getDefaultString(
|
||||
"default.config.file.includedDocPaths",
|
||||
Constants.EMPTY_STRING));
|
||||
StringUtil.EMPTY));
|
||||
fConfig.setIncludedPaths(getDefaultString(
|
||||
"default.config.file.includedPaths",
|
||||
Constants.EMPTY_STRING));
|
||||
"default.config.file.includedPaths", StringUtil.EMPTY));
|
||||
fConfig.setIntervalTime(getDefaultInteger(
|
||||
"default.config.file.intervalTime",
|
||||
Constants.DEFAULT_INTERVAL_TIME_FOR_FS));
|
||||
|
|
|
@ -23,7 +23,6 @@ import java.util.Map;
|
|||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import jp.sf.fess.Constants;
|
||||
import jp.sf.fess.crud.CommonConstants;
|
||||
import jp.sf.fess.crud.CrudMessageException;
|
||||
import jp.sf.fess.crud.util.SAStrutsUtil;
|
||||
|
@ -37,10 +36,10 @@ import jp.sf.fess.service.SynonymService;
|
|||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.codelibs.sastruts.core.annotation.Token;
|
||||
import org.codelibs.sastruts.core.exception.SSCActionMessagesException;
|
||||
import org.seasar.framework.beans.util.Beans;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.seasar.struts.annotation.ActionForm;
|
||||
import org.seasar.struts.annotation.Execute;
|
||||
import org.seasar.struts.exception.ActionMessagesException;
|
||||
|
@ -337,8 +336,8 @@ public class SynonymAction {
|
|||
|
||||
}
|
||||
} else {
|
||||
synonymItem = new SynonymItem(0, Constants.EMPTY_STRINGS,
|
||||
Constants.EMPTY_STRINGS);
|
||||
synonymItem = new SynonymItem(0, StringUtil.EMPTY_STRINGS,
|
||||
StringUtil.EMPTY_STRINGS);
|
||||
}
|
||||
|
||||
final String[] newInputs = splitLine(synonymForm.inputs);
|
||||
|
@ -351,7 +350,7 @@ public class SynonymAction {
|
|||
|
||||
private String[] splitLine(final String value) {
|
||||
if (StringUtil.isBlank(value)) {
|
||||
return Constants.EMPTY_STRINGS;
|
||||
return StringUtil.EMPTY_STRINGS;
|
||||
}
|
||||
final String[] values = value.split("[\r\n]");
|
||||
final List<String> list = new ArrayList<String>(values.length);
|
||||
|
|
|
@ -22,7 +22,6 @@ import java.util.Map;
|
|||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import jp.sf.fess.Constants;
|
||||
import jp.sf.fess.crud.CommonConstants;
|
||||
import jp.sf.fess.crud.CrudMessageException;
|
||||
import jp.sf.fess.crud.util.SAStrutsUtil;
|
||||
|
@ -35,10 +34,10 @@ import jp.sf.fess.service.UserDictService;
|
|||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.codelibs.sastruts.core.annotation.Token;
|
||||
import org.codelibs.sastruts.core.exception.SSCActionMessagesException;
|
||||
import org.seasar.framework.beans.util.Beans;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.seasar.struts.annotation.ActionForm;
|
||||
import org.seasar.struts.annotation.Execute;
|
||||
import org.seasar.struts.exception.ActionMessagesException;
|
||||
|
@ -337,9 +336,8 @@ public class UserDictAction {
|
|||
|
||||
}
|
||||
} else {
|
||||
userDictItem = new UserDictItem(0, Constants.EMPTY_STRING,
|
||||
Constants.EMPTY_STRING, Constants.EMPTY_STRING,
|
||||
Constants.EMPTY_STRING);
|
||||
userDictItem = new UserDictItem(0, StringUtil.EMPTY,
|
||||
StringUtil.EMPTY, StringUtil.EMPTY, StringUtil.EMPTY);
|
||||
}
|
||||
|
||||
userDictItem.setNewToken(userDictForm.token);
|
||||
|
|
|
@ -46,7 +46,7 @@ import jp.sf.fess.util.WebApiUtil;
|
|||
|
||||
import org.apache.commons.lang.StringEscapeUtils;
|
||||
import org.codelibs.core.CoreLibConstants;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.struts.util.RequestUtil;
|
||||
import org.seasar.struts.util.ResponseUtil;
|
||||
import org.slf4j.Logger;
|
||||
|
@ -98,7 +98,7 @@ public class JsonApiManager extends BaseApiManager implements WebApiManager {
|
|||
processFavoritesRequest(request, response, chain);
|
||||
break;
|
||||
default:
|
||||
writeJsonResponse(99, Constants.EMPTY_STRING, "Not found.");
|
||||
writeJsonResponse(99, StringUtil.EMPTY, "Not found.");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -106,7 +106,7 @@ public class JsonApiManager extends BaseApiManager implements WebApiManager {
|
|||
protected void processSearchRequest(final HttpServletRequest request,
|
||||
final HttpServletResponse response, final FilterChain chain) {
|
||||
int status = 0;
|
||||
String errMsg = Constants.EMPTY_STRING;
|
||||
String errMsg = StringUtil.EMPTY;
|
||||
String query = null;
|
||||
final StringBuilder buf = new StringBuilder(1000);
|
||||
request.setAttribute(Constants.SEARCH_LOG_ACCESS_TYPE,
|
||||
|
@ -302,7 +302,7 @@ public class JsonApiManager extends BaseApiManager implements WebApiManager {
|
|||
protected void processLabelRequest(final HttpServletRequest request,
|
||||
final HttpServletResponse response, final FilterChain chain) {
|
||||
int status = 0;
|
||||
String errMsg = Constants.EMPTY_STRING;
|
||||
String errMsg = StringUtil.EMPTY;
|
||||
final StringBuilder buf = new StringBuilder(255);
|
||||
try {
|
||||
final List<Map<String, String>> labelTypeItems = ComponentUtil
|
||||
|
@ -343,7 +343,7 @@ public class JsonApiManager extends BaseApiManager implements WebApiManager {
|
|||
final HttpServletResponse response, final FilterChain chain) {
|
||||
|
||||
int status = 0;
|
||||
String errMsg = Constants.EMPTY_STRING;
|
||||
String errMsg = StringUtil.EMPTY;
|
||||
final StringBuilder buf = new StringBuilder(255);
|
||||
try {
|
||||
chain.doFilter(new WebApiRequest(request, SUGGEST_API),
|
||||
|
@ -427,7 +427,7 @@ public class JsonApiManager extends BaseApiManager implements WebApiManager {
|
|||
final HttpServletResponse response, final FilterChain chain) {
|
||||
|
||||
int status = 0;
|
||||
String errMsg = Constants.EMPTY_STRING;
|
||||
String errMsg = StringUtil.EMPTY;
|
||||
final StringBuilder buf = new StringBuilder(255);
|
||||
try {
|
||||
chain.doFilter(new WebApiRequest(request, ANALYSIS_API),
|
||||
|
@ -517,7 +517,7 @@ public class JsonApiManager extends BaseApiManager implements WebApiManager {
|
|||
final HttpServletResponse response, final FilterChain chain) {
|
||||
|
||||
int status = 0;
|
||||
String errMsg = Constants.EMPTY_STRING;
|
||||
String errMsg = StringUtil.EMPTY;
|
||||
final StringBuilder buf = new StringBuilder(255);
|
||||
try {
|
||||
chain.doFilter(new WebApiRequest(request, HOT_SEARCH_WORD_API),
|
||||
|
|
|
@ -45,7 +45,7 @@ import jp.sf.fess.util.WebApiUtil;
|
|||
|
||||
import org.apache.commons.lang.StringEscapeUtils;
|
||||
import org.codelibs.core.CoreLibConstants;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.struts.util.ResponseUtil;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
@ -86,7 +86,7 @@ public class XmlApiManager extends BaseApiManager implements WebApiManager {
|
|||
processAnalysisRequest(request, response, chain);
|
||||
break;
|
||||
default:
|
||||
writeXmlResponse(-1, Constants.EMPTY_STRING, "Not found.");
|
||||
writeXmlResponse(-1, StringUtil.EMPTY, "Not found.");
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -95,7 +95,7 @@ public class XmlApiManager extends BaseApiManager implements WebApiManager {
|
|||
protected void processSearchRequest(final HttpServletRequest request,
|
||||
final HttpServletResponse response, final FilterChain chain) {
|
||||
int status = 0;
|
||||
String errMsg = Constants.EMPTY_STRING;
|
||||
String errMsg = StringUtil.EMPTY;
|
||||
final StringBuilder buf = new StringBuilder(1000);
|
||||
String query = null;
|
||||
request.setAttribute(Constants.SEARCH_LOG_ACCESS_TYPE,
|
||||
|
@ -255,7 +255,7 @@ public class XmlApiManager extends BaseApiManager implements WebApiManager {
|
|||
protected void processLabelRequest(final HttpServletRequest request,
|
||||
final HttpServletResponse response, final FilterChain chain) {
|
||||
int status = 0;
|
||||
String errMsg = Constants.EMPTY_STRING;
|
||||
String errMsg = StringUtil.EMPTY;
|
||||
final StringBuilder buf = new StringBuilder(255);
|
||||
try {
|
||||
final List<Map<String, String>> labelTypeItems = ComponentUtil
|
||||
|
@ -291,7 +291,7 @@ public class XmlApiManager extends BaseApiManager implements WebApiManager {
|
|||
final HttpServletResponse response, final FilterChain chain) {
|
||||
|
||||
int status = 0;
|
||||
String errMsg = Constants.EMPTY_STRING;
|
||||
String errMsg = StringUtil.EMPTY;
|
||||
final StringBuilder buf = new StringBuilder(255);
|
||||
try {
|
||||
chain.doFilter(new WebApiRequest(request, SUGGEST_API),
|
||||
|
@ -371,7 +371,7 @@ public class XmlApiManager extends BaseApiManager implements WebApiManager {
|
|||
final HttpServletResponse response, final FilterChain chain) {
|
||||
|
||||
int status = 0;
|
||||
String errMsg = Constants.EMPTY_STRING;
|
||||
String errMsg = StringUtil.EMPTY;
|
||||
final StringBuilder buf = new StringBuilder(255);
|
||||
try {
|
||||
chain.doFilter(new WebApiRequest(request, ANALYSIS_API),
|
||||
|
|
|
@ -35,7 +35,7 @@ import org.apache.commons.logging.Log;
|
|||
import org.apache.commons.logging.LogFactory;
|
||||
import org.codelibs.sastruts.core.annotation.Token;
|
||||
import org.seasar.framework.beans.util.Beans;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.struts.annotation.ActionForm;
|
||||
import org.seasar.struts.annotation.Execute;
|
||||
import org.seasar.struts.exception.ActionMessagesException;
|
||||
|
|
|
@ -35,7 +35,7 @@ import org.apache.commons.logging.Log;
|
|||
import org.apache.commons.logging.LogFactory;
|
||||
import org.codelibs.sastruts.core.annotation.Token;
|
||||
import org.seasar.framework.beans.util.Beans;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.struts.annotation.ActionForm;
|
||||
import org.seasar.struts.annotation.Execute;
|
||||
import org.seasar.struts.exception.ActionMessagesException;
|
||||
|
|
|
@ -35,7 +35,7 @@ import org.apache.commons.logging.Log;
|
|||
import org.apache.commons.logging.LogFactory;
|
||||
import org.codelibs.sastruts.core.annotation.Token;
|
||||
import org.seasar.framework.beans.util.Beans;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.struts.annotation.ActionForm;
|
||||
import org.seasar.struts.annotation.Execute;
|
||||
import org.seasar.struts.exception.ActionMessagesException;
|
||||
|
|
|
@ -35,7 +35,7 @@ import org.apache.commons.logging.Log;
|
|||
import org.apache.commons.logging.LogFactory;
|
||||
import org.codelibs.sastruts.core.annotation.Token;
|
||||
import org.seasar.framework.beans.util.Beans;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.struts.annotation.ActionForm;
|
||||
import org.seasar.struts.annotation.Execute;
|
||||
import org.seasar.struts.exception.ActionMessagesException;
|
||||
|
|
|
@ -35,7 +35,7 @@ import org.apache.commons.logging.Log;
|
|||
import org.apache.commons.logging.LogFactory;
|
||||
import org.codelibs.sastruts.core.annotation.Token;
|
||||
import org.seasar.framework.beans.util.Beans;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.struts.annotation.ActionForm;
|
||||
import org.seasar.struts.annotation.Execute;
|
||||
import org.seasar.struts.exception.ActionMessagesException;
|
||||
|
|
|
@ -35,7 +35,7 @@ import org.apache.commons.logging.Log;
|
|||
import org.apache.commons.logging.LogFactory;
|
||||
import org.codelibs.sastruts.core.annotation.Token;
|
||||
import org.seasar.framework.beans.util.Beans;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.struts.annotation.ActionForm;
|
||||
import org.seasar.struts.annotation.Execute;
|
||||
import org.seasar.struts.exception.ActionMessagesException;
|
||||
|
|
|
@ -35,7 +35,7 @@ import org.apache.commons.logging.Log;
|
|||
import org.apache.commons.logging.LogFactory;
|
||||
import org.codelibs.sastruts.core.annotation.Token;
|
||||
import org.seasar.framework.beans.util.Beans;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.struts.annotation.ActionForm;
|
||||
import org.seasar.struts.annotation.Execute;
|
||||
import org.seasar.struts.exception.ActionMessagesException;
|
||||
|
|
|
@ -35,7 +35,7 @@ import org.apache.commons.logging.Log;
|
|||
import org.apache.commons.logging.LogFactory;
|
||||
import org.codelibs.sastruts.core.annotation.Token;
|
||||
import org.seasar.framework.beans.util.Beans;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.struts.annotation.ActionForm;
|
||||
import org.seasar.struts.annotation.Execute;
|
||||
import org.seasar.struts.exception.ActionMessagesException;
|
||||
|
|
|
@ -35,7 +35,7 @@ import org.apache.commons.logging.Log;
|
|||
import org.apache.commons.logging.LogFactory;
|
||||
import org.codelibs.sastruts.core.annotation.Token;
|
||||
import org.seasar.framework.beans.util.Beans;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.struts.annotation.ActionForm;
|
||||
import org.seasar.struts.annotation.Execute;
|
||||
import org.seasar.struts.exception.ActionMessagesException;
|
||||
|
|
|
@ -35,7 +35,7 @@ import org.apache.commons.logging.Log;
|
|||
import org.apache.commons.logging.LogFactory;
|
||||
import org.codelibs.sastruts.core.annotation.Token;
|
||||
import org.seasar.framework.beans.util.Beans;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.struts.annotation.ActionForm;
|
||||
import org.seasar.struts.annotation.Execute;
|
||||
import org.seasar.struts.exception.ActionMessagesException;
|
||||
|
|
|
@ -35,7 +35,7 @@ import org.apache.commons.logging.Log;
|
|||
import org.apache.commons.logging.LogFactory;
|
||||
import org.codelibs.sastruts.core.annotation.Token;
|
||||
import org.seasar.framework.beans.util.Beans;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.struts.annotation.ActionForm;
|
||||
import org.seasar.struts.annotation.Execute;
|
||||
import org.seasar.struts.exception.ActionMessagesException;
|
||||
|
|
|
@ -35,7 +35,7 @@ import org.apache.commons.logging.Log;
|
|||
import org.apache.commons.logging.LogFactory;
|
||||
import org.codelibs.sastruts.core.annotation.Token;
|
||||
import org.seasar.framework.beans.util.Beans;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.struts.annotation.ActionForm;
|
||||
import org.seasar.struts.annotation.Execute;
|
||||
import org.seasar.struts.exception.ActionMessagesException;
|
||||
|
|
|
@ -35,7 +35,7 @@ import org.apache.commons.logging.Log;
|
|||
import org.apache.commons.logging.LogFactory;
|
||||
import org.codelibs.sastruts.core.annotation.Token;
|
||||
import org.seasar.framework.beans.util.Beans;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.struts.annotation.ActionForm;
|
||||
import org.seasar.struts.annotation.Execute;
|
||||
import org.seasar.struts.exception.ActionMessagesException;
|
||||
|
|
|
@ -35,7 +35,7 @@ import org.apache.commons.logging.Log;
|
|||
import org.apache.commons.logging.LogFactory;
|
||||
import org.codelibs.sastruts.core.annotation.Token;
|
||||
import org.seasar.framework.beans.util.Beans;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.struts.annotation.ActionForm;
|
||||
import org.seasar.struts.annotation.Execute;
|
||||
import org.seasar.struts.exception.ActionMessagesException;
|
||||
|
|
|
@ -35,7 +35,7 @@ import org.apache.commons.logging.Log;
|
|||
import org.apache.commons.logging.LogFactory;
|
||||
import org.codelibs.sastruts.core.annotation.Token;
|
||||
import org.seasar.framework.beans.util.Beans;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.struts.annotation.ActionForm;
|
||||
import org.seasar.struts.annotation.Execute;
|
||||
import org.seasar.struts.exception.ActionMessagesException;
|
||||
|
|
|
@ -36,7 +36,7 @@ import org.apache.commons.logging.Log;
|
|||
import org.apache.commons.logging.LogFactory;
|
||||
import org.codelibs.sastruts.core.annotation.Token;
|
||||
import org.seasar.framework.beans.util.Beans;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.struts.annotation.ActionForm;
|
||||
import org.seasar.struts.annotation.Execute;
|
||||
import org.seasar.struts.exception.ActionMessagesException;
|
||||
|
|
|
@ -35,7 +35,7 @@ import org.apache.commons.logging.Log;
|
|||
import org.apache.commons.logging.LogFactory;
|
||||
import org.codelibs.sastruts.core.annotation.Token;
|
||||
import org.seasar.framework.beans.util.Beans;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.struts.annotation.ActionForm;
|
||||
import org.seasar.struts.annotation.Execute;
|
||||
import org.seasar.struts.exception.ActionMessagesException;
|
||||
|
|
|
@ -35,7 +35,7 @@ import org.apache.commons.logging.Log;
|
|||
import org.apache.commons.logging.LogFactory;
|
||||
import org.codelibs.sastruts.core.annotation.Token;
|
||||
import org.seasar.framework.beans.util.Beans;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.struts.annotation.ActionForm;
|
||||
import org.seasar.struts.annotation.Execute;
|
||||
import org.seasar.struts.exception.ActionMessagesException;
|
||||
|
|
|
@ -36,7 +36,7 @@ import org.apache.http.auth.UsernamePasswordCredentials;
|
|||
import org.apache.http.impl.auth.BasicScheme;
|
||||
import org.apache.http.impl.auth.DigestScheme;
|
||||
import org.apache.http.impl.auth.NTLMScheme;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.robot.client.S2RobotClientFactory;
|
||||
import org.seasar.robot.client.http.Authentication;
|
||||
import org.seasar.robot.client.http.HcHttpClient;
|
||||
|
|
|
@ -22,6 +22,8 @@ import jp.sf.fess.Constants;
|
|||
import jp.sf.fess.db.bsentity.BsFailureUrl;
|
||||
import jp.sf.fess.util.ComponentUtil;
|
||||
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
|
||||
/**
|
||||
* The entity of FAILURE_URL.
|
||||
* <p>
|
||||
|
@ -50,7 +52,7 @@ public class FailureUrl extends BsFailureUrl {
|
|||
if (crawlingConfig != null) {
|
||||
return crawlingConfig.getName();
|
||||
}
|
||||
return Constants.EMPTY_STRING;
|
||||
return StringUtil.EMPTY;
|
||||
}
|
||||
|
||||
public String getFileConfigName() {
|
||||
|
@ -59,7 +61,7 @@ public class FailureUrl extends BsFailureUrl {
|
|||
if (crawlingConfig != null) {
|
||||
return crawlingConfig.getName();
|
||||
}
|
||||
return Constants.EMPTY_STRING;
|
||||
return StringUtil.EMPTY;
|
||||
}
|
||||
|
||||
public String getDataConfigName() {
|
||||
|
@ -68,6 +70,6 @@ public class FailureUrl extends BsFailureUrl {
|
|||
if (crawlingConfig != null) {
|
||||
return crawlingConfig.getName();
|
||||
}
|
||||
return Constants.EMPTY_STRING;
|
||||
return StringUtil.EMPTY;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ import jp.sf.fess.util.ComponentUtil;
|
|||
import jp.sf.fess.util.ParameterUtil;
|
||||
|
||||
import org.seasar.framework.container.SingletonS2Container;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.robot.client.S2RobotClientFactory;
|
||||
import org.seasar.robot.client.smb.SmbAuthentication;
|
||||
import org.seasar.robot.client.smb.SmbClient;
|
||||
|
|
|
@ -21,7 +21,7 @@ import java.util.List;
|
|||
|
||||
import jp.sf.fess.db.bsentity.BsLabelType;
|
||||
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
|
||||
/**
|
||||
* The entity of LABEL_TYPE.
|
||||
|
|
|
@ -21,7 +21,7 @@ import java.text.SimpleDateFormat;
|
|||
import jp.sf.fess.Constants;
|
||||
import jp.sf.fess.db.bsentity.BsSearchLog;
|
||||
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
|
||||
/**
|
||||
* The entity of SEARCH_LOG.
|
||||
|
|
|
@ -30,7 +30,7 @@ import org.apache.http.auth.UsernamePasswordCredentials;
|
|||
import org.apache.http.impl.auth.BasicScheme;
|
||||
import org.apache.http.impl.auth.DigestScheme;
|
||||
import org.apache.http.impl.auth.NTLMScheme;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.robot.RobotSystemException;
|
||||
import org.seasar.robot.client.http.Authentication;
|
||||
import org.seasar.robot.client.http.impl.AuthenticationImpl;
|
||||
|
|
|
@ -31,7 +31,7 @@ import jp.sf.fess.service.WebAuthenticationService;
|
|||
import jp.sf.fess.util.ParameterUtil;
|
||||
|
||||
import org.seasar.framework.container.SingletonS2Container;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.robot.client.S2RobotClientFactory;
|
||||
import org.seasar.robot.client.http.Authentication;
|
||||
import org.seasar.robot.client.http.HcHttpClient;
|
||||
|
|
|
@ -28,7 +28,7 @@ import org.seasar.extension.timer.TimeoutTarget;
|
|||
import org.seasar.extension.timer.TimeoutTask;
|
||||
import org.seasar.framework.container.annotation.tiger.DestroyMethod;
|
||||
import org.seasar.framework.container.annotation.tiger.InitMethod;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
|
|
|
@ -36,6 +36,7 @@ import jp.sf.fess.dict.DictionaryFile;
|
|||
import org.apache.commons.io.FileUtils;
|
||||
import org.apache.commons.io.IOUtils;
|
||||
import org.apache.lucene.analysis.ja.util.CSVUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
|
||||
public class UserDictFile extends DictionaryFile<UserDictItem> {
|
||||
private static final String USERDICT = "userDict";
|
||||
|
@ -133,7 +134,7 @@ public class UserDictFile extends DictionaryFile<UserDictItem> {
|
|||
@Override
|
||||
public synchronized void delete(final UserDictItem item) {
|
||||
final UserDictItem userDictItem = item;
|
||||
userDictItem.setNewToken(Constants.EMPTY_STRING);
|
||||
userDictItem.setNewToken(StringUtil.EMPTY);
|
||||
UserDictUpdater updater = null;
|
||||
try {
|
||||
updater = new UserDictUpdater(file, userDictItem);
|
||||
|
|
|
@ -31,8 +31,8 @@ import jp.sf.fess.helper.SystemHelper;
|
|||
import jp.sf.fess.taglib.FessFunctions;
|
||||
import jp.sf.fess.util.ComponentUtil;
|
||||
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.framework.util.OgnlUtil;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
|
@ -124,7 +124,7 @@ public abstract class AbstractDataStoreImpl implements DataStore {
|
|||
protected Object convertValue(final String template,
|
||||
final Map<String, String> paramMap) {
|
||||
if (StringUtil.isEmpty(template)) {
|
||||
return Constants.EMPTY_STRING;
|
||||
return StringUtil.EMPTY;
|
||||
}
|
||||
|
||||
try {
|
||||
|
|
|
@ -38,8 +38,8 @@ import jp.sf.orangesignal.csv.CsvConfig;
|
|||
import jp.sf.orangesignal.csv.CsvReader;
|
||||
|
||||
import org.apache.commons.io.IOUtils;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.framework.container.SingletonS2Container;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.seasar.robot.RobotCrawlAccessException;
|
||||
import org.seasar.robot.RobotMultipleCrawlAccessException;
|
||||
import org.slf4j.Logger;
|
||||
|
@ -214,7 +214,7 @@ public class CsvDataStoreImpl extends AbstractDataStoreImpl {
|
|||
String key = null;
|
||||
String value = list.get(i);
|
||||
if (value == null) {
|
||||
value = Constants.EMPTY_STRING;
|
||||
value = StringUtil.EMPTY;
|
||||
}
|
||||
if (headerList != null && headerList.size() > i) {
|
||||
key = headerList.get(i);
|
||||
|
|
|
@ -32,7 +32,7 @@ import jp.sf.fess.db.exentity.DataCrawlingConfig;
|
|||
import jp.sf.fess.ds.DataStoreException;
|
||||
import jp.sf.fess.ds.IndexUpdateCallback;
|
||||
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
package jp.sf.fess.entity;
|
||||
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.struts.annotation.Mask;
|
||||
import org.seasar.struts.annotation.Maxbytelength;
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ import java.util.List;
|
|||
|
||||
import jp.sf.fess.Constants;
|
||||
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
|
||||
public class SearchQuery {
|
||||
private String query;
|
||||
|
|
|
@ -72,7 +72,7 @@ import org.seasar.framework.container.servlet.SingletonS2ContainerInitializer;
|
|||
import org.seasar.framework.mock.servlet.MockHttpServletRequestImpl;
|
||||
import org.seasar.framework.mock.servlet.MockHttpServletResponseImpl;
|
||||
import org.seasar.framework.mock.servlet.MockServletContextImpl;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ import java.util.Map;
|
|||
|
||||
import jp.sf.fess.Constants;
|
||||
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.struts.annotation.IntegerType;
|
||||
|
||||
public class StatsForm implements Serializable {
|
||||
|
|
|
@ -24,7 +24,7 @@ import jp.sf.fess.Constants;
|
|||
import jp.sf.fess.crud.form.admin.BsWebCrawlingConfigForm;
|
||||
import jp.sf.fess.util.ComponentUtil;
|
||||
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
|
||||
public class WebCrawlingConfigForm extends BsWebCrawlingConfigForm implements
|
||||
Serializable {
|
||||
|
|
|
@ -39,7 +39,7 @@ import org.apache.solr.client.solrj.response.FacetField;
|
|||
import org.apache.solr.client.solrj.response.QueryResponse;
|
||||
import org.codelibs.solr.lib.SolrGroup;
|
||||
import org.seasar.framework.container.SingletonS2Container;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ package jp.sf.fess.helper;
|
|||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
|
||||
public class FileTypeHelper {
|
||||
protected String fieldName = "filetype_s";
|
||||
|
|
|
@ -34,7 +34,7 @@ import jp.sf.fess.db.exbhv.pmbean.HotSearchWordPmb;
|
|||
|
||||
import org.seasar.dbflute.jdbc.CursorHandler;
|
||||
import org.seasar.framework.container.annotation.tiger.InitMethod;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
|
||||
public class HotSearchWordHelper {
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ import jp.sf.fess.service.LabelTypeService;
|
|||
|
||||
import org.seasar.framework.container.SingletonS2Container;
|
||||
import org.seasar.framework.container.annotation.tiger.InitMethod;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ import jp.sf.fess.FessSystemException;
|
|||
import org.apache.commons.io.IOUtils;
|
||||
import org.seasar.framework.container.annotation.tiger.InitMethod;
|
||||
import org.seasar.framework.util.FileUtil;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.struts.util.ServletContextUtil;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
|
|
@ -49,7 +49,7 @@ import org.codelibs.solr.lib.policy.StatusPolicy;
|
|||
import org.seasar.framework.container.SingletonS2Container;
|
||||
import org.seasar.framework.container.annotation.tiger.InitMethod;
|
||||
import org.seasar.framework.util.FileUtil;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.robot.util.CharUtil;
|
||||
import org.seasar.struts.util.MessageResourcesUtil;
|
||||
import org.seasar.struts.util.RequestUtil;
|
||||
|
|
|
@ -39,7 +39,7 @@ import jp.sf.fess.helper.UserAgentHelper.UserAgentType;
|
|||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.codelibs.core.util.DynamicProperties;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.framework.util.URLUtil;
|
||||
import org.seasar.robot.util.CharUtil;
|
||||
import org.seasar.struts.taglib.S2Functions;
|
||||
|
@ -281,8 +281,7 @@ public class ViewHelper implements Serializable {
|
|||
|
||||
if (browserTypeHelper.isMobile()) {
|
||||
final String mobileTrasncoder = crawlerProperties.getProperty(
|
||||
Constants.MOBILE_TRANSCODER_PROPERTY,
|
||||
Constants.EMPTY_STRING);
|
||||
Constants.MOBILE_TRANSCODER_PROPERTY, StringUtil.EMPTY);
|
||||
if (Constants.GOOGLE_MOBILE_TRANSCODER.equals(mobileTrasncoder)) {
|
||||
return getGoogleMobileTranscoderLink(appendQueryParameter(
|
||||
document, url));
|
||||
|
|
|
@ -37,7 +37,7 @@ import jp.sf.fess.util.ComponentUtil;
|
|||
import org.codelibs.core.util.DynamicProperties;
|
||||
import org.codelibs.solr.lib.SolrGroup;
|
||||
import org.seasar.framework.container.SingletonS2Container;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.robot.S2Robot;
|
||||
import org.seasar.robot.S2RobotContext;
|
||||
import org.seasar.robot.service.DataService;
|
||||
|
|
|
@ -30,7 +30,7 @@ import jp.sf.fess.Constants;
|
|||
import jp.sf.fess.helper.SearchLogHelper;
|
||||
import jp.sf.fess.helper.UserInfoHelper;
|
||||
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.robot.util.LruHashMap;
|
||||
import org.seasar.struts.util.RequestUtil;
|
||||
import org.seasar.struts.util.ResponseUtil;
|
||||
|
@ -137,7 +137,7 @@ public class CookieUserInfoHelperImpl implements UserInfoHelper {
|
|||
return queryId;
|
||||
}
|
||||
}
|
||||
return Constants.EMPTY_STRING;
|
||||
return StringUtil.EMPTY;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -44,11 +44,10 @@ import jp.sf.fess.helper.SystemHelper;
|
|||
import jp.sf.fess.util.QueryUtil;
|
||||
import jp.sf.fess.util.SearchParamMap;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.codelibs.core.CoreLibConstants;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.framework.container.annotation.tiger.Binding;
|
||||
import org.seasar.framework.container.annotation.tiger.BindingType;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.seasar.struts.util.RequestUtil;
|
||||
|
||||
public class QueryHelperImpl implements QueryHelper, Serializable {
|
||||
|
@ -175,7 +174,7 @@ public class QueryHelperImpl implements QueryHelper, Serializable {
|
|||
|
||||
final SearchQuery searchQuery = buildQuery(q);
|
||||
if (!searchQuery.queryExists()) {
|
||||
return searchQuery.query(Constants.EMPTY_STRING);
|
||||
return searchQuery.query(StringUtil.EMPTY);
|
||||
}
|
||||
|
||||
if (browserTypeHelper == null && roleQueryHelper == null
|
||||
|
@ -251,7 +250,7 @@ public class QueryHelperImpl implements QueryHelper, Serializable {
|
|||
fieldLogMap);
|
||||
String solrQuery;
|
||||
if (q == null || "()".equals(q)) {
|
||||
solrQuery = Constants.EMPTY_STRING;
|
||||
solrQuery = StringUtil.EMPTY;
|
||||
// } else if (q.startsWith("(") && q.endsWith(")")) {
|
||||
// solrQuery = q.substring(1, q.length() - 1);
|
||||
} else {
|
||||
|
@ -447,7 +446,7 @@ public class QueryHelperImpl implements QueryHelper, Serializable {
|
|||
searchQueryBuf.append(queryBuf.toString());
|
||||
operator = _AND_;
|
||||
} else {
|
||||
operator = Constants.EMPTY_STRING;
|
||||
operator = StringUtil.EMPTY;
|
||||
}
|
||||
if (!notOperatorList.isEmpty()) {
|
||||
final String q = searchQueryBuf.toString();
|
||||
|
@ -773,7 +772,7 @@ public class QueryHelperImpl implements QueryHelper, Serializable {
|
|||
final String q = buildFacetQueryInternal(query);
|
||||
String solrQuery;
|
||||
if (q == null || "()".equals(q)) {
|
||||
solrQuery = Constants.EMPTY_STRING;
|
||||
solrQuery = StringUtil.EMPTY;
|
||||
} else {
|
||||
solrQuery = unbracketQuery(q);
|
||||
}
|
||||
|
@ -870,7 +869,7 @@ public class QueryHelperImpl implements QueryHelper, Serializable {
|
|||
searchQueryBuf.append(queryBuf.toString());
|
||||
operator = _AND_;
|
||||
} else {
|
||||
operator = Constants.EMPTY_STRING;
|
||||
operator = StringUtil.EMPTY;
|
||||
}
|
||||
if (!notOperatorList.isEmpty()) {
|
||||
final String q = searchQueryBuf.toString();
|
||||
|
@ -967,7 +966,7 @@ public class QueryHelperImpl implements QueryHelper, Serializable {
|
|||
@Override
|
||||
public String buildOptionQuery(final SearchParamMap optionMap) {
|
||||
if (optionMap == null) {
|
||||
return CoreLibConstants.EMPTY_STRING;
|
||||
return StringUtil.EMPTY;
|
||||
}
|
||||
|
||||
final StringBuilder buf = new StringBuilder();
|
||||
|
@ -1047,7 +1046,7 @@ public class QueryHelperImpl implements QueryHelper, Serializable {
|
|||
for (final String nq : nqs) {
|
||||
if (StringUtil.isNotBlank(nq)) {
|
||||
buf.append(' ');
|
||||
String split = CoreLibConstants.EMPTY_STRING;
|
||||
String split = StringUtil.EMPTY;
|
||||
final List<QueryPart> partList = splitQuery(nq, null, null,
|
||||
null);
|
||||
for (final QueryPart part : partList) {
|
||||
|
@ -1438,7 +1437,7 @@ public class QueryHelperImpl implements QueryHelper, Serializable {
|
|||
if (StringUtil.isNotBlank(param)) {
|
||||
newValues[i] = param;
|
||||
} else {
|
||||
newValues[i] = CoreLibConstants.EMPTY_STRING;
|
||||
newValues[i] = StringUtil.EMPTY;
|
||||
}
|
||||
} else {
|
||||
newValues[i] = value;
|
||||
|
|
|
@ -34,7 +34,7 @@ import jp.sf.fess.helper.SystemHelper;
|
|||
|
||||
import org.codelibs.core.crypto.CachedCipher;
|
||||
import org.codelibs.sastruts.core.SSCConstants;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.struts.util.RequestUtil;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
|
|
@ -40,8 +40,8 @@ import jp.sf.fess.service.UserInfoService;
|
|||
import jp.sf.fess.util.ComponentUtil;
|
||||
import jp.sf.fess.util.FessBeans;
|
||||
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.framework.container.SingletonS2Container;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
|
@ -73,7 +73,7 @@ public class SearchLogHelperImpl extends SearchLogHelper {
|
|||
protected void processSearchLogQueue(final Queue<SearchLog> queue) {
|
||||
final List<SearchLog> searchLogList = new ArrayList<SearchLog>();
|
||||
final String value = crawlerProperties.getProperty(
|
||||
Constants.PURGE_BY_BOTS_PROPERTY, Constants.EMPTY_STRING);
|
||||
Constants.PURGE_BY_BOTS_PROPERTY, StringUtil.EMPTY);
|
||||
String[] botNames;
|
||||
if (StringUtil.isBlank(value)) {
|
||||
botNames = new String[0];
|
||||
|
|
|
@ -35,7 +35,7 @@ import org.apache.http.auth.UsernamePasswordCredentials;
|
|||
import org.apache.http.client.methods.HttpGet;
|
||||
import org.apache.http.impl.client.DefaultHttpClient;
|
||||
import org.seasar.framework.util.InputStreamUtil;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ import jp.sf.fess.util.InputStreamThread;
|
|||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.commons.lang.SystemUtils;
|
||||
import org.seasar.framework.container.SingletonS2Container;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ import org.seasar.dbflute.cbean.EntityRowHandler;
|
|||
import org.seasar.framework.container.SingletonS2Container;
|
||||
import org.seasar.framework.container.annotation.tiger.DestroyMethod;
|
||||
import org.seasar.framework.container.annotation.tiger.InitMethod;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ import java.util.List;
|
|||
|
||||
import jp.sf.fess.Constants;
|
||||
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
|
||||
import com.ibm.icu.text.SimpleDateFormat;
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ import jp.sf.fess.util.ComponentUtil;
|
|||
|
||||
import org.apache.commons.io.FileUtils;
|
||||
import org.seasar.framework.container.annotation.tiger.InitMethod;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.robot.util.LruHashMap;
|
||||
import org.seasar.struts.util.RequestUtil;
|
||||
import org.slf4j.Logger;
|
||||
|
|
|
@ -27,7 +27,6 @@ import java.util.List;
|
|||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import jp.sf.fess.Constants;
|
||||
import jp.sf.fess.db.cbean.ClickLogCB;
|
||||
import jp.sf.fess.db.cbean.SearchLogCB;
|
||||
import jp.sf.fess.db.exbhv.ClickLogBhv;
|
||||
|
@ -41,6 +40,7 @@ import jp.sf.orangesignal.csv.CsvWriter;
|
|||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.codelibs.core.CoreLibConstants;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.dbflute.cbean.EntityRowHandler;
|
||||
|
||||
import com.ibm.icu.text.SimpleDateFormat;
|
||||
|
@ -129,7 +129,7 @@ public class ClickLogService implements Serializable {
|
|||
private void addToList(final List<String> list,
|
||||
final Object value) {
|
||||
if (value == null) {
|
||||
list.add(Constants.EMPTY_STRING);
|
||||
list.add(StringUtil.EMPTY);
|
||||
} else if (value instanceof Timestamp) {
|
||||
list.add(sdf.format((Date) value));
|
||||
} else {
|
||||
|
|
|
@ -29,7 +29,6 @@ import java.util.Set;
|
|||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import jp.sf.fess.Constants;
|
||||
import jp.sf.fess.FessSystemException;
|
||||
import jp.sf.fess.crud.service.BsCrawlingSessionService;
|
||||
import jp.sf.fess.db.cbean.CrawlingSessionCB;
|
||||
|
@ -45,11 +44,11 @@ import jp.sf.orangesignal.csv.CsvWriter;
|
|||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.codelibs.core.CoreLibConstants;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.dbflute.bhv.DeleteOption;
|
||||
import org.seasar.dbflute.cbean.EntityRowHandler;
|
||||
import org.seasar.dbflute.cbean.ListResultBean;
|
||||
import org.seasar.dbflute.cbean.coption.LikeSearchOption;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
|
||||
import com.ibm.icu.text.SimpleDateFormat;
|
||||
|
||||
|
@ -263,7 +262,7 @@ public class CrawlingSessionService extends BsCrawlingSessionService implements
|
|||
private void addToList(final List<String> list,
|
||||
final Object value) {
|
||||
if (value == null) {
|
||||
list.add(Constants.EMPTY_STRING);
|
||||
list.add(StringUtil.EMPTY);
|
||||
} else if (value instanceof Timestamp) {
|
||||
list.add(sdf.format((Date) value));
|
||||
} else {
|
||||
|
|
|
@ -115,7 +115,7 @@ import jp.sf.fess.util.ComponentUtil;
|
|||
import org.codelibs.core.util.DynamicProperties;
|
||||
import org.seasar.dbflute.bhv.DeleteOption;
|
||||
import org.seasar.framework.beans.util.Beans;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ import org.seasar.dbflute.bhv.DeleteOption;
|
|||
import org.seasar.dbflute.cbean.ListResultBean;
|
||||
import org.seasar.dbflute.cbean.coption.LikeSearchOption;
|
||||
import org.seasar.framework.container.SingletonS2Container;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
|
||||
public class FailureUrlService extends BsFailureUrlService implements
|
||||
Serializable {
|
||||
|
|
|
@ -29,7 +29,6 @@ import java.util.Map;
|
|||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import jp.sf.fess.Constants;
|
||||
import jp.sf.fess.crud.service.BsFavoriteLogService;
|
||||
import jp.sf.fess.db.cbean.FavoriteLogCB;
|
||||
import jp.sf.fess.db.cbean.UserInfoCB;
|
||||
|
@ -43,10 +42,10 @@ import jp.sf.orangesignal.csv.CsvWriter;
|
|||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.codelibs.core.CoreLibConstants;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.dbflute.bhv.DeleteOption;
|
||||
import org.seasar.dbflute.cbean.EntityRowHandler;
|
||||
import org.seasar.dbflute.cbean.ListResultBean;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
|
||||
import com.ibm.icu.text.SimpleDateFormat;
|
||||
|
||||
|
@ -249,7 +248,7 @@ public class FavoriteLogService extends BsFavoriteLogService implements
|
|||
.selectEntity(cb);
|
||||
String userCode;
|
||||
if (userInfo == null) {
|
||||
userCode = Constants.EMPTY_STRING;
|
||||
userCode = StringUtil.EMPTY;
|
||||
} else {
|
||||
userCode = userInfo.getCode();
|
||||
}
|
||||
|
@ -269,7 +268,7 @@ public class FavoriteLogService extends BsFavoriteLogService implements
|
|||
private void addToList(final List<String> list,
|
||||
final Object value) {
|
||||
if (value == null) {
|
||||
list.add(Constants.EMPTY_STRING);
|
||||
list.add(StringUtil.EMPTY);
|
||||
} else if (value instanceof Timestamp) {
|
||||
list.add(sdf.format((Date) value));
|
||||
} else {
|
||||
|
|
|
@ -48,12 +48,12 @@ import net.arnx.jsonic.JSON;
|
|||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.codelibs.core.CoreLibConstants;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.dbflute.bhv.DeleteOption;
|
||||
import org.seasar.dbflute.cbean.EntityRowHandler;
|
||||
import org.seasar.dbflute.cbean.ListResultBean;
|
||||
import org.seasar.dbflute.cbean.coption.LikeSearchOption;
|
||||
import org.seasar.framework.container.SingletonS2Container;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
|
||||
import com.ibm.icu.text.SimpleDateFormat;
|
||||
|
||||
|
@ -261,8 +261,8 @@ public class SearchLogService extends BsSearchLogService implements
|
|||
final ListResultBean<SearchFieldLog> fieldLogList = SingletonS2Container
|
||||
.getComponent(SearchFieldLogBhv.class).selectList(
|
||||
cb);
|
||||
String query = Constants.EMPTY_STRING;
|
||||
String solrQuery = Constants.EMPTY_STRING;
|
||||
String query = StringUtil.EMPTY;
|
||||
String solrQuery = StringUtil.EMPTY;
|
||||
final List<Map<String, String>> jsonObjList = new ArrayList<Map<String, String>>(
|
||||
fieldLogList.size());
|
||||
for (final SearchFieldLog fieldLog : fieldLogList) {
|
||||
|
@ -308,7 +308,7 @@ public class SearchLogService extends BsSearchLogService implements
|
|||
private void addToList(final List<String> list,
|
||||
final Object value) {
|
||||
if (value == null) {
|
||||
list.add(Constants.EMPTY_STRING);
|
||||
list.add(StringUtil.EMPTY);
|
||||
} else if (value instanceof Timestamp) {
|
||||
list.add(sdf.format((Date) value));
|
||||
} else {
|
||||
|
|
|
@ -52,7 +52,7 @@ import org.apache.solr.common.util.NamedList;
|
|||
import org.codelibs.solr.lib.SolrGroup;
|
||||
import org.codelibs.solr.lib.SolrGroupManager;
|
||||
import org.codelibs.solr.lib.policy.QueryType;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
|
||||
public class SearchService implements Serializable {
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ import jp.sf.fess.dict.synonym.SynonymItem;
|
|||
import jp.sf.fess.pager.SynonymPager;
|
||||
|
||||
import org.seasar.framework.beans.util.Beans;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
|
||||
public class SynonymService {
|
||||
@Resource
|
||||
|
|
|
@ -31,7 +31,7 @@ import jp.sf.fess.dict.userdict.UserDictItem;
|
|||
import jp.sf.fess.pager.UserDictPager;
|
||||
|
||||
import org.seasar.framework.beans.util.Beans;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
|
||||
public class UserDictService {
|
||||
@Resource
|
||||
|
|
|
@ -34,7 +34,7 @@ import jp.sf.fess.pager.UserInfoPager;
|
|||
|
||||
import org.seasar.dbflute.bhv.DeleteOption;
|
||||
import org.seasar.dbflute.bhv.UpdateOption;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
|
||||
public class UserInfoService extends BsUserInfoService implements Serializable {
|
||||
|
||||
|
|
|
@ -37,13 +37,13 @@ import jp.sf.fess.screenshot.ScreenShotManager;
|
|||
import jp.sf.fess.util.ComponentUtil;
|
||||
|
||||
import org.apache.solr.common.SolrInputDocument;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.codelibs.solr.lib.SolrGroup;
|
||||
import org.codelibs.solr.lib.exception.SolrLibException;
|
||||
import org.seasar.dbflute.cbean.ListResultBean;
|
||||
import org.seasar.framework.container.SingletonS2Container;
|
||||
import org.seasar.framework.container.annotation.tiger.Binding;
|
||||
import org.seasar.framework.container.annotation.tiger.BindingType;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.seasar.robot.S2Robot;
|
||||
import org.seasar.robot.db.cbean.AccessResultCB;
|
||||
import org.seasar.robot.db.exbhv.AccessResultBhv;
|
||||
|
@ -171,28 +171,28 @@ public class IndexUpdater extends Thread {
|
|||
executeTime = 0;
|
||||
documentSize = 0;
|
||||
|
||||
final AccessResultCB cb = new AccessResultCB();
|
||||
cb.setupSelect_AccessResultDataAsOne();
|
||||
cb.query().setSessionId_InScope(sessionIdList);
|
||||
cb.query().addOrderBy_CreateTime_Asc();
|
||||
cb.query().setStatus_Equal(org.seasar.robot.Constants.OK_STATUS);
|
||||
if (maxDocumentCacheSize <= 0) {
|
||||
maxDocumentCacheSize = 1;
|
||||
}
|
||||
cb.fetchFirst(maxDocumentCacheSize);
|
||||
cb.fetchPage(1);
|
||||
|
||||
final List<SolrInputDocument> docList = new ArrayList<SolrInputDocument>();
|
||||
final List<org.seasar.robot.entity.AccessResult> accessResultList = new ArrayList<org.seasar.robot.entity.AccessResult>();
|
||||
final List<org.seasar.robot.db.exentity.AccessResultData> accessResultDataList = new ArrayList<org.seasar.robot.db.exentity.AccessResultData>();
|
||||
|
||||
long updateTime = System.currentTimeMillis();
|
||||
int solrErrorCount = 0;
|
||||
int errorCount = 0;
|
||||
int emptyListCount = 0;
|
||||
final IntervalControlHelper intervalControlHelper = ComponentUtil
|
||||
.getIntervalControlHelper();
|
||||
try {
|
||||
final AccessResultCB cb = new AccessResultCB();
|
||||
cb.setupSelect_AccessResultDataAsOne();
|
||||
cb.query().setSessionId_InScope(sessionIdList);
|
||||
cb.query().addOrderBy_CreateTime_Asc();
|
||||
cb.query().setStatus_Equal(org.seasar.robot.Constants.OK_STATUS);
|
||||
if (maxDocumentCacheSize <= 0) {
|
||||
maxDocumentCacheSize = 1;
|
||||
}
|
||||
cb.fetchFirst(maxDocumentCacheSize);
|
||||
cb.fetchPage(1);
|
||||
|
||||
final List<SolrInputDocument> docList = new ArrayList<SolrInputDocument>();
|
||||
final List<org.seasar.robot.entity.AccessResult> accessResultList = new ArrayList<org.seasar.robot.entity.AccessResult>();
|
||||
final List<org.seasar.robot.db.exentity.AccessResultData> accessResultDataList = new ArrayList<org.seasar.robot.db.exentity.AccessResultData>();
|
||||
|
||||
long updateTime = System.currentTimeMillis();
|
||||
int solrErrorCount = 0;
|
||||
int errorCount = 0;
|
||||
int emptyListCount = 0;
|
||||
while (!finishCrawling || !accessResultList.isEmpty()) {
|
||||
try {
|
||||
final int sessionIdListSize = finishedSessionIdList.size();
|
||||
|
@ -367,6 +367,7 @@ public class IndexUpdater extends Thread {
|
|||
+ accessResultData.getTransformerName());
|
||||
continue;
|
||||
}
|
||||
@SuppressWarnings("unchecked")
|
||||
final Map<String, Object> map = (Map<String, Object>) transformer
|
||||
.getData(accessResultData);
|
||||
if (map.isEmpty()) {
|
||||
|
|
|
@ -30,7 +30,7 @@ import jp.sf.fess.util.ResourceUtil;
|
|||
import org.codelibs.core.util.DynamicProperties;
|
||||
import org.codelibs.solr.lib.policy.QueryType;
|
||||
import org.codelibs.solr.lib.policy.impl.StatusPolicyImpl;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ import org.apache.tika.metadata.TikaMetadataKeys;
|
|||
import org.codelibs.core.util.DynamicProperties;
|
||||
import org.seasar.framework.container.SingletonS2Container;
|
||||
import org.seasar.framework.util.SerializeUtil;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.robot.RobotCrawlAccessException;
|
||||
import org.seasar.robot.RobotSystemException;
|
||||
import org.seasar.robot.client.smb.SmbClient;
|
||||
|
|
|
@ -18,10 +18,8 @@ package jp.sf.fess.transformer;
|
|||
|
||||
import java.net.URLDecoder;
|
||||
|
||||
import jp.sf.fess.Constants;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.robot.transformer.impl.XpathTransformer;
|
||||
|
||||
public abstract class AbstractFessXpathTransformer extends XpathTransformer {
|
||||
|
@ -35,7 +33,7 @@ public abstract class AbstractFessXpathTransformer extends XpathTransformer {
|
|||
|
||||
protected String getHost(final String u) {
|
||||
if (StringUtil.isBlank(u)) {
|
||||
return Constants.EMPTY_STRING; // empty
|
||||
return StringUtil.EMPTY; // empty
|
||||
}
|
||||
|
||||
String url = u;
|
||||
|
@ -60,7 +58,7 @@ public abstract class AbstractFessXpathTransformer extends XpathTransformer {
|
|||
|
||||
protected String getSite(final String u, final String encoding) {
|
||||
if (StringUtil.isBlank(u)) {
|
||||
return Constants.EMPTY_STRING; // empty
|
||||
return StringUtil.EMPTY; // empty
|
||||
}
|
||||
|
||||
String url = u;
|
||||
|
@ -102,7 +100,7 @@ public abstract class AbstractFessXpathTransformer extends XpathTransformer {
|
|||
|
||||
protected String normalizeContent(final String content) {
|
||||
if (content == null) {
|
||||
return Constants.EMPTY_STRING; // empty
|
||||
return StringUtil.EMPTY; // empty
|
||||
}
|
||||
return content.replaceAll("\\s+", " ");
|
||||
}
|
||||
|
|
|
@ -52,10 +52,10 @@ import jp.sf.fess.util.ComponentUtil;
|
|||
import org.apache.commons.io.IOUtils;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.xpath.objects.XObject;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.cyberneko.html.parsers.DOMParser;
|
||||
import org.seasar.framework.util.OgnlUtil;
|
||||
import org.seasar.framework.util.SerializeUtil;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.seasar.robot.RobotCrawlAccessException;
|
||||
import org.seasar.robot.RobotSystemException;
|
||||
import org.seasar.robot.client.fs.ChildUrlsException;
|
||||
|
@ -358,7 +358,7 @@ public class FessXpathTransformer extends AbstractFessXpathTransformer {
|
|||
protected String convertValue(final String template,
|
||||
final Map<String, Object> paramMap) {
|
||||
if (StringUtil.isEmpty(template)) {
|
||||
return Constants.EMPTY_STRING;
|
||||
return StringUtil.EMPTY;
|
||||
}
|
||||
|
||||
try {
|
||||
|
|
|
@ -19,10 +19,9 @@ package jp.sf.fess.util;
|
|||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import jp.sf.fess.Constants;
|
||||
import jp.sf.fess.FessSystemException;
|
||||
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
|
||||
public class ParameterUtil {
|
||||
protected ParameterUtil() {
|
||||
|
@ -45,10 +44,10 @@ public class ParameterUtil {
|
|||
.substring(pos + 1).trim());
|
||||
} else {
|
||||
paramMap.put(line.substring(0, pos).trim(),
|
||||
Constants.EMPTY_STRING);
|
||||
StringUtil.EMPTY);
|
||||
}
|
||||
} else {
|
||||
paramMap.put(line.trim(), Constants.EMPTY_STRING);
|
||||
paramMap.put(line.trim(), StringUtil.EMPTY);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@ import org.apache.solr.client.solrj.response.QueryResponse;
|
|||
import org.apache.solr.common.SolrDocument;
|
||||
import org.apache.solr.common.SolrDocumentList;
|
||||
import org.apache.solr.common.util.SimpleOrderedMap;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
|
@ -187,6 +187,7 @@ public class QueryResponseList implements List<Map<String, Object>> {
|
|||
final Object docValuesObj = queryResponse.getResponse().get(
|
||||
DOC_VALUES);
|
||||
if (docValuesObj instanceof SimpleOrderedMap) {
|
||||
@SuppressWarnings("unchecked")
|
||||
final SimpleOrderedMap<List<Long>> docValuesMap = (SimpleOrderedMap<List<Long>>) docValuesObj;
|
||||
for (int i = 0; i < docValuesMap.size(); i++) {
|
||||
final String name = docValuesMap.getName(i);
|
||||
|
|
|
@ -24,7 +24,7 @@ import java.util.regex.Pattern;
|
|||
import javax.servlet.ServletContext;
|
||||
|
||||
import org.seasar.framework.container.SingletonS2Container;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.struts.util.ServletContextUtil;
|
||||
|
||||
public class ResourceUtil {
|
||||
|
|
|
@ -23,7 +23,7 @@ import org.apache.commons.validator.Validator;
|
|||
import org.apache.commons.validator.ValidatorAction;
|
||||
import org.apache.struts.action.ActionMessages;
|
||||
import org.quartz.CronExpression;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.struts.validator.S2FieldChecks;
|
||||
|
||||
public class CronExpressionChecks extends S2FieldChecks {
|
||||
|
|
|
@ -24,7 +24,7 @@ import org.apache.commons.validator.Field;
|
|||
import org.apache.commons.validator.Validator;
|
||||
import org.apache.commons.validator.ValidatorAction;
|
||||
import org.apache.struts.action.ActionMessages;
|
||||
import org.seasar.framework.util.StringUtil;
|
||||
import org.codelibs.core.util.StringUtil;
|
||||
import org.seasar.struts.validator.S2FieldChecks;
|
||||
|
||||
public class UriTypeChecks extends S2FieldChecks {
|
||||
|
|
|
@ -36,6 +36,8 @@
|
|||
-->
|
||||
<property name="logFilePath">@System@getProperty("fess.log.file").replaceAll(".out", "_crawler.out")</property>
|
||||
<property name="crawlerJavaOptions">new String[] {
|
||||
"-Xdebug",
|
||||
"-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=127.0.0.1:8000",
|
||||
"-Djava.awt.headless=true",
|
||||
"-server",
|
||||
"-Xmx512m",
|
||||
|
|
|
@ -71,29 +71,7 @@
|
|||
</initMethod>
|
||||
</component>
|
||||
|
||||
<component name="clientConnectionManager" class="org.apache.http.impl.conn.PoolingClientConnectionManager">
|
||||
<arg>
|
||||
<component class="org.apache.http.conn.scheme.SchemeRegistry">
|
||||
<initMethod name="register">
|
||||
<arg>
|
||||
<component class="org.apache.http.conn.scheme.Scheme">
|
||||
<arg>"http"</arg>
|
||||
<arg>80</arg>
|
||||
<arg>@org.apache.http.conn.scheme.PlainSocketFactory@getSocketFactory()</arg>
|
||||
</component>
|
||||
</arg>
|
||||
</initMethod>
|
||||
<initMethod name="register">
|
||||
<arg>
|
||||
<component class="org.apache.http.conn.scheme.Scheme">
|
||||
<arg>"https"</arg>
|
||||
<arg>443</arg>
|
||||
<arg>@org.apache.http.conn.ssl.SSLSocketFactory@getSocketFactory()</arg>
|
||||
</component>
|
||||
</arg>
|
||||
</initMethod>
|
||||
</component>
|
||||
</arg>
|
||||
<component name="clientConnectionManager" class="org.apache.http.impl.conn.PoolingHttpClientConnectionManager">
|
||||
<arg>10</arg><!-- timeToLive -->
|
||||
<arg>@java.util.concurrent.TimeUnit@MINUTES</arg><!-- tunit -->
|
||||
<property name="maxTotal">50</property>
|
||||
|
@ -114,30 +92,29 @@
|
|||
</component>
|
||||
|
||||
<!-- Solr Server Configuration -->
|
||||
<component name="suggestInterceptor" class="org.codelibs.solr.lib.server.interceptor.PreemptiveAuthInterceptor"
|
||||
autoBinding="none">
|
||||
</component>
|
||||
<component name="suggestCredentials" class="org.apache.http.auth.UsernamePasswordCredentials">
|
||||
<arg>"solradmin"</arg><!-- Username -->
|
||||
<arg>"solradmin"</arg><!-- Password -->
|
||||
</component>
|
||||
<component name="suggestHttpClient" class="org.apache.http.impl.client.DefaultHttpClient" autoBinding="none">
|
||||
<arg>clientConnectionManager</arg>
|
||||
</component>
|
||||
<component name="suggestSolrServer" class="org.apache.solr.client.solrj.impl.HttpSolrServer">
|
||||
<component name="suggestSolrServer" class="org.codelibs.solr.lib.server.SolrLibHttpSolrServer">
|
||||
<!-- Solr Server URL -->
|
||||
<arg>"http://localhost:8080/solr/core1-suggest"</arg>
|
||||
<arg>suggestHttpClient</arg>
|
||||
<property name="requestWriter">new org.apache.solr.client.solrj.impl.BinaryRequestWriter()</property>
|
||||
<property name="useMultiPartPost">true</property>
|
||||
<property name="soTimeout">900000</property><!-- 15min -->
|
||||
<initMethod>
|
||||
suggestHttpClient.getCredentialsProvider()
|
||||
.setCredentials(@org.apache.http.auth.AuthScope@ANY, suggestCredentials)
|
||||
<property name="soTimeout">15000</property><!-- 15sec -->
|
||||
<initMethod name="addRequestInterceptor">
|
||||
<arg>
|
||||
<component class="org.codelibs.solr.lib.server.interceptor.PreemptiveAuthInterceptor"
|
||||
autoBinding="none">
|
||||
</component>
|
||||
</arg>
|
||||
</initMethod>
|
||||
<initMethod>
|
||||
suggestHttpClient.addRequestInterceptor(suggestInterceptor)
|
||||
<initMethod name="setCredentials">
|
||||
<arg>@org.apache.http.auth.AuthScope@ANY</arg>
|
||||
<arg>
|
||||
<component class="org.apache.http.auth.UsernamePasswordCredentials">
|
||||
<arg>"solradmin"</arg><!-- Username -->
|
||||
<arg>"solradmin"</arg><!-- Password -->
|
||||
</component>
|
||||
</arg>
|
||||
</initMethod>
|
||||
<initMethod name="init"></initMethod>
|
||||
<destroyMethod name="shutdown"></destroyMethod>
|
||||
</component>
|
||||
|
||||
</components>
|
||||
|
|
|
@ -49,29 +49,7 @@
|
|||
</initMethod>
|
||||
</component>
|
||||
|
||||
<component name="clientConnectionManager" class="org.apache.http.impl.conn.PoolingClientConnectionManager">
|
||||
<arg>
|
||||
<component class="org.apache.http.conn.scheme.SchemeRegistry">
|
||||
<initMethod name="register">
|
||||
<arg>
|
||||
<component class="org.apache.http.conn.scheme.Scheme">
|
||||
<arg>"http"</arg>
|
||||
<arg>80</arg>
|
||||
<arg>@org.apache.http.conn.scheme.PlainSocketFactory@getSocketFactory()</arg>
|
||||
</component>
|
||||
</arg>
|
||||
</initMethod>
|
||||
<initMethod name="register">
|
||||
<arg>
|
||||
<component class="org.apache.http.conn.scheme.Scheme">
|
||||
<arg>"https"</arg>
|
||||
<arg>443</arg>
|
||||
<arg>@org.apache.http.conn.ssl.SSLSocketFactory@getSocketFactory()</arg>
|
||||
</component>
|
||||
</arg>
|
||||
</initMethod>
|
||||
</component>
|
||||
</arg>
|
||||
<component name="clientConnectionManager" class="org.apache.http.impl.conn.PoolingHttpClientConnectionManager">
|
||||
<arg>10</arg><!-- timeToLive -->
|
||||
<arg>@java.util.concurrent.TimeUnit@MINUTES</arg><!-- tunit -->
|
||||
<property name="maxTotal">50</property>
|
||||
|
@ -92,30 +70,31 @@
|
|||
</component>
|
||||
|
||||
<!-- Solr Server Configuration -->
|
||||
<component name="interceptor1" class="org.codelibs.solr.lib.server.interceptor.PreemptiveAuthInterceptor"
|
||||
autoBinding="none">
|
||||
</component>
|
||||
<component name="credentials1" class="org.apache.http.auth.UsernamePasswordCredentials">
|
||||
<arg>"solradmin"</arg><!-- Username -->
|
||||
<arg>"solradmin"</arg><!-- Password -->
|
||||
</component>
|
||||
<component name="httpClient1" class="org.apache.http.impl.client.DefaultHttpClient" autoBinding="none">
|
||||
<arg>clientConnectionManager</arg>
|
||||
</component>
|
||||
<component name="solrServer1" class="org.apache.solr.client.solrj.impl.HttpSolrServer">
|
||||
<component name="solrServer1" class="org.codelibs.solr.lib.server.SolrLibHttpSolrServer">
|
||||
<!-- Solr Server URL -->
|
||||
<arg>"http://localhost:8080/solr/core1"</arg>
|
||||
<arg>httpClient1</arg>
|
||||
<property name="requestWriter">new org.apache.solr.client.solrj.impl.BinaryRequestWriter()</property>
|
||||
<property name="useMultiPartPost">true</property>
|
||||
<property name="soTimeout">900000</property><!-- 15min -->
|
||||
<initMethod>
|
||||
httpClient1.getCredentialsProvider()
|
||||
.setCredentials(@org.apache.http.auth.AuthScope@ANY, credentials1)
|
||||
<property name="clientConnectionManager">clientConnectionManager</property>
|
||||
<initMethod name="addRequestInterceptor">
|
||||
<arg>
|
||||
<component class="org.codelibs.solr.lib.server.interceptor.PreemptiveAuthInterceptor"
|
||||
autoBinding="none">
|
||||
</component>
|
||||
</arg>
|
||||
</initMethod>
|
||||
<initMethod>
|
||||
httpClient1.addRequestInterceptor(interceptor1)
|
||||
<initMethod name="setCredentials">
|
||||
<arg>@org.apache.http.auth.AuthScope@ANY</arg>
|
||||
<arg>
|
||||
<component class="org.apache.http.auth.UsernamePasswordCredentials">
|
||||
<arg>"solradmin"</arg><!-- Username -->
|
||||
<arg>"solradmin"</arg><!-- Password -->
|
||||
</component>
|
||||
</arg>
|
||||
</initMethod>
|
||||
<initMethod name="init"></initMethod>
|
||||
<destroyMethod name="shutdown"></destroyMethod>
|
||||
</component>
|
||||
|
||||
</components>
|
||||
|
|
Loading…
Add table
Reference in a new issue