Package org.drools.guvnor.server.jaxrs.providers.atom

Examples of org.drools.guvnor.server.jaxrs.providers.atom.Content


        metaData.setState(p.getState() == null ? "" : p.getState().getName());
        metaData.setVersionNumber(p.getVersionNumber());
        metaData.setCheckinComment(p.getCheckinComment());

        e.setAnyOtherJAXBObject(metaData);
        Content content = new Content();
        content.setSrc(UriBuilder.fromUri(baseUri).path("binary").build());
        content.setType(MediaType.APPLICATION_OCTET_STREAM_TYPE);
//        content.setContentType(Type.MEDIA); // TODO remove me if not it's base64 encoded fine
        e.setContent(content);
        return e;
    }
View Full Code Here


            atomAssetMetadata.setCategories(categories);
            e.setAnyOtherJAXBObject(atomAssetMetadata);
        } catch (Exception ex) {
            throw new WebServiceException(ex);
        }
        Content content = new Content();
        content.setSrc(UriBuilder.fromUri(baseUri).path("binary").build());
        content.setType(MediaType.APPLICATION_OCTET_STREAM_TYPE);
//        content.setContentType(Type.MEDIA); // TODO remove me if not it's base64 encoded fine
        e.setContent(content);

        return e;
    }
View Full Code Here

TOP

Related Classes of org.drools.guvnor.server.jaxrs.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.