/** * Gets whether the rule is a deny rule or not. * * @return whether the rule is a deny rule or not. */ public boolean getIsDenyRule() { ComponentSupport.ifDestroyedThrowDestroyedComponentException(this); return isDenyRule; }
/** * Set the Velocity template id. * * <p>Defaults to {@link #DEFAULT_TEMPLATE_ID}.</p> * * @param newVelocityTemplateId the new Velocity template id */ public void setVelocityTemplateId(String newVelocityTemplateId) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); ComponentSupport.ifDestroyedThrowDestroyedComponentException(this); velocityTemplateId = newVelocityTemplateId; }
/** * Set an instance of {@link CredentialsProvider} used for authentication by the HttpClient instance. * * @param provider the credentials provider * * @deprecated use {@link #setHttpClientSecurityParameters(HttpClientSecurityParameters)} */ public void setCredentialsProvider(@Nullable final CredentialsProvider provider) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); ComponentSupport.ifDestroyedThrowDestroyedComponentException(this); credentialsProvider = provider; }
/** * Sets whether problems during initialization should cause the provider to fail or go on without metadata. The * assumption being that in most cases a provider will recover at some point in the future. * * @param failFast whether problems during initialization should cause the provider to fail */ public void setFailFastInitialization(final boolean failFast) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); ComponentSupport.ifDestroyedThrowDestroyedComponentException(this); failFastInitialization = failFast; }
/** * Set the optional client security parameters. * * @param params the new client security parameters */ public void setHttpClientSecurityParameters(@Nullable final HttpClientSecurityParameters params) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); ComponentSupport.ifDestroyedThrowDestroyedComponentException(this); httpClientSecurityParameters = params; }
/** * Set the statically configured value for mustUnderstand. * * @param flag true if header must be understood, false if not */ public void setMustUnderstand(final boolean flag) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); ComponentSupport.ifDestroyedThrowDestroyedComponentException(this); mustUnderstand = flag; }
/** * Set whether an {@link AttributeResolutionContext} that occurred resolving attributes will be re-thrown. Doing so * will cause the entire attribute resolution request to fail. * * @param propagate true if {@link ResolutionException}s are propagated, false if not */ public void setPropagateResolutionExceptions(final boolean propagate) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); ComponentSupport.ifDestroyedThrowDestroyedComponentException(this); propagateResolutionExceptions = propagate; }
/** * Set the custom (externally provided) object. * * @param object the custom object */ @Nullable public void setCustomObject(final Object object) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); ComponentSupport.ifDestroyedThrowDestroyedComponentException(this); customObject = object; }
/** * Sets whether the item is required to have a validUntil attribute. * * @param isRequired whether the item is required to have a validUntil attribute */ public synchronized void setRequireValidUntil(final boolean isRequired) { ComponentSupport.ifDestroyedThrowDestroyedComponentException(this); ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); requireValidUntil = isRequired; }
/** * Sets the pipeline that receives the non-selected items. * * @param pipeline pipeline that receives the non-selected items */ public synchronized void setNonselectedItemPipeline(@Nullable final Pipeline<T> pipeline) { ComponentSupport.ifDestroyedThrowDestroyedComponentException(this); ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); nonselectedItemPipeline = pipeline; }
/** * Sets whether an existing output file should be overwritten. * * @param isOverwriting whether an existing output file should be overwritten */ public synchronized void setOverwritingExistingOutputFile(boolean isOverwriting) { ComponentSupport.ifDestroyedThrowDestroyedComponentException(this); ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); overwritingExistingOutputFile = isOverwriting; }
/** * Set the ID of the {@link AbstractDataConnector} whose values will be used in the event that this data connector * experiences an error. * * @param id ID of the {@link AbstractDataConnector} whose values will be used in the event that this data connector * experiences an error */ public void setFailoverDataConnectorId(@Nullable final String id) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); ComponentSupport.ifDestroyedThrowDestroyedComponentException(this); failoverDataConnectorId = StringSupport.trimOrNull(id); }
/** * Sets the script to be evaluated. * * @param definitionScript the script to be evaluated */ public void setScript(@Nonnull final EvaluableScript definitionScript) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); ComponentSupport.ifDestroyedThrowDestroyedComponentException(this); script = Constraint.isNotNull(definitionScript, "Attribute definition script cannot be null"); }
/** * Set the {@link HttpClient} to use. * * @param client client to use */ public void setHttpClient(@Nonnull final HttpClient client) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); ComponentSupport.ifDestroyedThrowDestroyedComponentException(this); httpClient = Constraint.isNotNull(client, "HttpClient cannot be null"); }
/** * Set the {@link VelocityEngine} to be used. * * @param velocityEngine engine to be used */ public void setVelocityEngine(@Nonnull final VelocityEngine velocityEngine) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); ComponentSupport.ifDestroyedThrowDestroyedComponentException(this); engine = Constraint.isNotNull(velocityEngine, "VelocityEngine cannot be null"); }
/** * Sets the builder used to create the executable searches. * * @param builder builder used to create the executable searches */ public void setExecutableSearchBuilder(@Nonnull final ExecutableSearchBuilder<T1> builder) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); ComponentSupport.ifDestroyedThrowDestroyedComponentException(this); searchBuilder = Constraint.isNotNull(builder, "Executable search builder cannot be null"); }
/** * Sets the name transformer to use. * * @param transformer the name transformer to use */ public void setNameTransformer(@Nonnull final Function<String, String> transformer) { ComponentSupport.ifDestroyedThrowDestroyedComponentException(this); ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); nameTransformer = Constraint.isNotNull(transformer, "name transformer may not be null"); }
/** * Sets the serializer used to write item to the output file. * * @param itemSerializer serializer used to write item to the output file */ public synchronized void setSerializer(@Nonnull final ItemCollectionSerializer<T> itemSerializer) { ComponentSupport.ifDestroyedThrowDestroyedComponentException(this); ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); serializer = Constraint.isNotNull(itemSerializer, "Item collection serializer can not be null"); }
/** {@inheritDoc} */ @Override protected void setCacheSourceMetadata(final boolean flag) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); ComponentSupport.ifDestroyedThrowDestroyedComponentException(this); if (!flag) { log.warn("{} Caching of source metadata may not be disabled for reloading metadata resolvers", getLogPrefix()); } else { super.setCacheSourceMetadata(flag); } }
/** * Set the MIME type. * * <p>Defaults to "text/plain".</p> * * @param type MIME type */ public void setMIMEType(@Nonnull @NotEmpty final String type) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); ComponentSupport.ifDestroyedThrowDestroyedComponentException(this); mimeType = Constraint.isNotNull(StringSupport.trimOrNull(type), "MIME type cannot be null or empty"); }