package com.techempower.ee7.tests;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

@Path("/plaintext")
public class PlainText {
  private static final String MESSAGE = "Hello, World!";

  @GET
  @Produces(MediaType.TEXT_PLAIN)
  public String get() {
    return MESSAGE;
  }

  @GET
  @Path("hi")
  public String get2() {
    return "Hello WildFly!";
  }


  @GET
  @Path("/bye")
  public String get3() {
    return "Bye WildFly!";
  }
  
}
