Package jadex.publishservicejetty.impl
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
FieldsFields inherited from class jadex.publishservice.impl.PublishServiceFeature
selfFields inherited from interface jadex.publishservice.IPublishService
DEFAULT_RSPUBLISH_COMPONENTS, PUBLISH_RS, PUBLISH_WS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPublishServiceJettyFeature(jadex.core.impl.Component self) -
Method Summary
Modifier and TypeMethodDescriptionjadex.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>onEnd()jadex.future.IFuture<Void>onStart()voidpublishHMTLPage(String uri, String vhost, String html) Publish a static page (without ressources).voidpublishResources(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.voidunpublishService(jadex.providedservice.IServiceIdentifier sid) Unpublish a service.Methods inherited from class jadex.publishservice.impl.PublishServiceFeature
findService, getClassLoader, getComponent, handleRequest
-
Field Details
-
ports
-
-
Constructor Details
-
PublishServiceJettyFeature
protected PublishServiceJettyFeature(jadex.core.impl.Component self)
-
-
Method Details
-
onStart
- Specified by:
onStartin interfacejadex.execution.impl.ILifecycle- Overrides:
onStartin classjadex.publishservice.impl.PublishServiceFeature
-
onEnd
- Specified by:
onEndin interfacejadex.execution.impl.ILifecycle- Overrides:
onEndin classjadex.publishservice.impl.PublishServiceFeature
-
publishService
public jadex.future.IFuture<Void> publishService(jadex.providedservice.IServiceIdentifier serviceid, jadex.publishservice.impl.PublishInfo info) Publish a service.- Specified by:
publishServicein interfacejadex.publishservice.IPublishService- Specified by:
publishServicein classjadex.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:
getHttpServerin classjadex.publishservice.impl.PublishServiceFeature
-
publishHMTLPage
Publish a static page (without ressources). -
publishResources
Publish file resources from the classpath. -
isSupported
Test if publishing a specific type is supported (e.g. web service).- Specified by:
isSupportedin interfacejadex.publishservice.IPublishService- Overrides:
isSupportedin classjadex.publishservice.impl.PublishServiceFeature- Parameters:
publishtype- The type to test.- Returns:
- True, if can be published.
-