Class ProxyApp


  • public final class ProxyApp
    extends io.dropwizard.Application<ProxyConfig>
    ProxyApp is the main class of the Proxy Backend.
    • Constructor Summary

      Constructors 
      Constructor Description
      ProxyApp()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()
      Standard dropwizard function to return fixed name of the application at the endpoint.
      void initialize​(@NonNull io.dropwizard.setup.Bootstrap<ProxyConfig> bootstrap)
      Initialize the application.
      static void main​(java.lang.String[] args)
      The main function receives the config file which is used in the initialization of the proxy backend.
      void run​(@NonNull ProxyConfig config, @NonNull io.dropwizard.setup.Environment env)
      Called from main.
      • Methods inherited from class io.dropwizard.Application

        addDefaultCommands, bootstrapLogging, bootstrapLogLevel, getConfigurationClass, onFatalError, onFatalError, run
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ProxyApp

        public ProxyApp()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        The main function receives the config file which is used in the initialization of the proxy backend.
        Parameters:
        args - commandline arguments
        Throws:
        java.lang.Exception - issues with initialization
      • getName

        public java.lang.String getName()
        Standard dropwizard function to return fixed name of the application at the endpoint.
        Overrides:
        getName in class io.dropwizard.Application<ProxyConfig>
        Returns:
        name of this application
      • initialize

        public void initialize​(@NonNull
                               @NonNull io.dropwizard.setup.Bootstrap<ProxyConfig> bootstrap)
        Initialize the application.
        Overrides:
        initialize in class io.dropwizard.Application<ProxyConfig>
        Parameters:
        bootstrap - combination of the yml file and environment variables
      • run

        public void run​(@NonNull
                        @NonNull ProxyConfig config,
                        @NonNull
                        @NonNull io.dropwizard.setup.Environment env)
        Called from main.
        Specified by:
        run in class io.dropwizard.Application<ProxyConfig>
        Parameters:
        config - yml file
        env - runtime platform environment