content
private final byte[] content
cn.taketoday.core.io.InputStreamSource, cn.taketoday.util.function.ThrowingConsumer<OutputStream>, cn.taketoday.web.multipart.Multipart, cn.taketoday.web.multipart.MultipartFile, Consumer<OutputStream>MultipartFile
interface.
Useful in conjunction with a MockMultipartHttpServletRequest
for testing application controllers that access multipart uploads.
MockMultipartFile(String name,
byte[] content) MockMultipartFile(String name,
InputStream contentStream) MockMultipartFile(String name,
String originalFilename,
String contentType,
byte[] content) MockMultipartFile(String name,
String originalFilename,
String contentType,
InputStream contentStream) protected cn.taketoday.http.DefaultHttpHeadersvoiddelete()byte[]getBytes()cn.taketoday.http.HttpHeadersgetName()longgetSize()getValue()booleanisEmpty()booleanvoidsetHeaders(cn.taketoday.http.HttpHeaders headers) voidtransferTo(File dest) clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitacceptWithException, getReader, getReader, readableChannel, transferTogetResource, transferToaccept, accept, throwingname - the name of the filecontent - the content of the filename - the name of the filecontentStream - the content of the file as streamIOException - if reading from the stream failedname - the name of the fileoriginalFilename - the original filename (as on the client's machine)contentType - the content type (if known)content - the content of the filename - the name of the fileoriginalFilename - the original filename (as on the client's machine)contentType - the content type (if known)contentStream - the content of the file as streamIOException - if reading from the stream failedgetName 在接口中 cn.taketoday.web.multipart.MultipartgetName 在接口中 cn.taketoday.web.multipart.MultipartFilegetValue 在接口中 cn.taketoday.web.multipart.MultipartisFormField 在接口中 cn.taketoday.web.multipart.MultipartgetHeaders 在接口中 cn.taketoday.web.multipart.MultipartgetOriginalFilename 在接口中 cn.taketoday.web.multipart.MultipartFilegetContentType 在接口中 cn.taketoday.web.multipart.MultipartgetContentType 在接口中 cn.taketoday.web.multipart.MultipartFileisEmpty 在接口中 cn.taketoday.web.multipart.MultipartFilegetSize 在接口中 cn.taketoday.web.multipart.MultipartFilegetBytes 在接口中 cn.taketoday.web.multipart.MultipartgetBytes 在接口中 cn.taketoday.web.multipart.MultipartFileIOExceptiongetOriginalResource 在接口中 cn.taketoday.web.multipart.MultipartFiledelete 在接口中 cn.taketoday.web.multipart.Multipartdelete 在接口中 cn.taketoday.web.multipart.MultipartFileIOExceptiongetInputStream 在接口中 cn.taketoday.core.io.InputStreamSourceIOExceptiontransferTo 在接口中 cn.taketoday.web.multipart.MultipartFileIOExceptionIllegalStateException