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
    Constructor
    Description
     
  • Method Summary

    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.rest.resource.auth.ConfigBaseResource

    getMaxCount

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 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