Class 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 Detail

      • JSX

        public static final JsExtension JSX
        The extension type of this action.
    • Constructor Detail

      • JsxAction

        public JsxAction()
    • Method Detail

      • getLogger

        protected org.slf4j.Logger getLogger()
        Specified by:
        getLogger in class AbstractSxAction
        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 class AbstractSxAction
        Parameters:
        sxSource - the source of the extension.
        sxType - the type of extension
        context - the XWiki context when rendering the skin extension.
        Throws:
        XWikiException - when an error occurs when building the response.