Package org.openxri.config

Examples of org.openxri.config.ServerConfig


    String sServerConfigClass = oServletConfig.getInitParameter(SERVER_CONFIG_CLASS);
    if (sServerConfigClass == null) sServerConfigClass = DEFAULT_SERVER_CONFIG_CLASS;

    // initialize the configuration object

    ServerConfig oConfig = null;

    try
    {
      Class oConfigClass = Class.forName(sServerConfigClass);
      oConfig = (ServerConfig) oConfigClass.newInstance();

      Hashtable oParameters = new Hashtable();
      oParameters.put(ServerConfig.SERVLET_CONTEXT_KEY, oServletConfig.getServletContext());
      Enumeration oEnum = oServletConfig.getInitParameterNames();
      while (oEnum.hasMoreElements())
      {
        String sKey = (String) oEnum.nextElement();
        oParameters.put(sKey, oServletConfig.getInitParameter(sKey));
      }

      oConfig.init(oParameters);
    } catch (Exception ex) {

      throw new ServletException("Failed to instantiate server config class " + sServerConfigClass, ex);
    }
View Full Code Here


  public Index() {

    this.setTitle(this.getString("title"));

    ServerConfig openXRIConfig = ((OpenXRIAdminApplication) Application.get()).getOpenXRIServerConfig();

    // create and add components

    String serverUrl = openXRIConfig.getHostName() + ":" + openXRIConfig.getHostPort() + openXRIConfig.getServletPath();
    this.add(new Label("serverUrl", serverUrl));
  }
View Full Code Here

  public Index() {

    this.setTitle(this.getString("title"));

    ServerConfig openXRIConfig = ((OpenXRIAdminApplication) Application.get()).getOpenXRIServerConfig();

    // create and add components

    String serverUrl = openXRIConfig.getHostName() + ":" + openXRIConfig.getHostPort() + openXRIConfig.getServletPath();
    this.add(new Label("serverUrl", serverUrl));
    this.add(new QuickResolutionForm("quickResolutionForm"));
    this.add(new QuickRetrievalForm("quickRetrievalForm"));
  }
View Full Code Here

          break;
        }

        // check if the authority overrides the LOOKUP pipeline. if not, use the default.

        ServerConfig serverConfig = ServerConfigFactory.getSingleton();
        PipelineRegistry pipelineRegistry = (serverConfig == null) ? null : serverConfig.getPipelineRegistry();
        Pipeline lookupPipeline = null;

        if (this.store instanceof StoreAttributable) {

          StoreAttributable storeAttributable = (StoreAttributable) this.store;
View Full Code Here

          continue;
        }

        // check if the parent authority overrides the LOOKUP pipeline. if not, use the default.

        ServerConfig serverConfig = ServerConfigFactory.getSingleton();
        PipelineRegistry pipelineRegistry = (serverConfig == null) ? null : serverConfig.getPipelineRegistry();
        Pipeline lookupPipeline = null;

        if (this.store instanceof StoreAttributable) {

          StoreAttributable storeAttributable = (StoreAttributable) this.store;
View Full Code Here

          continue;
        }

        // check if the authority overrides the LOOKUP pipeline. if not, use the default.

        ServerConfig serverConfig = ServerConfigFactory.getSingleton();
        PipelineRegistry pipelineRegistry = (serverConfig == null) ? null : serverConfig.getPipelineRegistry();
        Pipeline lookupPipeline = null;

        if (this.store instanceof StoreAttributable) {

          StoreAttributable storeAttributable = (StoreAttributable) this.store;
View Full Code Here

      parameters.put(sKey, servletConfig.getInitParameter(sKey));
    }

    // get the configuration object

    ServerConfig serverConfig = ServerConfigFactory.getInstance().getServerConfig(parameters);

    // now initialize the servlet

    init(serverConfig);
  }
View Full Code Here

      Constructor oConstructor = oClass.getConstructor(oConstructorArgs);

      Object[] oArgs = new Object[1];
      oArgs[0] = parameters;
      ServerConfig oImpl = (ServerConfig) oConstructor.newInstance(oArgs);

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

      oImpl.init();

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

    log.trace("createAuthority()");

    // use the default CREATE pipeline.

    ServerConfig serverConfig = ServerConfigFactory.getSingleton();
    PipelineRegistry pipelineRegistry = (serverConfig == null) ? null : serverConfig.getPipelineRegistry();
    Pipeline createPipeline = null;

    if (pipelineRegistry != null) createPipeline = pipelineRegistry.getDefaultCreatePipeline();

    // start database session
View Full Code Here

    log.trace("createRootSubSegment()");

    // use the default CREATE pipeline.

    ServerConfig serverConfig = ServerConfigFactory.getSingleton();
    PipelineRegistry pipelineRegistry = (serverConfig == null) ? null : serverConfig.getPipelineRegistry();
    Pipeline createPipeline = null;

    if (pipelineRegistry != null) createPipeline = pipelineRegistry.getDefaultCreatePipeline();

    // start database session
View Full Code Here

TOP

Related Classes of org.openxri.config.ServerConfig

Copyright © 2018 www.massapicom. 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.