Class PublishServiceJettyFeature

java.lang.Object
jadex.publishservice.impl.PublishServiceFeature
jadex.publishservicejetty.impl.PublishServiceJettyFeature
All Implemented Interfaces:
jadex.execution.impl.ILifecycle, jadex.publishservice.IPublishService, jadex.publishservice.IPublishServiceFeature, jadex.publishservice.IWebPublishService

public class PublishServiceJettyFeature extends jadex.publishservice.impl.PublishServiceFeature
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected Set<Integer>
     

    Fields inherited from class jadex.publishservice.impl.PublishServiceFeature

    self

    Fields inherited from interface jadex.publishservice.IPublishService

    DEFAULT_RSPUBLISH_COMPONENTS, PUBLISH_RS, PUBLISH_WS
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    PublishServiceJettyFeature(jadex.core.impl.Component self)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    jadex.future.IFuture<Object>
    getHttpServer(URI uri, jadex.publishservice.impl.PublishInfo info)
    Get or start an api to the http server.
    jadex.future.IFuture<Boolean>
    isSupported(String publishtype)
    Test if publishing a specific type is supported (e.g.
    jadex.future.IFuture<Void>
     
    jadex.future.IFuture<Void>
     
    void
    publishHMTLPage(String uri, String vhost, String html)
    Publish a static page (without ressources).
    void
    publishResources(String uri, String rootpath)
    Publish file resources from the classpath.
    jadex.future.IFuture<Void>
    publishService(jadex.providedservice.IServiceIdentifier serviceid, jadex.publishservice.impl.PublishInfo info)
    Publish a service.
    void
    unpublishService(jadex.providedservice.IServiceIdentifier sid)
    Unpublish a service.

    Methods inherited from class jadex.publishservice.impl.PublishServiceFeature

    findService, getClassLoader, getComponent, handleRequest

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • PublishServiceJettyFeature

      protected PublishServiceJettyFeature(jadex.core.impl.Component self)
  • Method Details

    • onStart

      public jadex.future.IFuture<Void> onStart()
      Specified by:
      onStart in interface jadex.execution.impl.ILifecycle
      Overrides:
      onStart in class jadex.publishservice.impl.PublishServiceFeature
    • onEnd

      public jadex.future.IFuture<Void> onEnd()
      Specified by:
      onEnd in interface jadex.execution.impl.ILifecycle
      Overrides:
      onEnd in class jadex.publishservice.impl.PublishServiceFeature
    • publishService

      public jadex.future.IFuture<Void> publishService(jadex.providedservice.IServiceIdentifier serviceid, jadex.publishservice.impl.PublishInfo info)
      Publish a service.
      Specified by:
      publishService in interface jadex.publishservice.IPublishService
      Specified by:
      publishService in class jadex.publishservice.impl.PublishServiceFeature
      Parameters:
      cl - The classloader.
      service - The original service.
      pid - The publish id (e.g. url or name).
    • unpublishService

      public void unpublishService(jadex.providedservice.IServiceIdentifier sid)
      Unpublish a service.
      Parameters:
      sid - The service identifier.
    • getHttpServer

      public jadex.future.IFuture<Object> getHttpServer(URI uri, jadex.publishservice.impl.PublishInfo info)
      Get or start an api to the http server.
      Specified by:
      getHttpServer in class jadex.publishservice.impl.PublishServiceFeature
    • publishHMTLPage

      public void publishHMTLPage(String uri, String vhost, String html)
      Publish a static page (without ressources).
    • publishResources

      public void publishResources(String uri, String rootpath)
      Publish file resources from the classpath.
    • isSupported

      public jadex.future.IFuture<Boolean> isSupported(String publishtype)
      Test if publishing a specific type is supported (e.g. web service).
      Specified by:
      isSupported in interface jadex.publishservice.IPublishService
      Overrides:
      isSupported in class jadex.publishservice.impl.PublishServiceFeature
      Parameters:
      publishtype - The type to test.
      Returns:
      True, if can be published.