Class DefaultPluginActionResult
- java.lang.Object
-
- fr.paris.lutece.portal.web.pluginaction.DefaultPluginActionResult
-
- All Implemented Interfaces:
IPluginActionResult
public class DefaultPluginActionResult extends Object implements IPluginActionResult
Result of an action.
Use :setRedirect(String): if the action need a redirectsetHtmlContent(String): if the action needs to display html contentsetNoop(boolean): if no post-action is required (mainly for exports writing directly to the response).
-
-
Constructor Summary
Constructors Constructor Description DefaultPluginActionResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetHtmlContent()Returns the html content if any,nullotherwiseStringgetRedirect()Returns the redirect url,nullotherwise.booleanisNoop()Returnstrueif no operation needed,falseotherwise.voidsetHtmlContent(String strHtmlContent)Sets the html content if any,nullotherwisevoidsetNoop(boolean bNoop)Set totrueif no operation needed,falseotherwise.voidsetRedirect(String strRedirect)Sets the redirect url,nullotherwise.
-
-
-
Method Detail
-
getRedirect
public String getRedirect()
Returns the redirect url,nullotherwise.- Specified by:
getRedirectin interfaceIPluginActionResult- Returns:
- the redirect url,
nullotherwise
-
setRedirect
public void setRedirect(String strRedirect)
Sets the redirect url,nullotherwise.- Specified by:
setRedirectin interfaceIPluginActionResult- Parameters:
strRedirect- the redirect url,nullotherwise.
-
isNoop
public boolean isNoop()
Returnstrueif no operation needed,falseotherwise.- Specified by:
isNoopin interfaceIPluginActionResult- Returns:
trueif no operation needed,falseotherwise.
-
setNoop
public void setNoop(boolean bNoop)
Set totrueif no operation needed,falseotherwise.- Specified by:
setNoopin interfaceIPluginActionResult- Parameters:
bNoop-trueif no operation needed,falseotherwise.
-
getHtmlContent
public String getHtmlContent()
Returns the html content if any,nullotherwise- Specified by:
getHtmlContentin interfaceIPluginActionResult- Returns:
- the html content if any,
nullotherwise
-
setHtmlContent
public void setHtmlContent(String strHtmlContent)
Sets the html content if any,nullotherwise- Specified by:
setHtmlContentin interfaceIPluginActionResult- Parameters:
strHtmlContent- the html content if any,nullotherwise
-
-