Package org.platformlayer.service.jetty.model

Examples of org.platformlayer.service.jetty.model.JettyService


    @Override
    protected JettyService buildItemTemplate() throws OpsException {
      Tag parentTag = Tag.buildParentTag(model.getKey());

      JettyService server = new JettyService();

      server.getTags().addAll(Tag.HOST_POLICY.filter(model.getTags()));

      server.transport = Transport.Ipv6;

      // server.dnsName = model.dnsName;
      server.contexts = Lists.newArrayList();

      JettyContext context = new JettyContext();
      context.id = null;
      context.source = model.source;
      context.links = model.links;

      server.contexts.add(context);

      Tag uniqueTag = UniqueTag.build(model);
      server.getTags().add(uniqueTag);
      server.getTags().add(parentTag);

      server.key = PlatformLayerKey.fromId(model.getId());

      return server;
    }
View Full Code Here


  public ItemBase getModel() {
    return getJettyService();
  }

  public JettyService getJettyService() {
    JettyService model = OpsContext.get().getInstance(JettyService.class);
    return model;
  }
View Full Code Here

TOP

Related Classes of org.platformlayer.service.jetty.model.JettyService

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.