Package org.cipango.kaleo

Examples of org.cipango.kaleo.Resource


   
    JSON.getDefault().addConvertor(Resource.class, new Convertor()
    {
      public void toJSON(Object obj, Output out)
      {
        Resource resource = (Resource) obj;
        out.add("uri", resource.getUri());
      }
      public Object fromJSON(Map object)  { return null; }
    });
    JSON.getDefault().addConvertor(EventResource.class, new Convertor()
    {
      public void toJSON(Object obj, Output out)
      {
        EventResource resource = (EventResource) obj;
        out.add("uri", resource.getUri());
        out.add("subscriptions", resource.getSubscriptions());
      }
      public Object fromJSON(Map object)  { return null; }
    });
    JSON.getDefault().addConvertor(Subscription.class, new Convertor()
    {
View Full Code Here

TOP

Related Classes of org.cipango.kaleo.Resource

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.