Package oracle.stellent.ridc.common.http
Interface RIDCHttpPart<T>
- Type Parameters:
T
- refer toRIDCHttpPart.PartType
- All Known Implementing Classes:
RIDCHttpPartImpl
@Concealed
public interface RIDCHttpPart<T>
Generic type for Http Part. This is usually a String or (Transfer) File.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
Currently allowed types of HTTP Parts. -
Method Summary
-
Method Details
-
getType
RIDCHttpPart.PartType getType()Return the type of the part- Returns:
- type of the part (either string or file)
-
getName
String getName()Name of the part- Returns:
- the name
-
getContent
T getContent()The value/content or the part itself- Returns:
- either a string or a TransferFile
-
getEncoding
String getEncoding()The encoding of the part- Returns:
- the encoding, default is UTF-8
-