-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update - now working on tomcat 8.5.14 add jax-rs ri and the multipart…
… feature changed to annotation based depolyment descrp
- Loading branch information
Showing
7 changed files
with
282 additions
and
96 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
gameotron/.idea/libraries/Maven__org_glassfish_jersey_bundles_jaxrs_ri_2_25_1.xml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
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
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
26 changes: 26 additions & 0 deletions
26
gameotron/src/main/java/com/nttdata/hackathon/gameotron/TriviaServiceApp.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,26 @@ | ||
package com.nttdata.hackathon.gameotron; | ||
|
||
import org.glassfish.jersey.filter.LoggingFilter; | ||
import org.glassfish.jersey.media.multipart.MultiPartFeature; | ||
|
||
import javax.ws.rs.ApplicationPath; | ||
import javax.ws.rs.core.Application; | ||
import java.util.HashSet; | ||
import java.util.Set; | ||
import org.apache.logging.log4j.LogManager; | ||
import org.apache.logging.log4j.Logger; | ||
|
||
/** | ||
* Created by HUETTM on 24.06.2017. | ||
*/ | ||
@ApplicationPath("/gamotron") | ||
public class TriviaServiceApp extends Application { | ||
|
||
@Override | ||
public Set<Class<?>> getClasses() { | ||
final Set<Class<?>> classes = new HashSet<Class<?>>(); | ||
classes.add(TriviaService.class); | ||
classes.add(MultiPartFeature.class); | ||
return classes; | ||
} | ||
} |
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 |
---|---|---|
@@ -1,18 +1,4 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- This web.xml file is not required when using Servlet 3.0 container, | ||
see implementation details http://jersey.java.net/nonav/documentation/latest/jax-rs.html --> | ||
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> | ||
<servlet> | ||
<servlet-name>Jersey Web Application</servlet-name> | ||
<servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class> | ||
<init-param> | ||
<param-name>jersey.config.server.provider.packages</param-name> | ||
<param-value>com.nttdata.hackathon.gameotron</param-value> | ||
</init-param> | ||
<load-on-startup>1</load-on-startup> | ||
</servlet> | ||
<servlet-mapping> | ||
<servlet-name>Jersey Web Application</servlet-name> | ||
<url-pattern>/gamotron/*</url-pattern> | ||
</servlet-mapping> | ||
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
</web-app> |