Record Class EmptyPart
java.lang.Object
java.lang.Record
br.ufsc.labsec.web.EmptyPart
- All Implemented Interfaces:
jakarta.servlet.http.Part
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()final booleanIndicates whether some other object is "equal to" this one.getHeaders(String s) getName()longgetSize()final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.void
-
Constructor Details
-
EmptyPart
Creates an instance of aEmptyPartrecord class.- Parameters:
name- the value for thenamerecord component
-
-
Method Details
-
getInputStream
- Specified by:
getInputStreamin interfacejakarta.servlet.http.Part
-
getContentType
- Specified by:
getContentTypein interfacejakarta.servlet.http.Part
-
getName
- Specified by:
getNamein interfacejakarta.servlet.http.Part
-
getSubmittedFileName
- Specified by:
getSubmittedFileNamein interfacejakarta.servlet.http.Part
-
getSize
public long getSize()- Specified by:
getSizein interfacejakarta.servlet.http.Part
-
write
- Specified by:
writein interfacejakarta.servlet.http.Part
-
delete
public void delete()- Specified by:
deletein interfacejakarta.servlet.http.Part
-
getHeader
-
getHeaders
- Specified by:
getHeadersin interfacejakarta.servlet.http.Part
-
getHeaderNames
- Specified by:
getHeaderNamesin interfacejakarta.servlet.http.Part
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-