Module com.github.robtimus.servlet
Package com.github.robtimus.servlet.parameters
Provides classes and interfaces for working with init and request parameters.
The classes in this package are usually used in the following way inside init methods, using int as example:
field = IntParameter.of(config, name)
// assertions, e.g. atLeast(0)
// retrieve value using requiredValue() or valueWithDefault(...)
-
Class Summary Class Description BooleanParameter Represents a parameter that should have a boolean value.ComparableParameter<T extends Comparable<? super T>> Represents a parameter that should have a value of a specific comparable type.DoubleParameter Represents a parameter that should have a double value.IntParameter Represents a parameter that should have an int value.LongParameter Represents a parameter that should have a long value.StringParameter Represents a parameter that should have a string value.URIParameter Represents a parameter that should have a URI value.URLParameter Represents a parameter that should have a URL value.