Package org.apache.wiki.ui.admin.beans
Class PlainEditorAdminBean
- java.lang.Object
- 
- org.apache.wiki.management.SimpleMBean
- 
- org.apache.wiki.ui.admin.beans.PlainEditorAdminBean
 
 
- 
- All Implemented Interfaces:
- javax.management.DynamicMBean,- AdminBean,- GenericHTTPHandler
 
 public class PlainEditorAdminBean extends SimpleMBean implements AdminBean This class is still experimental.
- 
- 
Field Summary- 
Fields inherited from class org.apache.wiki.management.SimpleMBeanm_beanInfo
 
- 
 - 
Constructor SummaryConstructors Constructor Description PlainEditorAdminBean()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringdoGet(Context context)Return basic HTML.java.lang.StringdoPost(Context context)Handles a POST response.java.lang.String[]getAttributeNames()This method must return a list of attributes which are exposed by the SimpleMBean.booleangetChecked()java.lang.StringgetId()Get an identifier for this particular AdminBean.java.lang.String[]getMethodNames()This method must return a list of operations which are to be exposed by the SimpleMBean.java.lang.StringgetTitle()Return a human-readable title for this AdminBean.intgetType()Returns a type (UNKNOWN, EDITOR, etc).voidinitialize(Engine engine)booleanisEnabled()- 
Methods inherited from class org.apache.wiki.management.SimpleMBeangetAttribute, getAttributes, getDescription, getMBeanInfo, invoke, setAttribute, setAttributes
 
- 
 
- 
- 
- 
Constructor Detail- 
PlainEditorAdminBeanpublic PlainEditorAdminBean() throws javax.management.NotCompliantMBeanException - Throws:
- javax.management.NotCompliantMBeanException
 
 
- 
 - 
Method Detail- 
doGetpublic java.lang.String doGet(Context context) Description copied from interface:GenericHTTPHandlerReturn basic HTML.- Specified by:
- doGetin interface- GenericHTTPHandler
- Parameters:
- context- associated WikiContext
- Returns:
- the HTML for the bean
 
 - 
doPostpublic java.lang.String doPost(Context context) Description copied from interface:GenericHTTPHandlerHandles a POST response.- Specified by:
- doPostin interface- GenericHTTPHandler
- Parameters:
- context- associated WikiContext
- Returns:
- the response string resulting from the POST
 
 - 
getTitlepublic java.lang.String getTitle() Description copied from interface:AdminBeanReturn a human-readable title for this AdminBean.
 - 
getTypepublic int getType() Description copied from interface:AdminBeanReturns a type (UNKNOWN, EDITOR, etc).
 - 
isEnabledpublic boolean isEnabled() 
 - 
getIdpublic java.lang.String getId() Description copied from interface:GenericHTTPHandlerGet an identifier for this particular AdminBean. This id MUST conform to URI rules. The ID must also be unique across all HTTPHandlers.- Specified by:
- getIdin interface- GenericHTTPHandler
- Returns:
- the identifier for the bean
 
 - 
getCheckedpublic boolean getChecked() 
 - 
getAttributeNamespublic java.lang.String[] getAttributeNames() Description copied from class:SimpleMBeanThis method must return a list of attributes which are exposed by the SimpleMBean. If there's a getXXX() method available, it'll be exposed as a getter, and if there's a setXXX() method available, it'll be exposed as a setter. For example:public void setFoo( String foo ) ... public String getFoo() ... public String[] getAttributeNames() { String[] attrs = { "foo" }; return attrs; }Also, methods starting with "is" are also recognized as getters (e.g.public boolean isFoo().)- Specified by:
- getAttributeNamesin class- SimpleMBean
- Returns:
- An array of attribute names that can be get and optionally set.
 
 - 
getMethodNamespublic java.lang.String[] getMethodNames() Description copied from class:SimpleMBeanThis method must return a list of operations which are to be exposed by the SimpleMBean. Note that using overloaded method names is not supported - only one will be exposed as a JMX method at random.- Specified by:
- getMethodNamesin class- SimpleMBean
- Returns:
- An array of method names that should be exposed as JMX operations.
 
 - 
initializepublic void initialize(Engine engine) - Specified by:
- initializein interface- AdminBean
 
 
- 
 
-