public class StandardOperationRequestPart extends Object implements OperationRequestPart
OperationRequestPart
.Constructor and Description |
---|
StandardOperationRequestPart(String name,
String submittedFileName,
byte[] content,
HttpHeaders headers)
Creates a new
StandardOperationRequestPart with the given name . |
Modifier and Type | Method and Description |
---|---|
byte[] |
getContent()
Returns the contents of the part.
|
HttpHeaders |
getHeaders()
Returns the part's headers.
|
String |
getName()
Returns the name of the part.
|
String |
getSubmittedFileName()
Returns the name of the file that is being uploaded in this part.
|
public StandardOperationRequestPart(String name, String submittedFileName, byte[] content, HttpHeaders headers)
StandardOperationRequestPart
with the given name
.name
- the name of the partsubmittedFileName
- the name of the file being uploaded by this partcontent
- the contents of the partheaders
- the headers of the partpublic String getName()
OperationRequestPart
getName
in interface OperationRequestPart
public String getSubmittedFileName()
OperationRequestPart
getSubmittedFileName
in interface OperationRequestPart
public byte[] getContent()
OperationRequestPart
getContent
in interface OperationRequestPart
public HttpHeaders getHeaders()
OperationRequestPart
getHeaders
in interface OperationRequestPart