Package com.xpn.xwiki.web
Class JsxAction
- java.lang.Object
-
- com.xpn.xwiki.web.XWikiAction
-
- com.xpn.xwiki.web.sx.AbstractSxAction
-
- com.xpn.xwiki.web.JsxAction
-
- All Implemented Interfaces:
com.xpn.xwiki.internal.web.LegacyAction
@Component @Named("jsx") @Singleton public class JsxAction extends AbstractSxAction
Action for serving javascript skin extensions.
- Since:
- 1.4M2
- Version:
- $Id: e306ceb61f339e482d9e129a551d6b3611353d32 $
-
-
Field Summary
Fields Modifier and Type Field Description static JsExtension
JSX
The extension type of this action.-
Fields inherited from class com.xpn.xwiki.web.XWikiAction
ACTION_PROGRESS, componentDescriptor, container, execution, observation, waitForXWikiInitialization
-
-
Constructor Summary
Constructors Constructor Description JsxAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
compress(String source, SxCompressor compressor, XWikiContext context)
Extension
getExtensionType()
Get the type of extension, depends on the type of action.protected org.slf4j.Logger
getLogger()
void
renderExtension(SxSource sxSource, Extension sxType, XWikiContext context)
This method must be called by render(XWikiContext).-
Methods inherited from class com.xpn.xwiki.web.sx.AbstractSxAction
getDebugConfiguration, render
-
Methods inherited from class com.xpn.xwiki.web.XWikiAction
action, answerJSON, cleanupComponents, csrfTokenCheck, csrfTokenCheck, execute, execute, getContextualAuthorizationManager, getCurrentMixedDocumentReferenceResolver, getCurrentScriptContext, getEntityNameValidationConfiguration, getEntityNameValidationManager, getFormClass, getLocalization, getLocalSerializer, getName, getProgress, getRealPath, getTranslatedDocument, handleRevision, initializeContainerComponent, initializeXWikiContext, initializeXWikiContext, isEntityReferenceNameValid, localizePlainOrKey, readFromTemplate, resolveTemplate, sendGlobalRedirect, sendRedirect, setContentLength, supportRedirections, writeAjaxErrorResponse
-
-
-
-
Field Detail
-
JSX
public static final JsExtension JSX
The extension type of this action.
-
-
Method Detail
-
getExtensionType
public Extension getExtensionType()
Description copied from class:AbstractSxAction
Get the type of extension, depends on the type of action.- Specified by:
getExtensionType
in classAbstractSxAction
- Returns:
- a new object which extends Extension.
-
getLogger
protected org.slf4j.Logger getLogger()
- Specified by:
getLogger
in classAbstractSxAction
- Returns:
- the logging object of the concrete subclass.
-
renderExtension
public void renderExtension(SxSource sxSource, Extension sxType, XWikiContext context) throws XWikiException
Description copied from class:AbstractSxAction
This method must be called by render(XWikiContext). Render is in charge of creating the proper source and extension type, and pass it as an argument to this method which will forge the proper response using those.- Overrides:
renderExtension
in classAbstractSxAction
- Parameters:
sxSource
- the source of the extension.sxType
- the type of extensioncontext
- the XWiki context when rendering the skin extension.- Throws:
XWikiException
- when an error occurs when building the response.
-
compress
protected String compress(String source, SxCompressor compressor, XWikiContext context)
- Overrides:
compress
in classAbstractSxAction
-
-