Permalink
Browse files

added java/undertow-jersey-hikaricp plaintext support (#2187)

  • Loading branch information...
mwflickner authored and knewmanTE committed Aug 6, 2016
1 parent ea7fb8d commit d1e3dcfd5d48d897ce072b8c403010320327b445
@@ -7,6 +7,7 @@
"db_url": "/db?single=true",
"query_url": "/db?queries=",
"fortune_url": "/fortunes",
"plaintext_url": "/plaintext",
"port": 8080,
"approach": "Realistic",
"classification": "Micro",
@@ -35,7 +35,7 @@ public static void main(final String[] args) throws Exception
final int dbPort = Integer.parseInt(cmd.getOptionValue("dbport", "3306"));
ResourceConfig config = new ResourceConfig(DbResource.class,
FortunesResource.class, JsonResource.class,
FortunesResource.class, JsonResource.class, PlaintextResource.class,
JsonMessageBodyWriter.class, ServerResponseFilter.class, RequestExceptionMapper.class);
config.setProperties(new HashMap<String, Object>()
@@ -0,0 +1,18 @@
package hello;
import javax.inject.*;
import javax.ws.rs.*;
import java.util.*;
@Singleton
@Path("/plaintext")
public class PlaintextResource
{
@GET
@Produces("text/plain")
public String plaintext()
{
return "Hello, World!";
}
}

0 comments on commit d1e3dcf

Please sign in to comment.