Class SimpleAdminBean

    • Field Detail

      • m_engine

        protected Engine m_engine
        Provides access to a Engine instance to which this AdminBean belongs to.
    • Constructor Detail

      • SimpleAdminBean

        protected SimpleAdminBean()
                           throws javax.management.NotCompliantMBeanException
        Constructor reserved for subclasses only.
        Throws:
        javax.management.NotCompliantMBeanException
    • Method Detail

      • initialize

        public void initialize​(Engine engine)
        Initialize the AdminBean by setting up a Engine instance internally.
        Specified by:
        initialize in interface AdminBean
      • doGet

        public java.lang.String doGet​(Context context)
        By default, this method creates a blob of HTML, listing all the attributes which can be read or written to. If the attribute is read-only, a readonly input widget is created. The value is determined by the toString() method of the attribute.
        Specified by:
        doGet in interface GenericHTTPHandler
        Parameters:
        context - associated WikiContext
        Returns:
        the HTML for the bean
      • doPost

        public java.lang.String doPost​(Context context)
        Not implemented yet.
        Specified by:
        doPost in interface GenericHTTPHandler
        Parameters:
        context - associated WikiContext
        Returns:
        the response string resulting from the POST
      • getId

        public java.lang.String getId()
        By default, this method returns the class name of the bean. This is suitable, if you have a singleton bean.
        Specified by:
        getId in interface GenericHTTPHandler
        Returns:
        the identifier for the bean