This repository has been archived by the owner on Apr 10, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1cc8968
commit fe03553
Showing
2 changed files
with
18 additions
and
15 deletions.
There are no files selected for viewing
17 changes: 2 additions & 15 deletions
17
jetty-embedded/src/main/java/de/marcelhodan/blog/jettyembedded/httpserver/RESTServer.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
16 changes: 16 additions & 0 deletions
16
...bedded/src/main/java/de/marcelhodan/blog/jettyembedded/httpserver/servlet/DummyClass.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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,16 @@ | |||
package de.marcelhodan.blog.jettyembedded.httpserver.servlet; | |||
|
|||
import javax.ws.rs.GET; | |||
import javax.ws.rs.Path; | |||
import javax.ws.rs.Produces; | |||
import javax.ws.rs.core.MediaType; | |||
|
|||
@Path("/dummy") | |||
public class DummyClass { | |||
@GET | |||
@Path("test") | |||
@Produces(MediaType.TEXT_PLAIN) | |||
public String test() { | |||
return "my test"; | |||
} | |||
} |