Class UiApiRequest
java.lang.Object
com.kingsrook.qqq.middleware.javalin.specs.invoke.UiApiRequest
One in-process call to a UI API operation (see UiApiInvoker). The path is
the operation's template exactly as in the OpenAPI document, relative to the
version base path, e.g. `/table/{tableName}/query`.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter for clientDetailGetter for credentialsGetter for formParamsGetter for headersGetter for invokedByGetter for jsonBodyGetter for methodThe file parts in insertion order.getPath()Getter for pathGetter for pathParamsGetter for queryParamsGetter for timeoutGetter for userTimezonewithClientDetail(String clientDetail) Detail appended to the invoker's client channel (channel/detail), e.g.withCredentials(UiApiCredentials credentials) The calling user's credentials, as their request carried them (see UiApiCredentials.fromContext) - forwarded as they were, so the call authenticates exactly as the caller did, with any authentication module.withFormParam(String name, Object value) Send a form-encoded body (for operations whose request body is form data).withHeader(String name, String value) Add a custom header; a null value removes it.withInvokedBy(String invokedBy) Who is calling (X-QQQ-Invoked-By, written to the access log), e.g. assistant.withJsonBody(Object jsonBody) Send a JSON body (serialized with QQQ's JsonUtils).withMethod(HttpMethod method) Fluent setter for methodwithMultipartFile(String fieldName, String fileName, String contentType, Supplier<InputStream> content) Append a streamed file part.Fluent setter for path (the operation's path template)withPathParam(String name, Object value) Add a value for a `{name}` in the path template.withQueryParam(String name, Object value) Add a query-string parameter.withSessionUUID(String sessionUUID) The signed-in user's session UUID, sent as the sessionUUID cookie.withTimeout(Duration timeout) Per-call timeout (default 60 seconds).withUserTimezone(String userTimezone) The user's time zone (X-QQQ-UserTimezone), for relative dates.
-
Constructor Details
-
UiApiRequest
public UiApiRequest()
-
-
Method Details
-
withMethod
Fluent setter for method -
withPath
Fluent setter for path (the operation's path template) -
withPathParam
Add a value for a `{name}` in the path template. -
withQueryParam
Add a query-string parameter. -
withFormParam
Send a form-encoded body (for operations whose request body is form data). -
withHeader
Add a custom header; a null value removes it. Reserved headers are ignored by the invoker: credentials and the client channel are always set server side, and custom headers must not override identity or request metadata. -
getHeaders
-
withMultipartFile
public UiApiRequest withMultipartFile(String fieldName, String fileName, String contentType, Supplier<InputStream> content) Append a streamed file part. Form parameters become multipart text parts. -
getMultipartFiles
The file parts in insertion order. -
withJsonBody
Send a JSON body (serialized with QQQ's JsonUtils). -
withSessionUUID
The signed-in user's session UUID, sent as the sessionUUID cookie. Required. -
withCredentials
The calling user's credentials, as their request carried them (see UiApiCredentials.fromContext) - forwarded as they were, so the call authenticates exactly as the caller did, with any authentication module. -
withUserTimezone
The user's time zone (X-QQQ-UserTimezone), for relative dates. -
withInvokedBy
Who is calling (X-QQQ-Invoked-By, written to the access log), e.g. assistant. -
withTimeout
Per-call timeout (default 60 seconds). -
getMethod
Getter for method -
getPath
Getter for path -
getPathParams
-
getQueryParams
-
getFormParams
-
getJsonBody
Getter for jsonBody -
withClientDetail
Detail appended to the invoker's client channel (channel/detail), e.g. the assistant turn id. Letters, digits and . _ : - only. -
getClientDetail
Getter for clientDetail -
getCredentials
Getter for credentials -
getUserTimezone
Getter for userTimezone -
getInvokedBy
Getter for invokedBy -
getTimeout
Getter for timeout
-