Examples of URIMapper


Examples of org.brixcms.config.UriMapper

        try {
            // create uri mapper for the cms
            // we are mounting the cms on the root, and getting the workspace name from the
            // application properties
            UriMapper mapper = new PrefixUriMapper(Path.ROOT) {
                public Workspace getWorkspaceForRequest(RequestCycle requestCycle, Brix brix) {
                    final String name = getProperties().getJcrDefaultWorkspace();
                    SitePlugin sitePlugin = SitePlugin.get(brix);
                    return sitePlugin.getSiteWorkspace(name, getProperties().getWorkspaceDefaultState());
                }
View Full Code Here

Examples of org.openxri.mapper.URIMapper

      Constructor oConstructor = oClass.getConstructor(oConstructorArgs);

      Object[] oArgs = new Object[1];
      oArgs[0] = oConfig.getURIMapperImplArgs();
      URIMapper oImpl = (URIMapper) oConstructor.newInstance(oArgs);

      soLog.debug("Successfully constructed URIMapper implementation.");

      oImpl.init();

      return oImpl;
    }
    catch (ClassNotFoundException oEx)
    {
View Full Code Here

Examples of org.openxri.mapper.URIMapper

      Constructor oConstructor = oClass.getConstructor(oConstructorArgs);

      Object[] oArgs = new Object[1];
      oArgs[0] = oConfig.getURIMapperImplArgs();
      URIMapper oImpl = (URIMapper) oConstructor.newInstance(oArgs);

      soLog.debug("Successfully constructed URIMapper implementation.");

      oImpl.init();

      return oImpl;
    }
    catch (ClassNotFoundException oEx)
    {
View Full Code Here

Examples of org.openxri.urimapper.URIMapper

    }

    @Override
    protected void onSubmit() {

      URIMapper openXRIURIMapper = ((OpenXRIAdminApplication) Application.get()).getOpenXRIURIMapper();

      URIMapperRequest request;
      URIMapperResult result;

      try {

        request = (URIMapperRequest) this.getModelObject();
        result = openXRIURIMapper.parseRequest(request);
        if (result == null) throw new RuntimeException();
      } catch (Exception ex) {

        log.error(ex);
        Index.this.error(Index.this.getString("parsefail") + ex.getLocalizedMessage());
View Full Code Here

Examples of org.openxri.urimapper.URIMapper

    @Override
    protected void onSubmit() {

      ServerConfig serverConfig = ((OpenXRIAdminApplication) Application.get()).getOpenXRIServerConfig();
      URIMapper openXRIURIMapper = ((OpenXRIAdminApplication) Application.get()).getOpenXRIURIMapper();

      try {

        StringBuffer uri = new StringBuffer()
        .append("http://")
        .append(serverConfig.getHostName())
        .append(":")
        .append(serverConfig.getHostPort())
        .append(serverConfig.getServletPath());

        openXRIURIMapper.completeURI(uri, this.namespace);

        Index.this.completeResultFragment.setUri(uri.toString());
      } catch (Exception ex) {

        log.error(ex);
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.