class BloomFilterHttpService {

    @Post("/{name}/multi-check-and-set")
    public JsonNode multiCheckAndSet(@Param String name,
                                     @RequestObject JsonNode req)
            throws FilterNotFoundException {
        final JsonNode values = checkNotNull("values", req.get("values"));
        checkParameter("values", values.isArray(), "expect Json array");

        final BloomFilter filter = bloomFilterManager.ensureGetValidFilter(name);
        final ArrayNode response = MAPPER.createArrayNode();
        for (final JsonNode value : values) {
            if (value.isTextual()) {
                response.add(BooleanNode.valueOf(!filter.set(value.textValue())));
            } else {
                response.add(BooleanNode.FALSE);
            }
        }
        return response;
    }

    public  BloomFilterHttpService(BloomFilterManager<?, ? super ExpirableBloomFilterConfig> bloomFilterManager);

}