org.glassfish.jersey.moxy.json
Class MoxyJsonConfig

java.lang.Object
  extended by org.glassfish.jersey.moxy.json.MoxyJsonConfig

public final class MoxyJsonConfig
extends Object

Configuration class for MOXy JSON provider.

Author:
Michal Gajdos (michal.gajdos at oracle.com)

Constructor Summary
MoxyJsonConfig()
           
MoxyJsonConfig(boolean initDefaultProperties)
           
 
Method Summary
 String getAttributePrefix()
           
 Map<String,Object> getMarshallerProperties()
           
 Map<String,String> getNamespacePrefixMapper()
           
 char getNamespaceSeparator()
           
 Map<String,Object> getUnmarshallerProperties()
           
 String getValueWrapper()
           
 boolean isFormattedOutput()
           
 boolean isIncludeRoot()
           
 boolean isMarshalEmptyCollections()
           
 MoxyJsonConfig marshallerProperty(String name, Object value)
           
 MoxyJsonConfig property(String name, Object value)
           
 MoxyJsonConfig setAttributePrefix(String attributePrefix)
           
 MoxyJsonConfig setFormattedOutput(boolean formattedOutput)
           
 MoxyJsonConfig setIncludeRoot(boolean includeRoot)
           
 MoxyJsonConfig setMarshalEmptyCollections(boolean marshalEmptyCollections)
           
 MoxyJsonConfig setMarshallerProperties(Map<String,Object> marshallerProperties)
           
 MoxyJsonConfig setNamespacePrefixMapper(Map<String,String> namespacePrefixMapper)
           
 MoxyJsonConfig setNamespaceSeparator(char namespaceSeparator)
           
 MoxyJsonConfig setUnmarshallerProperties(Map<String,Object> unmarshallerProperties)
           
 MoxyJsonConfig setValueWrapper(String valueWrapper)
           
 MoxyJsonConfig unmarshallerProperty(String name, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MoxyJsonConfig

public MoxyJsonConfig()

MoxyJsonConfig

public MoxyJsonConfig(boolean initDefaultProperties)
Method Detail

property

public MoxyJsonConfig property(String name,
                               Object value)

marshallerProperty

public MoxyJsonConfig marshallerProperty(String name,
                                         Object value)

unmarshallerProperty

public MoxyJsonConfig unmarshallerProperty(String name,
                                           Object value)

setMarshallerProperties

public MoxyJsonConfig setMarshallerProperties(Map<String,Object> marshallerProperties)

setUnmarshallerProperties

public MoxyJsonConfig setUnmarshallerProperties(Map<String,Object> unmarshallerProperties)

getMarshallerProperties

public Map<String,Object> getMarshallerProperties()

getUnmarshallerProperties

public Map<String,Object> getUnmarshallerProperties()

getAttributePrefix

public String getAttributePrefix()
See Also:
MOXyJsonProvider.getAttributePrefix()

setAttributePrefix

public MoxyJsonConfig setAttributePrefix(String attributePrefix)
See Also:
MOXyJsonProvider.setAttributePrefix(String)

isFormattedOutput

public boolean isFormattedOutput()
See Also:
MOXyJsonProvider.isFormattedOutput()

setFormattedOutput

public MoxyJsonConfig setFormattedOutput(boolean formattedOutput)
See Also:
MOXyJsonProvider.setFormattedOutput(boolean)

isIncludeRoot

public boolean isIncludeRoot()
See Also:
MOXyJsonProvider.isIncludeRoot()

setIncludeRoot

public MoxyJsonConfig setIncludeRoot(boolean includeRoot)
See Also:
MOXyJsonProvider.setIncludeRoot(boolean)

isMarshalEmptyCollections

public boolean isMarshalEmptyCollections()
See Also:
MOXyJsonProvider.isMarshalEmptyCollections()

setMarshalEmptyCollections

public MoxyJsonConfig setMarshalEmptyCollections(boolean marshalEmptyCollections)
See Also:
MOXyJsonProvider.setMarshalEmptyCollections(boolean)

getNamespacePrefixMapper

public Map<String,String> getNamespacePrefixMapper()
See Also:
MOXyJsonProvider.getNamespacePrefixMapper()

setNamespacePrefixMapper

public MoxyJsonConfig setNamespacePrefixMapper(Map<String,String> namespacePrefixMapper)
See Also:
MOXyJsonProvider.setNamespacePrefixMapper(java.util.Map)

getNamespaceSeparator

public char getNamespaceSeparator()
See Also:
MOXyJsonProvider.getNamespaceSeparator()

setNamespaceSeparator

public MoxyJsonConfig setNamespaceSeparator(char namespaceSeparator)
See Also:
MOXyJsonProvider.setNamespaceSeparator(char)

getValueWrapper

public String getValueWrapper()
See Also:
MOXyJsonProvider.getValueWrapper()

setValueWrapper

public MoxyJsonConfig setValueWrapper(String valueWrapper)
See Also:
MOXyJsonProvider.setValueWrapper(String)


Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.