T -public class RIDCHttpPartImpl<T> extends Object implements RIDCHttpPart<T>
RIDCHttpPart.PartType| Constructor and Description |
|---|
RIDCHttpPartImpl(String name, T content)
Create a HTTP Part
|
RIDCHttpPartImpl(String name, T content, String encoding)
Create a HTTP part with a specific encoding
|
| Modifier and Type | Method and Description |
|---|---|
T |
getContent()
Return the content of the part
|
String |
getEncoding()
Get the encoding of the part, default is UTF-8
|
String |
getName()
Return the name of the part
|
RIDCHttpPart.PartType |
getType()
Return the type of the part
|
protected void |
setEncoding(String encoding)
Set the content encoding
|
protected void |
setName(String name)
Set the name of the part
|
public RIDCHttpPartImpl(String name, T content)
name - part namecontent - part contentpublic T getContent()
getContent in interface RIDCHttpPart<T>public RIDCHttpPart.PartType getType()
getType in interface RIDCHttpPart<T>public String getName()
getName in interface RIDCHttpPart<T>protected void setName(String name)
name -public String getEncoding()
getEncoding in interface RIDCHttpPart<T>protected void setEncoding(String encoding)
encoding -