Class ManageSessionSpecV1
java.lang.Object
com.kingsrook.qqq.middleware.javalin.specs.AbstractEndpointSpec<ManageSessionInput,ManageSessionResponseV1,ManageSessionExecutor>
com.kingsrook.qqq.middleware.javalin.specs.v1.ManageSessionSpecV1
public class ManageSessionSpecV1
extends AbstractEndpointSpec<ManageSessionInput,ManageSessionResponseV1,ManageSessionExecutor>
-
Field Summary
Fields inherited from class com.kingsrook.qqq.middleware.javalin.specs.AbstractEndpointSpec
qInstance -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildInput(io.javalin.http.Context context) build the endpoint's input object from a javalin contextvoidhandleOutput(io.javalin.http.Context context, ManageSessionResponseV1 output) Do not return the session token when its cookie is HttpOnly, whether signing in or resuming.booleanserveRequest(AbstractMiddlewareVersion abstractMiddlewareVersion, io.javalin.http.Context context) Methods inherited from class com.kingsrook.qqq.middleware.javalin.specs.AbstractEndpointSpec
checkCredentialScopeOperation, customizeMethod, defineCompleteOperation, defineMethod, defineResponses, defineRoute, getOperationId, getRequestBodyAsJsonObject, getRequestParam, getRequestParamInteger, getRequestParamMap, handleException, newExecutor, newOutput, setQInstance
-
Constructor Details
-
ManageSessionSpecV1
public ManageSessionSpecV1()
-
-
Method Details
-
defineBasicOperation
-
isSecured
public boolean isSecured()- Overrides:
isSecuredin classAbstractEndpointSpec<ManageSessionInput,ManageSessionResponseV1, ManageSessionExecutor>
-
serveRequest
public ManageSessionResponseV1 serveRequest(AbstractMiddlewareVersion abstractMiddlewareVersion, io.javalin.http.Context context) throws Exception - Overrides:
serveRequestin classAbstractEndpointSpec<ManageSessionInput,ManageSessionResponseV1, ManageSessionExecutor> - Throws:
Exception
-
handleOutput
public void handleOutput(io.javalin.http.Context context, ManageSessionResponseV1 output) throws Exception Do not return the session token when its cookie is HttpOnly, whether signing in or resuming. A cookie-based resume also omits it in the readable-cookie mode (QRun-IO/qqq#733).- Overrides:
handleOutputin classAbstractEndpointSpec<ManageSessionInput,ManageSessionResponseV1, ManageSessionExecutor> - Throws:
Exception
-
defineRequestBody
- Overrides:
defineRequestBodyin classAbstractEndpointSpec<ManageSessionInput,ManageSessionResponseV1, ManageSessionExecutor>
-
defineRequestParameters
-
buildInput
Description copied from class:AbstractEndpointSpecbuild the endpoint's input object from a javalin context- Specified by:
buildInputin classAbstractEndpointSpec<ManageSessionInput,ManageSessionResponseV1, ManageSessionExecutor> - Throws:
Exception
-
defineBasicSuccessResponse
-
defineComponentSchemas
-
defineAdditionalBasicResponses
-