Class JettyRestPublishService

    • Field Detail

      • sidservers

        protected java.util.Map<IServiceIdentifier,​org.eclipse.jetty.server.Server> sidservers
        The servers per service id.
      • portservers

        protected java.util.Map<java.lang.Integer,​org.eclipse.jetty.server.Server> portservers
        The servers per port.
      • unpublishinfos

        protected java.util.Map<IServiceIdentifier,​Tuple2<org.eclipse.jetty.server.Server,​org.eclipse.jetty.server.handler.ContextHandler>> unpublishinfos
        Infos for unpublishing.
    • Constructor Detail

      • JettyRestPublishService

        public JettyRestPublishService()
    • Method Detail

      • stop

        public void stop()
      • isSupported

        public IFuture<java.lang.Boolean> isSupported​(java.lang.String publishtype)
        Test if publishing a specific type is supported (e.g. web service).
        Specified by:
        isSupported in interface IPublishService
        Overrides:
        isSupported in class AbstractRestPublishService
        Parameters:
        publishtype - The type to test.
        Returns:
        True, if can be published.
      • unpublishService

        public IFuture<java.lang.Void> unpublishService​(IServiceIdentifier sid)
        Unpublish a service.
        Parameters:
        sid - The service identifier.
      • publishHMTLPage

        public IFuture<java.lang.Void> publishHMTLPage​(java.lang.String pid,
                                                       java.lang.String vhost,
                                                       java.lang.String html)
        Publish a static page (without ressources).
      • publishResources

        public IFuture<java.lang.Void> publishResources​(java.lang.String pid,
                                                        java.lang.String rootpath)
        Publish file resources from the classpath.
      • publishRedirect

        public IFuture<java.lang.Void> publishRedirect​(java.net.URI uri,
                                                       java.lang.String html)
      • unpublish

        public IFuture<java.lang.Void> unpublish​(java.lang.String vhost,
                                                 java.net.URI uri)
      • mirrorHttpServer

        public IFuture<java.lang.Void> mirrorHttpServer​(java.net.URI sourceserveruri,
                                                        java.net.URI targetserveruri,
                                                        PublishInfo info)
      • shutdownHttpServer

        public IFuture<java.lang.Void> shutdownHttpServer​(java.net.URI uri)