Record Class CaptureStartRequest
java.lang.Object
java.lang.Record
com.shaft.capture.runtime.CaptureStartRequest
- Record Components:
targetUrl- initial browser URLbrowser- supported browser familyoutputPath- capture JSON outputruntimeDirectory- local control and temporary-profile directoryheadless- whether to launch without a visible browser windowoptions- codegen-compatible capture options
public record CaptureStartRequest(String targetUrl, CaptureBrowser browser, Path outputPath, Path runtimeDirectory, boolean headless, CaptureStartOptions options)
extends Record
Validated request for a managed browser capture session.
-
Constructor Summary
ConstructorsConstructorDescriptionCaptureStartRequest(String targetUrl, CaptureBrowser browser, Path outputPath, Path runtimeDirectory, boolean headless) Creates a request with default codegen options.CaptureStartRequest(String targetUrl, CaptureBrowser browser, Path outputPath, Path runtimeDirectory, boolean headless, CaptureStartOptions options) Creates a validated request. -
Method Summary
Modifier and TypeMethodDescriptionbrowser()Returns the value of thebrowserrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanheadless()Returns the value of theheadlessrecord component.options()Returns the value of theoptionsrecord component.Returns the value of theoutputPathrecord component.Returns the value of theruntimeDirectoryrecord component.Returns the value of thetargetUrlrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CaptureStartRequest
public CaptureStartRequest(String targetUrl, CaptureBrowser browser, Path outputPath, Path runtimeDirectory, boolean headless) Creates a request with default codegen options.- Parameters:
targetUrl- initial browser URLbrowser- supported browser familyoutputPath- capture JSON outputruntimeDirectory- local control and temporary-profile directoryheadless- whether to launch without a visible browser window
-
CaptureStartRequest
public CaptureStartRequest(String targetUrl, CaptureBrowser browser, Path outputPath, Path runtimeDirectory, boolean headless, CaptureStartOptions options) Creates a validated request.
-
-
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. -
targetUrl
-
browser
-
outputPath
Returns the value of theoutputPathrecord component.- Returns:
- the value of the
outputPathrecord component
-
runtimeDirectory
Returns the value of theruntimeDirectoryrecord component.- Returns:
- the value of the
runtimeDirectoryrecord component
-
headless
-
options
-