org.glassfish.jersey.examples.jsonmoxy
Class JsonResource

java.lang.Object
  extended by org.glassfish.jersey.examples.jsonmoxy.JsonResource

@Path(value="test")
public class JsonResource
extends java.lang.Object

Author:
Pavel Bucek (pavel.bucek at oracle.com)

Constructor Summary
JsonResource()
           
 
Method Summary
 TestBean createSimpleBean()
           
 TestBean roundTrip(TestBean s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonResource

public JsonResource()
Method Detail

createSimpleBean

@GET
@Produces(value="application/json")
public TestBean createSimpleBean()

roundTrip

@POST
@Produces(value="application/json")
@Consumes(value="application/json")
public TestBean roundTrip(TestBean s)


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