Package io.toro.martini.gloop.http
Class MultipartFile
- java.lang.Object
-
- io.toro.martini.gloop.http.MultipartFile
-
public final class MultipartFile extends Object
POJO representingio.toro.martini.http.MultipartFile.model
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MultipartFile.Builder
-
Field Summary
Fields Modifier and Type Field Description static String
KEY_CONTENT_TYPE
static String
KEY_EMPTY
static String
KEY_INPUT_STREAM
static String
KEY_NAME
static String
KEY_ORIGINAL_FILENAME
static String
KEY_SIZE
static String
QUALIFIED_GLOOP_NAME
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MultipartFile.Builder
builder()
static GloopModel
createModel()
static GloopModel
createModel(String name)
static MultipartFile
fromModel(GloopModel model)
String
getContentType()
InputStream
getInputStream()
String
getName()
String
getOriginalFilename()
long
getSize()
static boolean
isAssignableFrom(Object model)
boolean
isEmpty()
-
-
-
Field Detail
-
QUALIFIED_GLOOP_NAME
public static final String QUALIFIED_GLOOP_NAME
- See Also:
- Constant Field Values
-
KEY_NAME
public static final String KEY_NAME
- See Also:
- Constant Field Values
-
KEY_ORIGINAL_FILENAME
public static final String KEY_ORIGINAL_FILENAME
- See Also:
- Constant Field Values
-
KEY_CONTENT_TYPE
public static final String KEY_CONTENT_TYPE
- See Also:
- Constant Field Values
-
KEY_EMPTY
public static final String KEY_EMPTY
- See Also:
- Constant Field Values
-
KEY_SIZE
public static final String KEY_SIZE
- See Also:
- Constant Field Values
-
KEY_INPUT_STREAM
public static final String KEY_INPUT_STREAM
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public String getName()
-
getOriginalFilename
public String getOriginalFilename()
-
getContentType
public String getContentType()
-
isEmpty
public boolean isEmpty()
-
getSize
public long getSize()
-
getInputStream
public InputStream getInputStream()
-
builder
public static MultipartFile.Builder builder()
-
createModel
public static GloopModel createModel(String name)
-
createModel
public static GloopModel createModel()
-
fromModel
public static MultipartFile fromModel(GloopModel model)
-
isAssignableFrom
public static boolean isAssignableFrom(Object model)
-
-