public AdvancedConfig build() { return new AdvancedConfig(this); } }
/** * @param request Marshalled request. * @param key Key to check. * @return True if advanced config is available in the context AND the specified key is present AND has the value true, * false otherwise. */ private boolean isAdvancedConfigFlagTrue(Request<?> request, AdvancedConfig.Key<Boolean> key) { AdvancedConfig advancedConfig = request.getHandlerContext(HandlerContextKey.ADVANCED_CONFIG); if (advancedConfig == null) { return false; } Boolean flag = advancedConfig.get(key); return Boolean.TRUE.equals(flag); } }
public AdvancedConfig build() { return new AdvancedConfig(this); } }