org.glassfish.jersey.examples.https.glassfish.resources
Class HelloWorldResource

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

@Path(value="/helloworld")
@RolesAllowed(value="myRole")
public class HelloWorldResource
extends Object

The JAX-RS resource class will be hosted at the URI path "/helloworld".

Author:
Paul Sandoz, Marek Potociar (marek.potociar at oracle.com)

Constructor Summary
HelloWorldResource()
           
 
Method Summary
 Response getClichedMessage(javax.servlet.http.HttpServletRequest request)
          HTTP GET controller method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HelloWorldResource

public HelloWorldResource()
Method Detail

getClichedMessage

@GET
@Produces(value="text/plain")
public Response getClichedMessage(@Context
                                                    javax.servlet.http.HttpServletRequest request)
HTTP GET controller method.

Parameters:
request - HTTP servlet request.
Returns:
a simple text message.


Copyright © 2007-2013 Oracle Corporation. All Rights Reserved. Use is subject to license terms.