|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.jettison.JettisonConfig.Builder
org.glassfish.jersey.jettison.JettisonConfig.MappedJettisonBuilder
public static class JettisonConfig.MappedJettisonBuilder
Builder class for constructing JettisonConfig options
for the JettisonConfig.Notation.MAPPED_JETTISON convention.
| Field Summary |
|---|
| Fields inherited from class org.glassfish.jersey.jettison.JettisonConfig.Builder |
|---|
jsonXml2JsonNs, serializeAsArray |
| Method Summary | |
|---|---|
JettisonConfig.MappedJettisonBuilder |
serializeAsArray(List<String> arrays)
Add element names to be treated as arrays. |
JettisonConfig.MappedJettisonBuilder |
serializeAsArray(String... arrays)
Add element names to be treated as arrays. |
JettisonConfig.MappedJettisonBuilder |
xml2JsonNs(Map<String,String> jsonXml2JsonNs)
Setter for XML to JSON namespace mapping. |
| Methods inherited from class org.glassfish.jersey.jettison.JettisonConfig.Builder |
|---|
build |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public JettisonConfig.MappedJettisonBuilder xml2JsonNs(Map<String,String> jsonXml2JsonNs)
JettisonConfig.Notation.MAPPED_JETTISON
notation only.
The value is a map with zero or more key/value pairs, where the key is an XML namespace and the value is the prefix to use as the replacement for the XML namespace.
The default value is a map with zero key/value pairs.
jsonXml2JsonNs - XML to JSON namespace map.
public JettisonConfig.MappedJettisonBuilder serializeAsArray(String... arrays)
JettisonConfig.Notation.MAPPED_JETTISON
notation only.
Property value is a list of element names that should be treated as arrays even if only a single item is present.
The default value is an empty list.
element - names to be serialized as arrays.
public JettisonConfig.MappedJettisonBuilder serializeAsArray(List<String> arrays)
JettisonConfig.Notation.MAPPED_JETTISON
notation only.
Property value is a list of element names that should be treated as arrays even if only a single item is present.
The default value is an empty list.
list - of element names to be serialized as arrays.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||