public class

ViewSourceAction

extends AbstractPageAwareAction
java.lang.Object
   ↳ com.opensymphony.xwork.ActionSupport
     ↳ com.atlassian.confluence.core.ConfluenceActionSupport
       ↳ com.atlassian.confluence.pages.actions.AbstractPageAwareAction
         ↳ com.atlassian.confluence.plugins.viewsource.ViewSourceAction

Summary

[Expand]
Inherited Constants
From class com.atlassian.confluence.core.ConfluenceActionSupport
From interface com.opensymphony.xwork.Action
Fields
protected Renderer editRenderer
[Expand]
Inherited Fields
From class com.atlassian.confluence.pages.actions.AbstractPageAwareAction
From class com.atlassian.confluence.core.ConfluenceActionSupport
From class com.opensymphony.xwork.ActionSupport
Public Constructors
ViewSourceAction()
Public Methods
String execute()
Render a read only view of the page.
String getSourceHtml()
String getSpaceKey()
boolean isLatestVersionRequired()
If the action can only work on the most recent version of a page, this will cause the interceptor to silently replace the version that it looks up with the most recent version, if necessary.
void setEditRenderer(Renderer editRenderer)
void setXhtmlContent(XhtmlContent xhtmlContent)
[Expand]
Inherited Methods
From class com.atlassian.confluence.pages.actions.AbstractPageAwareAction
From class com.atlassian.confluence.core.ConfluenceActionSupport
From class com.opensymphony.xwork.ActionSupport
From class java.lang.Object
From interface com.atlassian.confluence.pages.actions.PageAware
From interface com.atlassian.confluence.plugin.descriptor.web.WebInterface
From interface com.opensymphony.xwork.Action
From interface com.opensymphony.xwork.LocaleProvider
From interface com.opensymphony.xwork.TextProvider
From interface com.opensymphony.xwork.Validateable
From interface com.opensymphony.xwork.ValidationAware

Fields

protected Renderer editRenderer

Public Constructors

public ViewSourceAction ()

Public Methods

public String execute ()

Render a read only view of the page.

Throws
Exception

public String getSourceHtml ()

public String getSpaceKey ()

public boolean isLatestVersionRequired ()

If the action can only work on the most recent version of a page, this will cause the interceptor to silently replace the version that it looks up with the most recent version, if necessary.

Returns
  • true if the action requires the most recent version of a page

public void setEditRenderer (Renderer editRenderer)

public void setXhtmlContent (XhtmlContent xhtmlContent)