19
19
import static com .google .common .base .Preconditions .checkNotNull ;
20
20
import static restx .common .MoreFiles .checkFileExists ;
21
21
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 );
24
24
25
25
private Server server ;
26
26
private String webInfLocation ;
27
27
28
- public JettyWebServer (String appBase , int aPort ) {
28
+ public Jetty7WebServer (String appBase , int aPort ) {
29
29
this (null , appBase , aPort , null );
30
30
}
31
31
32
- public JettyWebServer (String webInfLocation , String appBase , int port , String bindInterface ) {
32
+ public Jetty7WebServer (String webInfLocation , String appBase , int port , String bindInterface ) {
33
33
super (checkNotNull (appBase ), port , bindInterface , "Jetty7" , "org.eclipse.jetty" , "jetty-server" );
34
34
35
35
if (webInfLocation != null ) {
@@ -115,7 +115,7 @@ public static WebServerSupplier jettyWebServerSupplier(final String webInfLocati
115
115
return new WebServerSupplier () {
116
116
@ Override
117
117
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" );
119
119
}
120
120
};
121
121
}
@@ -128,6 +128,6 @@ public static void main(String[] args) throws Exception {
128
128
129
129
String appBase = args [0 ];
130
130
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 ();
132
132
}
133
133
}
0 commit comments