public final class DefaultHttpParam extends Object implements HttpParameter
{ String value = Param.TEXT(httpServletRequest, "my default value"); } enum Param implements HttpParam { REGEXP, TEXT;
Modifier | Constructor and Description |
---|---|
protected |
DefaultHttpParam(String name,
String defaultValue) |
Modifier and Type | Method and Description |
---|---|
String |
defaultValue()
Returns a non-null default text value.
|
char |
charAt(int index) |
int |
length() |
CharSequence |
subSequence(int start,
int end) |
String |
toString()
Returns a parameter name
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
of, of, of, of, of, of, of, of, of, of, of, of
codePoints, chars
@Nonnull public String defaultValue()
HttpParameter
defaultValue
in interface HttpParameter
@Nonnull public String toString()
HttpParameter
toString
in interface CharSequence
toString
in interface HttpParameter
toString
in class Object
public CharSequence subSequence(int start, int end)
subSequence
in interface CharSequence
subSequence
in interface HttpParameter
public int length()
length
in interface CharSequence
length
in interface HttpParameter
public char charAt(int index)
charAt
in interface CharSequence
charAt
in interface HttpParameter
Copyright 2019-2022, Pavel Ponec