Class RealtimeSubscriptionsSpecV1
java.lang.Object
com.kingsrook.qqq.middleware.javalin.specs.AbstractEndpointSpec<RealtimeExecutor.Input,RealtimeExecutor.Output,RealtimeExecutor>
com.kingsrook.qqq.middleware.javalin.specs.v1.RealtimeSubscriptionsSpecV1
public class RealtimeSubscriptionsSpecV1
extends AbstractEndpointSpec<RealtimeExecutor.Input,RealtimeExecutor.Output,RealtimeExecutor>
Change channels on a connection belonging to the authenticated session.
-
Field Summary
Fields inherited from class com.kingsrook.qqq.middleware.javalin.specs.AbstractEndpointSpec
qInstance -
Constructor Summary
ConstructorsConstructorDescriptionThe standalone spec constructor supports schema tooling.Share the stream spec hub, scoped to this middleware server. -
Method Summary
Modifier and TypeMethodDescriptionbuildInput(io.javalin.http.Context context) Reject malformed bodies before they reach permission checks.Do not distinguish unknown connections from another session's connection.Channel grammar and refusal semantics are part of the public contract.Active channels and refused requested channels.Publish both sides of the subscription contract.Typed JSON request body.voidhandleOutput(io.javalin.http.Context context, RealtimeExecutor.Output output) Only the typed wire result is serialized.Methods inherited from class com.kingsrook.qqq.middleware.javalin.specs.AbstractEndpointSpec
checkCredentialScopeOperation, customizeMethod, defineCompleteOperation, defineMethod, defineRequestParameters, defineResponses, defineRoute, getOperationId, getRequestBodyAsJsonObject, getRequestParam, getRequestParamInteger, getRequestParamMap, handleException, isSecured, newExecutor, newOutput, serveRequest, setQInstance
-
Constructor Details
-
RealtimeSubscriptionsSpecV1
Share the stream spec hub, scoped to this middleware server. -
RealtimeSubscriptionsSpecV1
public RealtimeSubscriptionsSpecV1()The standalone spec constructor supports schema tooling.
-
-
Method Details
-
defineBasicOperation
Channel grammar and refusal semantics are part of the public contract. -
defineRequestBody
Typed JSON request body.- Overrides:
defineRequestBodyin classAbstractEndpointSpec<RealtimeExecutor.Input,RealtimeExecutor.Output, RealtimeExecutor>
-
defineBasicSuccessResponse
Active channels and refused requested channels. -
defineComponentSchemas
Publish both sides of the subscription contract. -
buildInput
public RealtimeExecutor.Input buildInput(io.javalin.http.Context context) throws QBadRequestException Reject malformed bodies before they reach permission checks.- Specified by:
buildInputin classAbstractEndpointSpec<RealtimeExecutor.Input,RealtimeExecutor.Output, RealtimeExecutor> - Throws:
QBadRequestException
-
handleOutput
Only the typed wire result is serialized.- Overrides:
handleOutputin classAbstractEndpointSpec<RealtimeExecutor.Input,RealtimeExecutor.Output, RealtimeExecutor>
-
defineAdditionalBasicResponses
Do not distinguish unknown connections from another session's connection.
-