public class OperationRequestPartFactory
extends java.lang.Object
OperationRequestParts.| Constructor and Description |
|---|
OperationRequestPartFactory() |
| Modifier and Type | Method and Description |
|---|---|
OperationRequestPart |
create(java.lang.String name,
java.lang.String submittedFileName,
byte[] content,
org.springframework.http.HttpHeaders headers)
Creates a new
OperationRequestPart. |
public OperationRequestPart create(java.lang.String name, java.lang.String submittedFileName, byte[] content, org.springframework.http.HttpHeaders headers)
OperationRequestPart. The given headers will be
augmented to ensure that they always include a Content-Length header if the
part has any content.name - the name of the partsubmittedFileName - the name of the file being submitted by the partcontent - the content of the partheaders - the headers of the partOperationRequestPart