Package io.micronaut.servlet.engine
Class ServletCompletedFileUpload
java.lang.Object
io.micronaut.servlet.engine.ServletCompletedFileUpload
- All Implemented Interfaces:
io.micronaut.http.multipart.CompletedFileUpload
,io.micronaut.http.multipart.CompletedPart
,io.micronaut.http.multipart.FileUpload
,io.micronaut.http.multipart.PartData
public final class ServletCompletedFileUpload
extends Object
implements io.micronaut.http.multipart.CompletedFileUpload
An implementation of
CompletedFileUpload
that backs on a Servlet part.- Since:
- 1.0.0
- Author:
- graemerocher
-
Constructor Summary
ConstructorDescriptionServletCompletedFileUpload
(jakarta.servlet.http.Part part) Default constructor. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.http.multipart.FileUpload
discard
-
Constructor Details
-
ServletCompletedFileUpload
public ServletCompletedFileUpload(jakarta.servlet.http.Part part) Default constructor.- Parameters:
part
- The part
-
-
Method Details
-
getContentType
- Specified by:
getContentType
in interfaceio.micronaut.http.multipart.FileUpload
- Specified by:
getContentType
in interfaceio.micronaut.http.multipart.PartData
-
getName
- Specified by:
getName
in interfaceio.micronaut.http.multipart.CompletedPart
- Specified by:
getName
in interfaceio.micronaut.http.multipart.FileUpload
-
getFilename
- Specified by:
getFilename
in interfaceio.micronaut.http.multipart.FileUpload
-
getSize
public long getSize()- Specified by:
getSize
in interfaceio.micronaut.http.multipart.FileUpload
-
getDefinedSize
public long getDefinedSize()- Specified by:
getDefinedSize
in interfaceio.micronaut.http.multipart.FileUpload
-
isComplete
public boolean isComplete()- Specified by:
isComplete
in interfaceio.micronaut.http.multipart.FileUpload
-
getInputStream
- Specified by:
getInputStream
in interfaceio.micronaut.http.multipart.PartData
- Throws:
IOException
-
getBytes
- Specified by:
getBytes
in interfaceio.micronaut.http.multipart.PartData
- Throws:
IOException
-
getByteBuffer
- Specified by:
getByteBuffer
in interfaceio.micronaut.http.multipart.PartData
- Throws:
IOException
-