Examples of JaxRsApplication


Examples of com.elastisys.scale.commons.rest.server.JaxRsApplication

   *             create the server.
   */
  public static Server createServer(CloudAdapter cloudAdapter,
      CloudAdapterOptions options) throws Exception {

    JaxRsApplication application = new JaxRsApplication();
    // deploy pool handler
    application.addHandler(new PoolHandler(cloudAdapter));

    if (options.enableConfigHandler) {
      // optionally deploy config handler and config schema handler
      application.addHandler(new ConfigHandler(cloudAdapter));
      application.addHandler(new ConfigSchemaHandler(cloudAdapter));
    }

    if (options.enableExitHandler) {
      // optionally deploy exit handler
      application.addHandler(new ExitHandler());
    }

    if (options.config != null) {
      // optionally configure cloud adapter
      JsonObject configuration = parseJsonConfig(options.config);
View Full Code Here

Examples of com.lunatech.doclets.jax.jaxrs.model.JAXRSApplication

  protected JAXRSConfiguration makeConfiguration(ConfigurationImpl configuration) {
    return new JAXRSConfiguration(configuration);
  }

  public void start() {
    JAXRSApplication app = new JAXRSApplication(conf);
    Resource rootResource = app.getRootResource();

    PojoTypes types = new PojoTypes(conf);

    rootResource.write(this, conf, app, types);
    new IndexWriter(conf, app, this).write();
View Full Code Here

Examples of org.restlet.ext.jaxrs.JaxRsApplication

     *            the RoleChecer to use.
     * @return
     */
    protected JaxRsApplication createApplication(Application appConfig,
            ChallengeScheme challengeScheme) {
        final JaxRsApplication application = new JaxRsApplication(new Context());
        application.add(appConfig);
        modifyApplication(application);
        return application;
    }
View Full Code Here

Examples of org.restlet.ext.jaxrs.JaxRsApplication

        // create Component (as ever for Restlet)
        final Component comp = new Component();
        final Server server = comp.getServers().add(Protocol.HTTP, 80);

        // create JAX-RS runtime environment
        final JaxRsApplication application = new JaxRsApplication(comp
                .getContext().createChildContext());

        // attach ApplicationConfig
        application.add(new ExampleApplication());

        // Attach the application to the component and start it
        comp.getDefaultHost().attach(application);
        comp.start();
View Full Code Here

Examples of org.restlet.ext.jaxrs.JaxRsApplication

     *            parent context.
     * @return a new {@link JaxRsApplication} instance.
     */
    @Override
    protected Application createApplication(Context parentContext) {
        JaxRsApplication jaxRsApplication = new JaxRsApplication(parentContext.createChildContext());
        jaxRsApplication.setObjectFactory(new ApplicationContextObjectFactory(getServletContext()));
        jaxRsApplication.add(config);
        return jaxRsApplication;
    }
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.