java.lang.Object
org.glassfish.jersey.examples.https.glassfish.resources.HelloWorldResource

@Path("/helloworld") @RolesAllowed("myRole") public class HelloWorldResource extends Object
The JAX-RS resource class will be hosted at the URI path "/helloworld".
Author:
Paul Sandoz, Marek Potociar
  • Constructor Details

    • HelloWorldResource

      public HelloWorldResource()
  • Method Details

    • getClichedMessage

      @GET @Produces("text/plain") public Response getClichedMessage(@Context jakarta.servlet.http.HttpServletRequest request)
      HTTP GET controller method.
      Parameters:
      request - HTTP servlet request.
      Returns:
      a simple text message.