Interface OperationRequestPart
public interface OperationRequestPart
A part of a multipart request.
- Author:
- Andy Wilkinson
- See Also:
-
Method Summary
-
Method Details
-
getName
String getName()Returns the name of the part.- Returns:
- the name
-
getSubmittedFileName
String getSubmittedFileName()Returns the name of the file that is being uploaded in this part.- Returns:
- the name of the file
-
getContent
byte[] getContent()Returns the contents of the part.- Returns:
- the contents
-
getContentAsString
String getContentAsString()Returns the content of the part as aString
. If the part has no content an empty string is returned. If the part has aContent-Type
header that specifies a charset then that charset will be used when converting the contents to aString
.- Returns:
- the contents as string, never
null
-
getHeaders
org.springframework.http.HttpHeaders getHeaders()Returns the part's headers.- Returns:
- the headers
-