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
self
Fields inherited from interface jadex.publishservice.IPublishService
DEFAULT_RSPUBLISH_COMPONENTS, PUBLISH_RS, PUBLISH_WS
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
PublishServiceJettyFeature
(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()
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
-
Field Details
-
ports
-
-
Constructor Details
-
PublishServiceJettyFeature
protected PublishServiceJettyFeature(jadex.core.impl.Component self)
-
-
Method Details
-
onStart
- Specified by:
onStart
in interfacejadex.execution.impl.ILifecycle
- Overrides:
onStart
in classjadex.publishservice.impl.PublishServiceFeature
-
onEnd
- Specified by:
onEnd
in interfacejadex.execution.impl.ILifecycle
- Overrides:
onEnd
in 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:
publishService
in interfacejadex.publishservice.IPublishService
- Specified by:
publishService
in 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:
getHttpServer
in 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:
isSupported
in interfacejadex.publishservice.IPublishService
- Overrides:
isSupported
in classjadex.publishservice.impl.PublishServiceFeature
- Parameters:
publishtype
- The type to test.- Returns:
- True, if can be published.
-