com.sun.jersey.api.json
Class JSONConfiguration.Builder

java.lang.Object
  extended by com.sun.jersey.api.json.JSONConfiguration.Builder
Direct Known Subclasses:
JSONConfiguration.MappedBuilder, JSONConfiguration.MappedJettisonBuilder, JSONConfiguration.NaturalBuilder
Enclosing class:
JSONConfiguration

public static class JSONConfiguration.Builder
extends Object

Builder class for constructing JSONConfiguration options


Field Summary
protected  Collection<String> arrays
           
protected  Collection<String> attrsAsElems
           
protected  boolean humanReadableFormatting
           
protected  Map<String,String> jsonXml2JsonNs
           
protected  Character namespaceSeparator
           
protected  Collection<String> nonStrings
           
protected  boolean rootUnwrapping
           
protected  boolean usePrefixAtNaturalAttributes
           
 
Method Summary
 JSONConfiguration build()
          Constructs a new immutable JSONConfiguration object based on options set on this Builder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

arrays

protected Collection<String> arrays

attrsAsElems

protected Collection<String> attrsAsElems

nonStrings

protected Collection<String> nonStrings

rootUnwrapping

protected boolean rootUnwrapping

humanReadableFormatting

protected boolean humanReadableFormatting

jsonXml2JsonNs

protected Map<String,String> jsonXml2JsonNs

usePrefixAtNaturalAttributes

protected boolean usePrefixAtNaturalAttributes

namespaceSeparator

protected Character namespaceSeparator
Method Detail

build

public JSONConfiguration build()
Constructs a new immutable JSONConfiguration object based on options set on this Builder

Returns:
a non-null JSONConfiguration instance


Copyright © 2011 Oracle Corporation. All Rights Reserved.