Package org.infoset.xml.util

Examples of org.infoset.xml.util.DocumentDestination


         getContext().getLogger().log(Level.SEVERE,"Cannot get user to due exception: "+ex.getMessage(),ex);
         getResponse().setStatus(Status.SERVER_ERROR_INTERNAL);
         return new StringRepresentation("Cannot get user due to database error.");
      }
      try {
         DocumentDestination dest = new DocumentDestination();
         toXML(user,dest);
         InfosetRepresentation rep = new InfosetRepresentation(MediaType.APPLICATION_XML,dest.getDocument());
         rep.setCharacterSet(CharacterSet.UTF_8);
         return rep;
      } catch (XMLException ex) {
         getContext().getLogger().log(Level.SEVERE,"Cannot build target list to due to XML exception: "+ex.getMessage(),ex);
         getResponse().setStatus(Status.SERVER_ERROR_INTERNAL);
View Full Code Here

TOP

Related Classes of org.infoset.xml.util.DocumentDestination

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.