/[projects]/miscJava/Test4Simple/src/main/java/dk/thoerup/webservice/JsonMoxyConfigurationContextResolver.java
ViewVC logotype

Diff of /miscJava/Test4Simple/src/main/java/dk/thoerup/webservice/JsonMoxyConfigurationContextResolver.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2521 by torben, Tue Apr 28 05:54:46 2015 UTC revision 2522 by torben, Wed Apr 29 09:47:11 2015 UTC
# Line 20  public class JsonMoxyConfigurationContex Line 20  public class JsonMoxyConfigurationContex
20          namespacePrefixMapper.put("http://www.w3.org/2001/XMLSchema-instance", "xsi");          namespacePrefixMapper.put("http://www.w3.org/2001/XMLSchema-instance", "xsi");
21                    
22          config = new MoxyJsonConfig()          config = new MoxyJsonConfig()
23              .setNamespacePrefixMapper(namespacePrefixMapper)              //.setNamespacePrefixMapper(namespacePrefixMapper)
24              .setNamespaceSeparator(':')              //.setNamespaceSeparator(':')
25  //            .setAttributePrefix("")  //            .setAttributePrefix("")
26  //            .setValueWrapper("value")  //            .setValueWrapper("value")
27  //            .property(JAXBContextProperties.JSON_WRAPPER_AS_ARRAY_NAME, true)  //            .property(JAXBContextProperties.JSON_WRAPPER_AS_ARRAY_NAME, true)
28              .setFormattedOutput(false)              .setFormattedOutput(true)
29              .setIncludeRoot(false)              .setIncludeRoot(false)
30              .setMarshalEmptyCollections(false);              .setMarshalEmptyCollections(false);
31      }      }

Legend:
Removed from v.2521  
changed lines
  Added in v.2522

  ViewVC Help
Powered by ViewVC 1.1.20