Class HttpPlugin

All Implemented Interfaces:
MBeanService, Runnable

public final class HttpPlugin extends PluginThread
The Class HttpPlugin.
  • Constructor Details

    • HttpPlugin

      public HttpPlugin(String ref, Map<String,String> params)
      Instantiates a new http plugin.
      Parameters:
      ref - the ref
      params - the params
  • Method Details

    • getPluginName

      public String getPluginName()
      Gets the plugin name. Gets the plugin name.
      Specified by:
      getPluginName in class PluginThread
      Returns:
      the plugin name
    • getVersion

      public String getVersion()
      Gets the version. Gets the version.
      Specified by:
      getVersion in class PluginThread
      Returns:
      the version
    • start

      public boolean start()
      Start. Start.
      Specified by:
      start in class PluginThread
      Returns:
      true, if successful
    • reloadCertificate

      public void reloadCertificate() throws Exception
      Reloads the TLS certificate from the keystore currently in use without restarting Jetty (zero-downtime hot-reload).
      Throws:
      Exception - if the reload fails
    • getCertificateInfo

      public CertificateManager.CertificateInfo getCertificateInfo()
      Returns metadata about the certificate currently loaded in the Data Mover HTTPS server.
      Returns:
      a CertificateManager.CertificateInfo snapshot, or null if the plugin has not been started or no keystore is configured
    • getActiveKeystorePath

      public String getActiveKeystorePath()
      Returns the path to the keystore currently in use by the Data Mover HTTPS server, or null if the plugin has not been started.
      Returns:
      the active keystore path
    • getActiveKeystorePassword

      public String getActiveKeystorePassword()
      Returns the password for the keystore currently in use by the Data Mover HTTPS server.
      Returns:
      the active keystore password
    • stop

      public void stop()
      Stop. Stop.
      Specified by:
      stop in class PluginThread
    • getAttribute

      public Object getAttribute(String attributeName) throws AttributeNotFoundException, MBeanException
      Gets the attribute. Gets the attribute. Gets the attribute.
      Specified by:
      getAttribute in interface MBeanService
      Overrides:
      getAttribute in class PluginThread
      Parameters:
      attributeName - the attribute name
      Returns:
      the attribute
      Throws:
      AttributeNotFoundException - the attribute not found exception
      MBeanException - the MBean exception
    • getMBeanInfo

      public MBeanInfo getMBeanInfo()
      Gets the MBean info. Gets the MBean info. Gets the MBean info.
      Specified by:
      getMBeanInfo in interface MBeanService
      Overrides:
      getMBeanInfo in class PluginThread
      Returns:
      the MBean info
    • invoke

      public Object invoke(String operationName, Object[] params, String[] signature) throws NoSuchMethodException, MBeanException
      Invoke. Invoke. Invoke.
      Specified by:
      invoke in interface MBeanService
      Overrides:
      invoke in class PluginThread
      Parameters:
      operationName - the operation name
      params - the params
      signature - the signature
      Returns:
      the object
      Throws:
      NoSuchMethodException - the no such method exception
      MBeanException - the MBean exception