Class NanoRestPublishService

    • Field Detail

      • portservers2

        protected java.util.Map<java.lang.Integer,​NanoWebsocketServer> portservers2
        The servers per port.
    • Constructor Detail

      • NanoRestPublishService

        public NanoRestPublishService()
    • Method Detail

      • start

        public void start()
      • stop

        public void stop()
      • getPathHandler

        public PathHandler getPathHandler​(java.net.URI uri,
                                          PublishInfo info)
        Get or start an api to the http server.
      • getFile

        public static java.io.File getFile​(java.lang.ClassLoader cl,
                                           java.lang.String path)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • getInputStream

        public static java.io.InputStream getInputStream​(java.io.File f)
                                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • getURL

        public static java.net.URL getURL​(java.lang.ClassLoader cl,
                                          java.lang.String path)