Examples of MediaTypeMatcher


Examples of org.wso2.carbon.registry.core.jdbc.handlers.filters.MediaTypeMatcher

    protected void activate(ComponentContext context) {
        try {
            ThemeMgtContext.getRegistryService().getConfigSystemRegistry().getRegistryContext()
                    .getHandlerManager().addHandler(null,
                    new MediaTypeMatcher("application/vnd.wso2.gs.theme"), new ThemeUploadHandler());
        } catch (Exception e) {
            log.error("GS Theme upload Handler registration failed.", e);
        }
        log.info("Successfully started GS Theme upload module.");
    }
View Full Code Here

Examples of org.wso2.carbon.registry.core.jdbc.handlers.filters.MediaTypeMatcher

  protected void activate(ComponentContext context) {
    try {
            log.debug("Gadget Repository Backend Component bundle is activated");
            GadgetRepoContext.getRegistryService().getConfigSystemRegistry().getRegistryContext().getHandlerManager().
                    addHandler(null, new MediaTypeMatcher(DashboardConstants.GADGET_MEDIA_TYPE),
                               new GadgetZipUploadHandler());

    } catch (Exception e) {
      log.debug("Failed to activate Dashboard Backend Component bundle ");
    }
View Full Code Here

Examples of org.wso2.carbon.registry.core.jdbc.handlers.filters.MediaTypeMatcher

            log.trace("Engaging the SQL Query Handler.");
        }
        // this will return the results for a custom query if the resource has the
        // media type:SQL_QUERY_MEDIA_TYPE
        SQLQueryHandler sqlQueryHandler = new SQLQueryHandler();
        MediaTypeMatcher sqlMediaTypeMatcher =
                new MediaTypeMatcher(RegistryConstants.SQL_QUERY_MEDIA_TYPE);
        handlerManager.addHandler(
                new String[]{Filter.GET, Filter.PUT}, sqlMediaTypeMatcher, sqlQueryHandler);

        // Register Simulation Handler
        handlerManager.addHandler(null, new SimulationFilter(), new SimulationHandler(),
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.