remove toGeoRequestString
This commit is contained in:
parent
e633a7ec5b
commit
59382c4c9a
1 changed files with 0 additions and 12 deletions
|
@ -15,9 +15,7 @@
|
|||
*/
|
||||
package org.codelibs.fess.api.json;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.OutputStream;
|
||||
import java.net.URLDecoder;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
|
@ -56,11 +54,9 @@ import org.codelibs.fess.helper.UserInfoHelper;
|
|||
import org.codelibs.fess.mylasta.direction.FessConfig;
|
||||
import org.codelibs.fess.util.ComponentUtil;
|
||||
import org.codelibs.fess.util.DocumentUtil;
|
||||
import org.codelibs.fess.util.EsUtil;
|
||||
import org.codelibs.fess.util.FacetResponse;
|
||||
import org.codelibs.fess.util.FacetResponse.Field;
|
||||
import org.dbflute.optional.OptionalThing;
|
||||
import org.elasticsearch.common.xcontent.XContentType;
|
||||
import org.elasticsearch.script.Script;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
@ -385,14 +381,6 @@ public class JsonApiManager extends BaseJsonApiManager {
|
|||
|
||||
}
|
||||
|
||||
protected String toGeoRequestString(final GeoInfo geoInfo) {
|
||||
try (OutputStream out = EsUtil.getXContentOutputStream(geoInfo.toQueryBuilder(), XContentType.JSON)) {
|
||||
return ((ByteArrayOutputStream) out).toString(Constants.UTF_8);
|
||||
} catch (final Exception e) {
|
||||
return "{\"error\":\"" + detailedMessage(e) + "\"}";
|
||||
}
|
||||
}
|
||||
|
||||
protected String detailedMessage(final Throwable t) {
|
||||
if (t == null) {
|
||||
return "Unknown";
|
||||
|
|
Loading…
Add table
Reference in a new issue