Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[breaking] servers - renamed JettyWebServer Jetty8WebServer, same for…
… module and properties + added SessionsTest for jetty 8
- Loading branch information
Showing
7 changed files
with
45 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
restx-server-jetty8/src/main/java/restx/server/Jetty8ServerModule.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package restx.server; | ||
|
||
import restx.factory.Module; | ||
import restx.factory.Provides; | ||
|
||
import javax.inject.Named; | ||
|
||
/** | ||
* @author fcamblor | ||
*/ | ||
@Module(priority = 1000) | ||
public class Jetty8ServerModule { | ||
@Provides | ||
@Named("restx.server.jetty8.webxml.default.location") | ||
public String restxServerJettyWebXmlDefaultLocation(@Named("restx.server.jetty8.appbase.default.location") String appBase) { | ||
return appBase+"/WEB-INF/web.xml"; | ||
} | ||
|
||
|
||
@Provides | ||
@Named("restx.server.jetty8.appbase.default.location") | ||
public String restxServerJettyAppBaseDefaultLocation() { | ||
return "src/main/webapp"; | ||
} | ||
|
||
@Provides | ||
@Named("restx.server.jetty8") | ||
public WebServerSupplier jettyWebServerSupplier( | ||
@Named("restx.server.jetty8.appbase.default.location") String appBase, | ||
@Named("restx.server.jetty8.webxml.default.location") String webxml){ | ||
return Jetty8WebServer.jettyWebServerSupplier(webxml, appBase); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 0 additions & 35 deletions
35
restx-server-jetty8/src/main/java/restx/server/JettyServerModule.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters