net.i2p.router.web.helpers

## Class ConfigRestartBean

- java.lang.Object
- - net.i2p.router.web.helpers.ConfigRestartBean

-     public class ConfigRestartBean
      extends Object

  simple helper to control restarts/shutdowns in the left hand nav

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ConfigRestartBean()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static String` | `getNonce()`
    `static long` | `getRestartTimeRemaining()` this is for sidebar.jsp
    `static boolean` | `isAdvanced()`
    `static boolean` | `isRestarting(RouterContext ctx)`
    `static boolean` | `isShuttingDown(RouterContext ctx)`
    `static String` | `renderStatus(String urlBase, String action, String nonce)` this also initiates the restart/shutdown based on action

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ConfigRestartBean

          public ConfigRestartBean()

  - ### Method Detail

    - #### getNonce

          public static String getNonce()

    - #### getRestartTimeRemaining

          public static long getRestartTimeRemaining()

      this is for sidebar.jsp

    - #### isAdvanced

          public static boolean isAdvanced()

    - #### isRestarting

          public static boolean isRestarting(RouterContext ctx)

    - #### isShuttingDown

          public static boolean isShuttingDown(RouterContext ctx)

    - #### renderStatus

          public static String renderStatus(String urlBase,
                                            String action,
                                            String nonce)

      this also initiates the restart/shutdown based on action