Class EndpointUtils

java.lang.Object
io.micronaut.controlpanel.ui.util.EndpointUtils

@Internal public final class EndpointUtils extends Object
Utility methods for Endpoint.
Since:
1.0.0
Author:
Álvaro Sánchez-Mariscal
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    canRefresh(@Nullable io.micronaut.management.endpoint.refresh.RefreshEndpoint endpoint, io.micronaut.context.BeanContext beanContext)
    Determines if the control panel can call the refresh endpoint.
    static boolean
    canStop(@Nullable io.micronaut.management.endpoint.stop.ServerStopEndpoint endpoint, io.micronaut.context.BeanContext beanContext)
    Determines if the control panel can call the stop endpoint.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • canRefresh

      public static boolean canRefresh(@Nullable @Nullable io.micronaut.management.endpoint.refresh.RefreshEndpoint endpoint, io.micronaut.context.BeanContext beanContext)
      Determines if the control panel can call the refresh endpoint.
      Parameters:
      endpoint - the endpoint
      beanContext - the bean context
      Returns:
      true if the endpoint can be called, false otherwise
    • canStop

      public static boolean canStop(@Nullable @Nullable io.micronaut.management.endpoint.stop.ServerStopEndpoint endpoint, io.micronaut.context.BeanContext beanContext)
      Determines if the control panel can call the stop endpoint.
      Parameters:
      endpoint - the endpoint
      beanContext - the bean context
      Returns:
      true if the endpoint can be called, false otherwise