Top Description Inners Fields Constructors Methods
io.undertow.predicate

public Class MaxContentSizePredicate

extends Object
implements Predicate
Class Inheritance
All Implemented Interfaces
io.undertow.predicate.Predicate
Annotations
@Deprecated
Imports
java.util.Collections, .Map, .Set, io.undertow.server.HttpServerExchange, io.undertow.util.Headers

Deprecated

Predicate that returns true if the Content-Size of a request is above a given value. Use RequestLargerThanPredicate instead.
Author
Stuart Douglas

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private final long

Constructor Summary

AccessConstructor and Description
pack-priv
MaxContentSizePredicate(final long maxSize)

Method Summary

Modifier and TypeMethod and Description
public boolean
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

maxSizeback to summary
private final long maxSize

Constructor Detail

MaxContentSizePredicateback to summary
pack-priv MaxContentSizePredicate(final long maxSize)

Method Detail

resolveback to summary
public boolean resolve(final HttpServerExchange value)

Implements io.undertow.predicate.Predicate.resolve.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override
io.undertow.predicate back to summary

public Class MaxContentSizePredicate.Builder

extends Object
implements PredicateBuilder
Class Inheritance
All Implemented Interfaces
io.undertow.predicate.PredicateBuilder

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Predicate
build(final Map<String, Object>
The predicate config
config
)

Implements io.undertow.predicate.PredicateBuilder.build.

Creates a predicate

public String
public String
name()

Implements io.undertow.predicate.PredicateBuilder.name.

The string representation of the predicate name.

public Map<String, Class<?>>
parameters()

Implements io.undertow.predicate.PredicateBuilder.parameters.

Returns a map of parameters and their types.

public Set<String>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Builderback to summary
public Builder()

Method Detail

buildback to summary
public Predicate build(final Map<String, Object> config)

Implements io.undertow.predicate.PredicateBuilder.build.

Doc from io.undertow.predicate.PredicateBuilder.build.

Creates a predicate

Parameters
config:Map<String, Object>

The predicate config

Returns:Predicate

The new predicate

Annotations
@Override
defaultParameterback to summary
public String defaultParameter()

Implements io.undertow.predicate.PredicateBuilder.defaultParameter.

Returns:String

Doc from io.undertow.predicate.PredicateBuilder.defaultParameter.

The default parameter name, or null if it does not have a default parameter

Annotations
@Override
nameback to summary
public String name()

Implements io.undertow.predicate.PredicateBuilder.name.

Doc from io.undertow.predicate.PredicateBuilder.name.

The string representation of the predicate name.

Returns:String

The predicate name

Annotations
@Override
parametersback to summary
public Map<String, Class<?>> parameters()

Implements io.undertow.predicate.PredicateBuilder.parameters.

Doc from io.undertow.predicate.PredicateBuilder.parameters.

Returns a map of parameters and their types.

Annotations
@Override
requiredParametersback to summary
public Set<String> requiredParameters()

Implements io.undertow.predicate.PredicateBuilder.requiredParameters.

Returns:Set<String>

Doc from io.undertow.predicate.PredicateBuilder.requiredParameters.

The required parameters

Annotations
@Override