Skip to content
Snippets Groups Projects
Commit b07e264d authored by Sebastian Rieger's avatar Sebastian Rieger
Browse files

individual lines for earch annotation

parent 33529d25
No related branches found
No related tags found
No related merge requests found
......@@ -9,19 +9,22 @@ public class RESTToLowerCaseService
{
static final String webContextPath = "/touppercase";
@GET @Produces( MediaType.TEXT_PLAIN )
@GET
@Produces( MediaType.TEXT_PLAIN )
public String toUpperCasePlain( @QueryParam("input") String input )
{
return "Plain-Text: " + input.toUpperCase();
}
@GET @Produces( MediaType.TEXT_HTML )
@GET
@Produces( MediaType.TEXT_HTML )
public String toUpperCaseHtml( @QueryParam("input") String input )
{
return "<html><title>RESTService</title><body><h2>HTML: " + input.toUpperCase() + "</h2></body></html>";
}
@GET @Produces( MediaType.APPLICATION_JSON )
@GET
@Produces( MediaType.APPLICATION_JSON )
public String toUpperCaseJson( @QueryParam("input") String input )
{
return "{\n \"type\": \"JSON\",\n \"output\": \"" + input.toUpperCase() + "\"\n}";
......
......@@ -9,19 +9,22 @@ public class RESTToUpperCaseService
{
static final String webContextPath = "/tolowercase";
@GET @Produces( MediaType.TEXT_PLAIN )
@GET
@Produces( MediaType.TEXT_PLAIN )
public String toLowerCasePlain( @QueryParam("input") String input )
{
return "Plain-Text: " + input.toLowerCase();
}
@GET @Produces( MediaType.TEXT_HTML )
@GET
@Produces( MediaType.TEXT_HTML )
public String toLowerCaseHtml( @QueryParam("input") String input )
{
return "<html><title>RESTService</title><body><h2>HTML: " + input.toLowerCase() + "</h2></body></html>";
}
@GET @Produces( MediaType.APPLICATION_JSON )
@GET
@Produces( MediaType.APPLICATION_JSON )
public String toLowerCaseJson( @QueryParam("input") String input )
{
return "{\n \"type\": \"JSON\",\n \"output\": \"" + input.toLowerCase() + "\"\n}";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment