Class AgamaResource


  • @Path("/agama")
    @Consumes("application/json")
    @Produces("application/json")
    public class AgamaResource
    extends ConfigBaseResource
    • Constructor Summary

      Constructors 
      Constructor Description
      AgamaResource()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      jakarta.ws.rs.core.Response doSyntaxCheck​(String qname, String source)
      Check whether the provided text is valid Agama source for the named flow.
      • Methods 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 Detail

      • AgamaResource

        public AgamaResource()
    • Method Detail

      • 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 against
        source - 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