Package org.apache.wink.common.model.app

Examples of org.apache.wink.common.model.app.ObjectFactory.createService()


                        MultivaluedMap<String, Object> httpHeaders,
                        OutputStream entityStream) throws IOException, WebApplicationException {

        try {
            ObjectFactory objectFactory = new ObjectFactory();
            JAXBElement<AppService> sd = objectFactory.createService(t);
            Marshaller marshaller = AppService.getMarshaller();
            marshaller.setProperty(Marshaller.JAXB_ENCODING, ProviderUtils.getCharset(mediaType));
            AtomJAXBUtils.marshal(marshaller, sd, entityStream);
        } catch (PropertyException e) {
            throw new WebApplicationException(e);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.