Class AgamaResource
java.lang.Object
io.jans.configapi.core.rest.BaseResource
io.jans.configapi.rest.resource.auth.ConfigBaseResource
io.jans.configapi.rest.resource.auth.AgamaResource
@Path("/agama")
@Consumes("application/json")
@Produces("application/json")
public class AgamaResource
extends ConfigBaseResource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponsedoSyntaxCheck(String qname, String source) Check whether the provided text is valid Agama source for the named flow.Methods inherited from class io.jans.configapi.rest.resource.auth.ConfigBaseResource
getMaxCountMethods inherited from class io.jans.configapi.core.rest.BaseResource
checkNotEmpty, checkNotEmpty, checkNotNull, checkNotNull, checkNotNull, checkResourceNotNull, createSearchRequest, findRootError, getBadRequestException, getBadRequestException, getBadRequestException, getHttpHeaders, getHttpRequest, getInternalServerException, getInternalServerException, getMissingAttributeError, getNotAcceptableException, getNotFoundError, getNotFoundError, getUriInfo, throwBadRequestException, throwBadRequestException, throwBadRequestException, throwInternalServerException, throwInternalServerException, throwInternalServerException, throwInternalServerException, throwMissingAttributeError, throwNotFoundException, throwNotFoundException
-
Constructor Details
-
AgamaResource
public AgamaResource()
-
-
Method Details
-
doSyntaxCheck
@POST @Consumes("text/plain") @Path("/syntax-check/{qname}") public jakarta.ws.rs.core.Response doSyntaxCheck(@PathParam("qname") String qname, String source) Check whether the provided text is valid Agama source for the named flow.- Parameters:
qname- the Agama flow name to validate againstsource- the Agama code text to check- Returns:
- an Exception object describing the syntax-check result: on success a TranspilerException with an empty message, on failure the caught SyntaxException or TranspilerException; the returned exception's stack trace is cleared
-