public class InsertPage extends Object implements WikiPlugin
Parameters :
Modifier and Type | Field and Description |
---|---|
static String |
ATTR_RECURSE
This attribute is stashed in the WikiContext to make sure that we don't
have circular references.
|
static String |
PARAM_CLASS
Parameter name for setting the class.
|
static String |
PARAM_DEFAULT
Parameter name for setting the default.
|
static String |
PARAM_MAXLENGTH
Parameter name for setting the maxlength.
|
static String |
PARAM_PAGENAME
Parameter name for setting the page.
|
static String |
PARAM_SECTION
Parameter name for setting the section.
|
static String |
PARAM_SHOW
Parameter name for setting the show option.
|
static String |
PARAM_STYLE
Parameter name for setting the style.
|
CORE_PLUGINS_RESOURCEBUNDLE
Constructor and Description |
---|
InsertPage() |
Modifier and Type | Method and Description |
---|---|
String |
execute(WikiContext context,
Map<String,String> params)
This is the main entry point for any plugin.
|
public static final String PARAM_PAGENAME
public static final String PARAM_STYLE
public static final String PARAM_MAXLENGTH
public static final String PARAM_CLASS
public static final String PARAM_SHOW
public static final String PARAM_SECTION
public static final String PARAM_DEFAULT
public static final String ATTR_RECURSE
public InsertPage()
public String execute(WikiContext context, Map<String,String> params) throws PluginException
Note that it is preferred that the plugin returns XHTML-compliant HTML (i.e. close all tags, use <br /> instead of <br>, etc.
execute
in interface WikiPlugin
context
- The current WikiContext.params
- A Map which contains key-value pairs. Any
parameter that the user has specified on the
wiki page will contain String-String
parameters, but it is possible that at some future date,
JSPWiki will give you other things that are not Strings.PluginException
- In case anything goes wrong.Copyright © 2001-2019 The Apache Software Foundation. All rights reserved.