org.glassfish.jersey.examples.https.glassfish.resources
Class HelloWorldResource
java.lang.Object
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)
|
Method Summary |
javax.ws.rs.core.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 |
HelloWorldResource
public HelloWorldResource()
getClichedMessage
@GET
@Produces(value="text/plain")
public javax.ws.rs.core.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 and/or its affiliates. All Rights Reserved. Use is subject to license terms.