Class AsyncApiControlPlaneImpl

java.lang.Object
org.mockserver.async.controlplane.AsyncApiControlPlaneImpl
All Implemented Interfaces:
org.mockserver.async.AsyncApiControlPlane

public class AsyncApiControlPlaneImpl extends Object implements org.mockserver.async.AsyncApiControlPlane
Implementation of AsyncApiControlPlane that lives in the mockserver-async module and is registered into the core's AsyncApiControlPlaneRegistry at server startup.

Handles:

  • Loading AsyncAPI specs via the REST control-plane
  • Creating publishers and subscribers for each channel
  • Schema validation of generated and consumed messages
  • Returning status including recorded messages
  • Resetting all state on server reset
  • Constructor Details

    • AsyncApiControlPlaneImpl

      public AsyncApiControlPlaneImpl()
  • Method Details

    • registerIfAvailable

      public static void registerIfAvailable()
      Register this implementation into the core registry. Call at server startup (e.g. from MockServerLifeCycle or Main).
    • load

      public com.fasterxml.jackson.databind.JsonNode load(String requestBody)
      Specified by:
      load in interface org.mockserver.async.AsyncApiControlPlane
    • status

      public com.fasterxml.jackson.databind.JsonNode status()
      Specified by:
      status in interface org.mockserver.async.AsyncApiControlPlane
    • verify

      public String verify(String verificationJson)
      Specified by:
      verify in interface org.mockserver.async.AsyncApiControlPlane
    • reset

      public void reset()
      Specified by:
      reset in interface org.mockserver.async.AsyncApiControlPlane