Constructor and Description |
---|
Expect100ContinueFeature() |
Modifier and Type | Method and Description |
---|---|
static Expect100ContinueFeature |
basic()
Creates Expect100Continue Feature with default threshold size
|
boolean |
configure(FeatureContext configurableContext)
A call-back method called when the feature is to be enabled in a given runtime configuration scope.
|
static Expect100ContinueFeature |
withCustomThreshold(long thresholdSize)
Creates Expect100ContinueFeature with custom (not default) threshold size for content length.
|
public static Expect100ContinueFeature withCustomThreshold(long thresholdSize)
thresholdSize
- size of thresholdpublic static Expect100ContinueFeature basic()
public boolean configure(FeatureContext configurableContext)
Feature
true
if the feature was successfully enabled or false
otherwise.
Note that under some circumstances the feature may decide not to enable itself, which is indicated by returning
false
. In such case the configuration context does not add the feature to the collection of enabled features
and a subsequent call to Configuration.isEnabled(Feature)
or Configuration.isEnabled(Class)
method
would return false
.
Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.