@Path(value="resource") public class MyResource extends Object
| Constructor and Description |
|---|
MyResource() |
| Modifier and Type | Method and Description |
|---|---|
SubResource |
getSubResource() |
String |
testException() |
String |
testGet() |
String |
testPost() |
String |
testSu2bPost(String entity) |
String |
testSubGet() |
@GET public String testGet()
@POST public String testPost()
@GET @Path(value="sub") public String testSubGet()
@GET @Path(value="exception") public String testException()
@POST @Path(value="sub2") @Produces(value="text/html") @Consumes(value="text/plain") public String testSu2bPost(String entity)
@Path(value="locator") public SubResource getSubResource()
Copyright © 2007-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.