Package com.oorian.jakarta
Class JakartaUploadPart
java.lang.Object
com.oorian.jakarta.JakartaUploadPart
- All Implemented Interfaces:
OorianUploadPart
Adapter that wraps a
Part to implement the
framework-agnostic OorianUploadPart interface.
This class is used by the thin Jakarta library to bridge between the servlet container and the Oorian common library.
- Since:
- 2.1
- Version:
- 1.0
- Author:
- Oorian Framework
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJakartaUploadPart(jakarta.servlet.http.Part part) Creates a new adapter wrapping the given servlet part. -
Method Summary
Modifier and TypeMethodDescriptionReturns the content type of this part.jakarta.servlet.http.PartReturns the underlying Jakarta servlet part.Returns the value of the specified header for this part.Returns an input stream for reading the content of this part.getName()Returns the name of this part (the form field name).
-
Constructor Details
-
JakartaUploadPart
public JakartaUploadPart(jakarta.servlet.http.Part part) Creates a new adapter wrapping the given servlet part.- Parameters:
part- The Jakarta servlet part to wrap.
-
-
Method Details
-
getContentType
Description copied from interface:OorianUploadPartReturns the content type of this part.- Specified by:
getContentTypein interfaceOorianUploadPart- Returns:
- the content type
-
getInputStream
Description copied from interface:OorianUploadPartReturns an input stream for reading the content of this part.- Specified by:
getInputStreamin interfaceOorianUploadPart- Returns:
- the input stream
- Throws:
IOException- if an I/O error occurs
-
getName
Description copied from interface:OorianUploadPartReturns the name of this part (the form field name).- Specified by:
getNamein interfaceOorianUploadPart- Returns:
- the part name
-
getHeader
Description copied from interface:OorianUploadPartReturns the value of the specified header for this part.- Specified by:
getHeaderin interfaceOorianUploadPart- Parameters:
name- the header name- Returns:
- the header value, or null if not present
-
getDelegate
public jakarta.servlet.http.Part getDelegate()Returns the underlying Jakarta servlet part.- Returns:
- The wrapped
Part.
-