Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getXContentBuilderOutputStream (0.18 sec)

  1. src/main/java/org/codelibs/fess/util/SearchEngineUtil.java

    public final class SearchEngineUtil {
    
        private static final Logger logger = LogManager.getLogger(SearchEngineUtil.class);
    
        private SearchEngineUtil() {
        }
    
        public static OutputStream getXContentBuilderOutputStream(final XContentBuilderCallback func, final MediaType mediaType) {
            try (final XContentBuilder builder = func.apply(mediaType.contentBuilder(), ToXContent.EMPTY_PARAMS)) {
                builder.flush();
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/entity/PingResponse.java

            clusterStatus = response.getStatus().toString();
            final Set<String> fieldSet = ComponentUtil.getFessConfig().getApiPingEsFieldSet();
            try (OutputStream out = SearchEngineUtil.getXContentBuilderOutputStream((builder, params) -> {
                builder.startObject();
                if (fieldSet.contains(CLUSTER_NAME)) {
                    builder.field(CLUSTER_NAME, response.getClusterName());
                }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 5.9K bytes
    - Viewed (2)
Back to top