Package kong.unirest
Class BodyPart<T>
- java.lang.Object
-
- kong.unirest.BodyPart<T>
-
- All Implemented Interfaces:
Comparable
- Direct Known Subclasses:
ByteArrayPart
,FilePart
,InputStreamPart
,ParamPart
public abstract class BodyPart<T> extends Object implements Comparable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
compareTo(Object o)
String
getContentType()
String
getFileName()
String
getName()
Class<?>
getPartType()
T
getValue()
abstract boolean
isFile()
-
-
-
Method Detail
-
getValue
public T getValue()
-
getPartType
public Class<?> getPartType()
-
getContentType
public String getContentType()
-
getName
public String getName()
-
getFileName
public String getFileName()
-
compareTo
public int compareTo(Object o)
- Specified by:
compareTo
in interfaceComparable<T>
-
isFile
public abstract boolean isFile()
-
-