Class JettyRunner

    • Constructor Summary

      Constructors 
      Constructor Description
      JettyRunner()  
      JettyRunner​(java.lang.String webappFolder, java.lang.String contextPath, int port, int sslPort)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      JettyRunner configure​(java.lang.String webappFolder, java.lang.String contextPath, int port, int sslPort)  
      protected java.lang.String expand​(java.lang.String moduleLocalPath)
      Needed inside Maven multi-projects to expand a path relative to the module to a complete path.
      org.eclipse.jetty.server.Server getServer()  
      static void main​(java.lang.String[] args)
      Main entrypoint used to run the Jetty instance from the command line.
      void start()  
      void stop()
      Immediately shuts down the server instance.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • JettyRunner

        public JettyRunner​(java.lang.String webappFolder,
                           java.lang.String contextPath,
                           int port,
                           int sslPort)
                    throws java.lang.Exception
        Throws:
        java.lang.Exception
    • Method Detail

      • configure

        public JettyRunner configure​(java.lang.String webappFolder,
                                     java.lang.String contextPath,
                                     int port,
                                     int sslPort)
                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • start

        public void start()
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getServer

        public org.eclipse.jetty.server.Server getServer()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • expand

        protected java.lang.String expand​(java.lang.String moduleLocalPath)
        Needed inside Maven multi-projects to expand a path relative to the module to a complete path. If the path already is absolute and points to an existing directory, it will be used unchanged.
        Parameters:
        moduleLocalPath -
        Returns:
        expanded path
        See Also:
        TapestryRunnerConstants.MODULE_BASE_DIR
      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Main entrypoint used to run the Jetty instance from the command line.
        Throws:
        java.lang.Exception
        Since:
        5.4