1919import static com .google .common .base .Preconditions .checkNotNull ;
2020import static restx .common .MoreFiles .checkFileExists ;
2121
22- public class JettyWebServer extends WebServerBase {
23- private static final Logger logger = LoggerFactory .getLogger (JettyWebServer .class );
22+ public class Jetty7WebServer extends WebServerBase {
23+ private static final Logger logger = LoggerFactory .getLogger (Jetty7WebServer .class );
2424
2525 private Server server ;
2626 private String webInfLocation ;
2727
28- public JettyWebServer (String appBase , int aPort ) {
28+ public Jetty7WebServer (String appBase , int aPort ) {
2929 this (null , appBase , aPort , null );
3030 }
3131
32- public JettyWebServer (String webInfLocation , String appBase , int port , String bindInterface ) {
32+ public Jetty7WebServer (String webInfLocation , String appBase , int port , String bindInterface ) {
3333 super (checkNotNull (appBase ), port , bindInterface , "Jetty7" , "org.eclipse.jetty" , "jetty-server" );
3434
3535 if (webInfLocation != null ) {
@@ -115,7 +115,7 @@ public static WebServerSupplier jettyWebServerSupplier(final String webInfLocati
115115 return new WebServerSupplier () {
116116 @ Override
117117 public WebServer newWebServer (int port ) {
118- return new JettyWebServer (webInfLocation , appBase , port , "0.0.0.0" );
118+ return new Jetty7WebServer (webInfLocation , appBase , port , "0.0.0.0" );
119119 }
120120 };
121121 }
@@ -128,6 +128,6 @@ public static void main(String[] args) throws Exception {
128128
129129 String appBase = args [0 ];
130130 int port = args .length > 1 ? Integer .parseInt (args [1 ]) : 8086 ;
131- new JettyWebServer (appBase + "WEB-INF/web.xml" , appBase , port , "0.0.0.0" ).startAndAwait ();
131+ new Jetty7WebServer (appBase + "WEB-INF/web.xml" , appBase , port , "0.0.0.0" ).startAndAwait ();
132132 }
133133}
0 commit comments