Class MockPart
java.lang.Object
org.springframework.mock.web.MockPart
- All Implemented Interfaces:
- Part
- 
Constructor SummaryConstructorsConstructorDescriptionConstructor for a part with a name and content only.Constructor for a part with a name, filename, and content.MockPart(String name, @Nullable String filename, byte @Nullable [] content, @Nullable MediaType contentType) Constructor for a part with a name, filename, content, and content type.
- 
Method SummaryModifier and TypeMethodDescriptionvoiddelete()final HttpHeadersReturn theHttpHeadersbacking header related accessor methods, allowing for populating selected header entries.getHeaders(String name) getName()longgetSize()void
- 
Constructor Details- 
MockPart
- 
MockPart
- 
MockPart
 
- 
- 
Method Details- 
getName
- 
getSubmittedFileName- Specified by:
- getSubmittedFileNamein interface- Part
 
- 
getContentType- Specified by:
- getContentTypein interface- Part
 
- 
getSize
- 
getInputStream- Specified by:
- getInputStreamin interface- Part
- Throws:
- IOException
 
- 
write- Specified by:
- writein interface- Part
- Throws:
- IOException
 
- 
delete- Specified by:
- deletein interface- Part
- Throws:
- IOException
 
- 
getHeader
- 
getHeaders- Specified by:
- getHeadersin interface- Part
 
- 
getHeaderNames- Specified by:
- getHeaderNamesin interface- Part
 
- 
getHeadersReturn theHttpHeadersbacking header related accessor methods, allowing for populating selected header entries.
 
-