public class RequestParameter
extends java.lang.Object
| Constructor and Description |
|---|
RequestParameter(java.lang.String key,
java.io.File file)
Builds the parameter
|
RequestParameter(java.lang.String key,
java.lang.String value)
Builds the parameter
|
| Modifier and Type | Method and Description |
|---|---|
java.io.File |
getFile()
Returns the File for the object
|
java.lang.String |
getKey()
Returns the Key for the object
|
java.lang.String |
getValue()
Returns the Value for the object
|
boolean |
isFileType()
Returns true iff this is a file upload type (this also means getFile is not null)
|
java.lang.String |
toString() |
public RequestParameter(@NotNull java.lang.String key, @NotNull java.lang.String value)
key - The keyvalue - The value@NotNull public java.lang.String getKey()
@Nullable public java.lang.String getValue()
@Nullable public java.io.File getFile()
public boolean isFileType()
public java.lang.String toString()
toString in class java.lang.Object