Record Class CaptureEvent.UploadEvent
java.lang.Object
java.lang.Record
com.shaft.capture.model.CaptureEvent.UploadEvent
- Record Components:
context- common event contexttarget- action targetfile- logical file referencesafeFileName- sanitized filenamemediaType- media typesizeBytes- optional file size
- All Implemented Interfaces:
CaptureEvent
- Enclosing interface:
CaptureEvent
public static record CaptureEvent.UploadEvent(EventContext context, ElementSnapshot target, ExternalTestDataReference file, String safeFileName, String mediaType, long sizeBytes)
extends Record
implements CaptureEvent
Upload event containing only a logical file reference and safe metadata.
-
Nested Class Summary
Nested classes/interfaces inherited from interface CaptureEvent
CaptureEvent.AlertAction, CaptureEvent.AlertEvent, CaptureEvent.ClearEvent, CaptureEvent.ClickEvent, CaptureEvent.FrameAction, CaptureEvent.FrameEvent, CaptureEvent.KeyboardEvent, CaptureEvent.MouseButton, CaptureEvent.NavigationAction, CaptureEvent.NavigationEvent, CaptureEvent.SelectEvent, CaptureEvent.SelectMode, CaptureEvent.ToggleEvent, CaptureEvent.TypeEvent, CaptureEvent.UploadEvent, CaptureEvent.VerificationEvent, CaptureEvent.VerificationKind, CaptureEvent.WaitCondition, CaptureEvent.WaitEvent, CaptureEvent.WindowAction, CaptureEvent.WindowEvent -
Constructor Summary
ConstructorsConstructorDescriptionUploadEvent(EventContext context, ElementSnapshot target, ExternalTestDataReference file, String safeFileName, String mediaType, long sizeBytes) Creates an upload event. -
Method Summary
Modifier and TypeMethodDescriptioncontext()Returns the value of thecontextrecord component.final booleanIndicates whether some other object is "equal to" this one.file()Returns the value of thefilerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themediaTyperecord component.Returns the value of thesafeFileNamerecord component.longReturns the value of thesizeBytesrecord component.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UploadEvent
public UploadEvent(EventContext context, ElementSnapshot target, ExternalTestDataReference file, String safeFileName, String mediaType, long sizeBytes) Creates an upload event.
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
context
Returns the value of thecontextrecord component.- Specified by:
contextin interfaceCaptureEvent- Returns:
- the value of the
contextrecord component
-
target
-
file
-
safeFileName
Returns the value of thesafeFileNamerecord component.- Returns:
- the value of the
safeFileNamerecord component
-
mediaType
-
sizeBytes
-