Package org.jboss.resteasy.plugins.providers.atom

Examples of org.jboss.resteasy.plugins.providers.atom.Content


      @Produces("application/atom+xml")
      public Entry getXmlType()
      {
         Entry entry = new Entry();
         entry.setTitle("Hello World");
         Content content = new Content();
         DataCollectionRecord record = new DataCollectionRecord();
         record.setCollectedData("hello world");
         content.setJAXBObject(record);
         entry.setContent(content);
         return entry;

      }
View Full Code Here


        atomAssetMetadata.setUuid("testuuid");
        atomAssetMetadata.setCategories(new String[]{"a", "b", "c"});

        entry.setAnyOtherJAXBObject(atomAssetMetadata);

        Content content = new Content();
        content.setSrc(UriBuilder.fromUri(baseUri).path("binary").build());
        content.setType(MediaType.APPLICATION_OCTET_STREAM_TYPE);
        entry.setContent(content);


        Class[] classes = new Class[]{AtomAssetMetadata.class, Entry.class};
        JAXBContext jaxbContext = JAXBContext.newInstance(classes);
View Full Code Here

TOP

Related Classes of org.jboss.resteasy.plugins.providers.atom.Content

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.