Top Fields Constructors Methods
org.eclipse.jetty.util.ajax

public Class JSONPojoConvertorFactory

extends Object
implements Convertor
Class Inheritance
All Implemented Interfaces
org.eclipse.jetty.util.ajax.JSON.Convertor
Imports
java.util.Map, org.eclipse.jetty.util.Loader, org.eclipse.jetty.util.ajax.JSON.Convertor, .JSON.Output, org.slf4j.Logger, .LoggerFactory

Field Summary

Modifier and TypeField and Description
private final boolean
private final JSON
private static final Logger

Constructor Summary

AccessConstructor and Description
public
public
JSONPojoConvertorFactory(JSON
The JSON instance to use
json
,
boolean
If true, the class name of the objects is included in the generated JSON and is used to instantiate the object when JSON is parsed (otherwise a Map is used).
fromJSON
)

Method Summary

Modifier and TypeMethod and Description
public Object
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_fromJsonback to summary
private final boolean _fromJson
_jsonback to summary
private final JSON _json
LOGback to summary
private static final Logger LOG

Constructor Detail

JSONPojoConvertorFactoryback to summary
public JSONPojoConvertorFactory(JSON json)
JSONPojoConvertorFactoryback to summary
public JSONPojoConvertorFactory(JSON json, boolean fromJSON)
Parameters
json:JSON

The JSON instance to use

fromJSON:boolean

If true, the class name of the objects is included in the generated JSON and is used to instantiate the object when JSON is parsed (otherwise a Map is used).

Method Detail

fromJSONback to summary
public Object fromJSON(Map<String, Object> map)

Implements org.eclipse.jetty.util.ajax.JSON.Convertor.fromJSON.

Annotations
@Override
toJSONback to summary
public void toJSON(Object obj, JSON.Output out)

Implements org.eclipse.jetty.util.ajax.JSON.Convertor.toJSON.

Annotations
@Override