com.github.dynamicextensionsalfresco.controlpanel.IndexHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of control-panel Show documentation
Show all versions of control-panel Show documentation
Adds an OSGi container to alfresco repository supporting dynamic code reloading, classpath isolation and a bunch of other useful features
package com.github.dynamicextensionsalfresco.controlpanel;
import com.github.dynamicextensionsalfresco.webscripts.annotations.Attribute;
import com.github.dynamicextensionsalfresco.webscripts.annotations.Uri;
import com.github.dynamicextensionsalfresco.webscripts.annotations.WebScript;
import com.github.dynamicextensionsalfresco.webscripts.resolutions.RedirectResolution;
import com.github.dynamicextensionsalfresco.webscripts.resolutions.Resolution;
import org.springframework.stereotype.Component;
/**
* Handles requests for the index page.
*
* This implementation redirects to the {@link Bundles} index.
*
* @author Laurens Fridael
*/
@Component
@WebScript(families = "control panel")
public class IndexHandler extends AbstractControlPanelHandler {
@Uri("/dynamic-extensions/")
public Resolution redirectToBundles(@Attribute final ResponseHelper response) {
return new RedirectResolution(Urls.BUNDLES);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy