org.glassfish.jersey.examples.monitoring
Class MyResource

java.lang.Object
  extended by org.glassfish.jersey.examples.monitoring.MyResource

@Path(value="resource")
public class MyResource
extends Object

Author:
Miroslav Fuksa (miroslav.fuksa at oracle.com)

Constructor Summary
MyResource()
           
 
Method Summary
 SubResource getSubResource()
           
 String testException()
           
 String testGet()
           
 String testPost()
           
 String testSu2bPost(String entity)
           
 String testSubGet()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyResource

public MyResource()
Method Detail

testGet

@GET
public String testGet()

testPost

@POST
public String testPost()

testSubGet

@GET
@Path(value="sub")
public String testSubGet()

testException

@GET
@Path(value="exception")
public String testException()

testSu2bPost

@POST
@Path(value="sub2")
@Produces(value="text/html")
@Consumes(value="text/plain")
public String testSu2bPost(String entity)

getSubResource

@Path(value="locator")
public SubResource getSubResource()


Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.