Class RIDCHttpPartImpl<T>
java.lang.Object
oracle.stellent.ridc.common.http.impl.RIDCHttpPartImpl<T>
- Type Parameters:
T-
- All Implemented Interfaces:
RIDCHttpPart<T>
RIDC HTTP Part Implementation
-
Nested Class Summary
Nested classes/interfaces inherited from interface oracle.stellent.ridc.common.http.RIDCHttpPart
RIDCHttpPart.PartType -
Constructor Summary
ConstructorsConstructorDescriptionRIDCHttpPartImpl(String name, T content) Create a HTTP PartRIDCHttpPartImpl(String name, T content, String encoding) Create a HTTP part with a specific encoding -
Method Summary
Modifier and TypeMethodDescriptionReturn the content of the partGet the encoding of the part, default is UTF-8getName()Return the name of the partgetType()Return the type of the partprotected voidsetEncoding(String encoding) Set the content encodingprotected voidSet the name of the part
-
Constructor Details
-
RIDCHttpPartImpl
Create a HTTP Part- Parameters:
name- part namecontent- part content
-
RIDCHttpPartImpl
Create a HTTP part with a specific encoding- Parameters:
name- part namecontent- part contentencoding- part encoding
-
-
Method Details
-
getContent
Return the content of the part- Specified by:
getContentin interfaceRIDCHttpPart<T>- Returns:
- either a string or a TransferFile
-
getType
Return the type of the part- Specified by:
getTypein interfaceRIDCHttpPart<T>- Returns:
- type of the part (either string or file)
-
getName
Return the name of the part- Specified by:
getNamein interfaceRIDCHttpPart<T>- Returns:
- the name
-
setName
Set the name of the part- Parameters:
name-
-
getEncoding
Get the encoding of the part, default is UTF-8- Specified by:
getEncodingin interfaceRIDCHttpPart<T>- Returns:
- the encoding, default is UTF-8
-
setEncoding
Set the content encoding- Parameters:
encoding-
-