| Modifier and Type | Method and Description |
|---|---|
IJsonObject |
IVariablesRequestContextAddon.getAsJsonObject(String key)
Gets the specified request scoped variable as
JsonObject. |
IJsonObject |
IRequestRequestContextAddon.getFormDatas()
The datas submitted from a
FORM via a POST method. |
IJsonObject |
IRequestRequestContextAddon.getJsonBodyAsJsonObject()
The request's body deserialized to a
IJsonObject. |
IJsonObject |
IRequestRequestContextAddon.getXmlBodyAsJsonObject()
The request's body deserialized to a
IJsonObject. |
| Modifier and Type | Method and Description |
|---|---|
void |
IResponseRequestContextAddon.sendParse(String content,
String contentType,
IJsonObject model)
Parses the given String using the
ITemplatingEngine and
the given parameters, then sends the result using the specified
Content-Type, without flushing. |
void |
IResponseRequestContextAddon.sendParse(String content,
String contentType,
IJsonObject model,
boolean flush)
Parses the given String using the
ITemplatingEngine and
the given parameters, then sends the result using the specified
Content-Type, and flushes, if specified. |
void |
IResponseRequestContextAddon.sendParseHtml(String html,
IJsonObject model)
Parses the given String using the
ITemplatingEngine and
the given parameters, then sends the result as text/html,
UTF-8 encoded, without flushing. |
void |
IResponseRequestContextAddon.sendParseHtml(String html,
IJsonObject model,
boolean flush)
Parses the given String using the
ITemplatingEngine and
the given parameters, then sends the result as text/html,
UTF-8 encoded, and flushes, if specified. |
void |
IResponseRequestContextAddon.sendTemplate(String templatePath,
boolean isClasspathPath,
String contentType,
IJsonObject model)
Finds the specified template using the
ITemplatingEngine, evaluates it using
the given parameters, then sends the
result using the given contentType, without flushing. |
void |
IResponseRequestContextAddon.sendTemplate(String templatePath,
boolean isClasspathPath,
String contentType,
IJsonObject model,
boolean flush)
Finds the specified template using the
ITemplatingEngine, evaluates it using
the given parameters, then sends the
result using the given contentType, and flushes, if specified. |
void |
IResponseRequestContextAddon.sendTemplate(String templatePath,
String contentType,
IJsonObject model)
Finds the specified template using the
ITemplatingEngine, evaluates it using
the given parameters, then sends the
result using the given contentType, without flushing. |
void |
IResponseRequestContextAddon.sendTemplate(String templatePath,
String contentType,
IJsonObject model,
boolean flush)
Finds the specified template using the
ITemplatingEngine, evaluates it using
the given parameters, then sends the
result using the given contentType, and flushes, if specified. |
void |
IResponseRequestContextAddon.sendTemplateHtml(String templatePath,
boolean isClasspathPath,
IJsonObject model)
Finds the
HTML template using the ITemplatingEngine, evaluates it using
the given parameters, then sends the
result as text/html, UTF-8 encoded, without flushing. |
void |
IResponseRequestContextAddon.sendTemplateHtml(String templatePath,
boolean isClasspathPath,
IJsonObject model,
boolean flush)
Finds the
HTML template using the ITemplatingEngine, evaluates it using
the given parameters, then sends the
result as text/html, UTF-8 encoded, and flushes, if specified. |
void |
IResponseRequestContextAddon.sendTemplateHtml(String templatePath,
IJsonObject model)
Finds the
HTML template using the ITemplatingEngine, evaluates it using
the given parameters, then sends the
result as text/html, UTF-8 encoded, without flushing. |
void |
IResponseRequestContextAddon.sendTemplateHtml(String templatePath,
IJsonObject model,
boolean flush)
Finds the
HTML template using the ITemplatingEngine, evaluates it using
the given parameters, then sends the
result as text/html, UTF-8 encoded, and flushes, if specified. |
| Modifier and Type | Method and Description |
|---|---|
protected Class<? extends IJsonObject> |
SpincastCoreGuiceModule.getJsonObjectImplClass() |
| Modifier and Type | Interface and Description |
|---|---|
interface |
IJsonObjectImmutable
Flag that indicate that the
IJsonObject
is immutable. |
| Modifier and Type | Class and Description |
|---|---|
class |
JsonObject
IJsonObject implementation. |
class |
JsonObjectImmutable
This classe wraps a immutable Map : it is used to
have an instance of IJsonObject that can be validated
as immutable (instanceof IJsonObjectImmutable).
|
| Modifier and Type | Method and Description |
|---|---|
IJsonObject |
JsonObject.clone() |
IJsonObject |
IJsonObject.clone()
Deep copy of the
IJsonObject, so any
modification to the original won't affect the
clone, and vice-versa. |
IJsonObject |
JsonObject.clone(boolean mutable) |
IJsonObject |
IJsonObject.clone(boolean mutable)
Deep copy of the
IJsonObject, so any
modification to the original won't affect the
clone, and vice-versa. |
IJsonObject |
IJsonManager.cloneJsonObject(IJsonObject jsonObject)
Deep copy of the
IJsonObject, so any
modification to the original won't affect the
clone, and vice-versa. |
IJsonObject |
IJsonManager.cloneJsonObject(IJsonObject jsonObject,
boolean mutable)
Deep copy of the
IJsonObject, so any
modification to the original won't affect the
clone, and vice-versa. |
IJsonObject |
IJsonObjectFactory.create()
Creates an empty IJsonObject.
|
IJsonObject |
IJsonManager.create()
Creates an empty
JsonObject |
IJsonObject |
IJsonManager.create(InputStream inputStream)
Creates a
JsonObject from an inputStream. |
IJsonObject |
IJsonObjectFactory.create(Map<String,?> params)
Creates an IJonObject based on the specified Map.
|
IJsonObject |
IJsonManager.create(Map<String,?> params)
Creates an empty
JsonObject based on the specified Map. |
IJsonObject |
IJsonManager.create(String jsonString)
Creates a
JsonObject from a Json
String. |
IJsonObject |
JsonObject.getArrayFirstJsonObject(String key) |
IJsonObject |
IJsonObject.getArrayFirstJsonObject(String key)
Gets the first value (as IJsonObject) of a
IJsonArray property
of the object. |
protected IJsonObject |
JsonObject.getArrayFirstJsonObject(String key,
boolean hasDefaultValue,
IJsonObject defaultValue) |
IJsonObject |
JsonObject.getArrayFirstJsonObject(String key,
IJsonObject defaultValue) |
IJsonObject |
IJsonObject.getArrayFirstJsonObject(String key,
IJsonObject defaultValue)
Gets the first value (as IJsonObject) of a
IJsonArray property
of the object. |
IJsonObject |
JsonArray.getJsonObject(int index) |
IJsonObject |
IJsonArray.getJsonObject(int index)
Gets an element as
IJsonObject. |
IJsonObject |
JsonArray.getJsonObject(int index,
IJsonObject defaultValue) |
IJsonObject |
IJsonArray.getJsonObject(int index,
IJsonObject defaultValue)
Gets an element as
IJsonObject. |
IJsonObject |
JsonObjectArrayBase.getJsonObject(String key) |
IJsonObject |
IJsonObject.getJsonObject(String key)
Gets a property as
IJsonObject. |
IJsonObject |
JsonObjectArrayBase.getJsonObject(String key,
IJsonObject defaultValue) |
IJsonObject |
IJsonObject.getJsonObject(String key,
IJsonObject defaultValue)
Gets a property as
IJsonObject. |
IJsonObject |
JsonArray.getJsonObjectOrEmpty(int index) |
IJsonObject |
IJsonArray.getJsonObjectOrEmpty(int index)
Gets an element as
IJsonObject. |
IJsonObject |
JsonObjectArrayBase.getJsonObjectOrEmpty(String key) |
IJsonObject |
IJsonObject.getJsonObjectOrEmpty(String key)
Gets a property as
IJsonObject. |
protected IJsonObject |
JsonObjectArrayBase.getJSONObjectValue(String key,
boolean hasDefaultValue,
IJsonObject defaultValue) |
IJsonObject |
JsonObject.merge(IJsonObject jsonObj) |
IJsonObject |
IJsonObject.merge(IJsonObject jsonObj)
Merges the specified
IJsonObject properties in the current
object. |
IJsonObject |
JsonObject.merge(IJsonObject jsonObj,
boolean clone) |
IJsonObject |
IJsonObject.merge(IJsonObject jsonObj,
boolean clone)
Merges the specified
IJsonObject properties in the current
object. |
IJsonObject |
JsonObject.merge(Map<String,Object> map) |
IJsonObject |
IJsonObject.merge(Map<String,Object> map)
Merges all the Map's entries in the IJsonObject.
|
IJsonObject |
JsonObject.merge(Map<String,Object> map,
boolean clone) |
IJsonObject |
IJsonObject.merge(Map<String,Object> map,
boolean clone)
Merges all the Map's entries in the IJsonObject.
|
IJsonObject |
JsonObject.put(String key,
BigDecimal value) |
IJsonObject |
IJsonObject.put(String key,
BigDecimal value)
Adds a BigDecimal.
|
IJsonObject |
JsonObject.put(String key,
Boolean value) |
IJsonObject |
IJsonObject.put(String key,
Boolean value)
Adds a Boolean.
|
IJsonObject |
JsonObject.put(String key,
byte[] value) |
IJsonObject |
IJsonObject.put(String key,
byte[] value)
Adds a byte[].
|
IJsonObject |
JsonObject.put(String key,
Date value) |
IJsonObject |
IJsonObject.put(String key,
Date value)
Adds a Date.
|
IJsonObject |
JsonObject.put(String key,
Double value) |
IJsonObject |
IJsonObject.put(String key,
Double value)
Adds a Double.
|
IJsonObject |
JsonObject.put(String key,
Float value) |
IJsonObject |
IJsonObject.put(String key,
Float value)
Adds a Float.
|
IJsonObject |
JsonObject.put(String key,
IJsonArray value) |
IJsonObject |
IJsonObject.put(String key,
IJsonArray value)
Adds a IJsonArray.
|
IJsonObject |
JsonObject.put(String key,
IJsonArray value,
boolean clone) |
IJsonObject |
IJsonObject.put(String key,
IJsonArray value,
boolean clone)
Adds a IJsonArray.
|
IJsonObject |
JsonObject.put(String key,
IJsonObject value) |
IJsonObject |
IJsonObject.put(String key,
IJsonObject value)
Adds a IJsonObject.
|
IJsonObject |
JsonObject.put(String key,
IJsonObject value,
boolean clone) |
IJsonObject |
IJsonObject.put(String key,
IJsonObject value,
boolean clone)
Adds a IJsonObject.
|
IJsonObject |
JsonObject.put(String key,
Integer value) |
IJsonObject |
IJsonObject.put(String key,
Integer value)
Adds a Integer.
|
IJsonObject |
JsonObject.put(String key,
Long value) |
IJsonObject |
IJsonObject.put(String key,
Long value)
Adds a Long.
|
IJsonObject |
JsonObject.put(String key,
String value) |
IJsonObject |
IJsonObject.put(String key,
String value)
Adds a String.
|
protected IJsonObject |
JsonObjectImmutable.putAsIs(String key,
Object value) |
protected IJsonObject |
JsonObject.putAsIs(String key,
Object value) |
IJsonObject |
JsonObject.putConvert(String key,
Object value) |
IJsonObject |
IJsonObject.putConvert(String key,
Object value)
If the object to add is not of a IJsonObject's native type,
the object is converted to a IJsonObject or a
IJsonArray before being added.
|
IJsonObject |
JsonObject.putConvert(String key,
Object value,
boolean clone) |
IJsonObject |
IJsonObject.putConvert(String key,
Object value,
boolean clone)
If the object to add is not of a IJsonObject's native type,
the object is converted to a IJsonObject or a
IJsonArray before being added.
|
IJsonObject |
JsonObject.remove(String key) |
IJsonObject |
IJsonObject.remove(String key)
Removes a property from the object.
|
IJsonObject |
JsonObjectImmutable.removeAll() |
IJsonObject |
JsonObject.removeAll() |
IJsonObject |
IJsonObject.removeAll()
Removes all properties from the object.
|
| Modifier and Type | Method and Description |
|---|---|
IJsonArray |
JsonArray.add(IJsonObject jsonObj) |
IJsonArray |
IJsonArray.add(IJsonObject value)
Adds a IJsonObject.
|
IJsonArray |
JsonArray.add(IJsonObject jsonObj,
boolean clone) |
IJsonArray |
IJsonArray.add(IJsonObject value,
boolean clone)
Adds a IJsonObject.
|
IJsonObject |
IJsonManager.cloneJsonObject(IJsonObject jsonObject)
Deep copy of the
IJsonObject, so any
modification to the original won't affect the
clone, and vice-versa. |
IJsonObject |
IJsonManager.cloneJsonObject(IJsonObject jsonObject,
boolean mutable)
Deep copy of the
IJsonObject, so any
modification to the original won't affect the
clone, and vice-versa. |
IJsonObjectImmutable |
IJsonManager.createImmutable(IJsonObject jsonObject)
Make a
IJsonObject immutable, no element
could be added or removed on it. |
protected IJsonObject |
JsonObject.getArrayFirstJsonObject(String key,
boolean hasDefaultValue,
IJsonObject defaultValue) |
IJsonObject |
JsonObject.getArrayFirstJsonObject(String key,
IJsonObject defaultValue) |
IJsonObject |
IJsonObject.getArrayFirstJsonObject(String key,
IJsonObject defaultValue)
Gets the first value (as IJsonObject) of a
IJsonArray property
of the object. |
IJsonObject |
JsonArray.getJsonObject(int index,
IJsonObject defaultValue) |
IJsonObject |
IJsonArray.getJsonObject(int index,
IJsonObject defaultValue)
Gets an element as
IJsonObject. |
IJsonObject |
JsonObjectArrayBase.getJsonObject(String key,
IJsonObject defaultValue) |
IJsonObject |
IJsonObject.getJsonObject(String key,
IJsonObject defaultValue)
Gets a property as
IJsonObject. |
protected IJsonObject |
JsonObjectArrayBase.getJSONObjectValue(String key,
boolean hasDefaultValue,
IJsonObject defaultValue) |
IJsonObject |
JsonObject.merge(IJsonObject jsonObj) |
IJsonObject |
IJsonObject.merge(IJsonObject jsonObj)
Merges the specified
IJsonObject properties in the current
object. |
IJsonObject |
JsonObject.merge(IJsonObject jsonObj,
boolean clone) |
IJsonObject |
IJsonObject.merge(IJsonObject jsonObj,
boolean clone)
Merges the specified
IJsonObject properties in the current
object. |
IJsonObject |
JsonObject.put(String key,
IJsonObject value) |
IJsonObject |
IJsonObject.put(String key,
IJsonObject value)
Adds a IJsonObject.
|
IJsonObject |
JsonObject.put(String key,
IJsonObject value,
boolean clone) |
IJsonObject |
IJsonObject.put(String key,
IJsonObject value,
boolean clone)
Adds a IJsonObject.
|
| Modifier and Type | Method and Description |
|---|---|
String |
ITemplatingRequestContextAddon.evaluate(String content,
IJsonObject model)
Evaluates some content using the given parameters.
|
String |
ITemplatingEngine.evaluate(String content,
IJsonObject jsonObject)
Evaluates the content, using the given parameters.
|
String |
ITemplatingRequestContextAddon.evaluate(String content,
IJsonObject model,
Locale locale)
Evaluates some content using the given parameters.
|
String |
ITemplatingEngine.evaluate(String content,
IJsonObject jsonObject,
Locale locale)
Evaluates the content, using the given parameters.
|
String |
ITemplatingRequestContextAddon.fromTemplate(String templatePath,
boolean isClasspathPath,
IJsonObject model)
Renders a template using the given parameters.
|
String |
ITemplatingEngine.fromTemplate(String templatePath,
boolean isClasspathPath,
IJsonObject jsonObject)
Evaluates a template using the parameters specified
as a
IJsonObject. |
String |
ITemplatingRequestContextAddon.fromTemplate(String templatePath,
boolean isClasspathPath,
IJsonObject model,
Locale locale)
Renders a template usgin the given parameters.
|
String |
ITemplatingEngine.fromTemplate(String templatePath,
boolean isClasspathPath,
IJsonObject jsonObject,
Locale locale)
Evaluates a template using the parameters specified
as a
IJsonObject. |
String |
ITemplatingRequestContextAddon.fromTemplate(String templatePath,
IJsonObject model)
Renders a template using the given parameters.
|
String |
ITemplatingEngine.fromTemplate(String templatePath,
IJsonObject jsonObject)
Evaluates a template using the parameters specified
as a
IJsonObject. |
String |
ITemplatingRequestContextAddon.fromTemplate(String templatePath,
IJsonObject model,
Locale locale)
Renders a template usgin the given parameters.
|
String |
ITemplatingEngine.fromTemplate(String templatePath,
IJsonObject jsonObject,
Locale locale)
Evaluates a template using the parameters specified
as a
IJsonObject. |
| Modifier and Type | Method and Description |
|---|---|
IJsonObject |
IXmlManager.fromXml(String xml)
Deserializes a XML to an
IJsonObject. |
| Modifier and Type | Method and Description |
|---|---|
IJsonObject |
SpincastJsonManager.cloneJsonObject(IJsonObject jsonObject) |
IJsonObject |
SpincastJsonManager.cloneJsonObject(IJsonObject jsonObject,
boolean mutable) |
IJsonObject |
SpincastJsonManager.create() |
IJsonObject |
SpincastJsonManager.create(InputStream inputStream) |
IJsonObject |
SpincastJsonManager.create(Map<String,?> params) |
IJsonObject |
SpincastJsonManager.create(String jsonString) |
| Modifier and Type | Method and Description |
|---|---|
protected com.fasterxml.jackson.databind.JsonDeserializer<IJsonObject> |
SpincastJsonManager.getJsonObjectDeserializer() |
protected com.fasterxml.jackson.databind.JsonSerializer<IJsonObject> |
SpincastJsonManager.getJsonObjectSerializer() |
| Modifier and Type | Method and Description |
|---|---|
IJsonObject |
SpincastJsonManager.cloneJsonObject(IJsonObject jsonObject) |
IJsonObject |
SpincastJsonManager.cloneJsonObject(IJsonObject jsonObject,
boolean mutable) |
IJsonObjectImmutable |
SpincastJsonManager.createImmutable(IJsonObject jsonObject) |
| Modifier and Type | Method and Description |
|---|---|
protected IJsonObject |
SpincastXmlManager.deserializeJsonObject(com.fasterxml.jackson.dataformat.xml.deser.FromXmlParser xmlParser,
com.fasterxml.jackson.databind.DeserializationContext context,
Map.Entry<String,Object> firstProperty) |
IJsonObject |
SpincastXmlManager.fromXml(String xml) |
| Modifier and Type | Method and Description |
|---|---|
protected com.fasterxml.jackson.databind.JsonDeserializer<IJsonObject> |
SpincastXmlManager.getJsonObjectDeserializer() |
protected com.fasterxml.jackson.databind.JsonSerializer<IJsonObject> |
SpincastXmlManager.getJsonObjectSerializer() |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
SpincastPebbleTemplatingEngine.convertJsonObjectToMap(IJsonObject jsonObject)
Converts a IJsonObject to a Map<String, Object>, but only
the first level, only so it can be pass to the Pebble templating
engine which requires a Map<String, Object>.
|
String |
SpincastPebbleTemplatingEngine.evaluate(String content,
IJsonObject jsonObject) |
String |
SpincastPebbleTemplatingEngine.evaluate(String content,
IJsonObject jsonObject,
Locale locale) |
String |
SpincastPebbleTemplatingEngine.fromTemplate(String templatePath,
boolean isClasspathPath,
IJsonObject jsonObject) |
String |
SpincastPebbleTemplatingEngine.fromTemplate(String templatePath,
boolean isClasspathPath,
IJsonObject jsonObject,
Locale locale) |
String |
SpincastPebbleTemplatingEngine.fromTemplate(String templatePath,
IJsonObject jsonObject) |
String |
SpincastPebbleTemplatingEngine.fromTemplate(String templatePath,
IJsonObject jsonObject,
Locale locale) |
| Modifier and Type | Method and Description |
|---|---|
IJsonObject |
SpincastRequestRequestContextAddon.getFormDatas() |
IJsonObject |
SpincastRequestRequestContextAddon.getJsonBodyAsJsonObject() |
IJsonObject |
SpincastRequestRequestContextAddon.getXmlBodyAsJsonObject() |
| Modifier and Type | Method and Description |
|---|---|
void |
SpincastResponseRequestContextAddon.sendParse(String content,
String contentType,
IJsonObject model) |
void |
SpincastResponseRequestContextAddon.sendParse(String content,
String contentType,
IJsonObject model,
boolean flush) |
void |
SpincastResponseRequestContextAddon.sendParseHtml(String html,
IJsonObject model) |
void |
SpincastResponseRequestContextAddon.sendParseHtml(String html,
IJsonObject model,
boolean flush) |
void |
SpincastResponseRequestContextAddon.sendTemplate(String templatePath,
boolean isClasspathPath,
String contentType,
IJsonObject model) |
void |
SpincastResponseRequestContextAddon.sendTemplate(String templatePath,
boolean isClasspathPath,
String contentType,
IJsonObject model,
boolean flush) |
void |
SpincastResponseRequestContextAddon.sendTemplate(String templatePath,
String contentType,
IJsonObject model) |
void |
SpincastResponseRequestContextAddon.sendTemplate(String templatePath,
String contentType,
IJsonObject model,
boolean flush) |
void |
SpincastResponseRequestContextAddon.sendTemplateHtml(String templatePath,
boolean isClasspathPath,
IJsonObject model) |
void |
SpincastResponseRequestContextAddon.sendTemplateHtml(String templatePath,
boolean isClasspathPath,
IJsonObject model,
boolean flush) |
void |
SpincastResponseRequestContextAddon.sendTemplateHtml(String templatePath,
IJsonObject model) |
void |
SpincastResponseRequestContextAddon.sendTemplateHtml(String templatePath,
IJsonObject model,
boolean flush) |
| Modifier and Type | Method and Description |
|---|---|
String |
SpincastTemplatingRequestContextAddon.evaluate(String content,
IJsonObject model) |
String |
SpincastTemplatingRequestContextAddon.evaluate(String content,
IJsonObject model,
Locale locale) |
String |
SpincastTemplatingRequestContextAddon.fromTemplate(String templatePath,
boolean isClasspathPath,
IJsonObject model) |
String |
SpincastTemplatingRequestContextAddon.fromTemplate(String templatePath,
boolean isClasspathPath,
IJsonObject model,
Locale locale) |
String |
SpincastTemplatingRequestContextAddon.fromTemplate(String templatePath,
IJsonObject model) |
String |
SpincastTemplatingRequestContextAddon.fromTemplate(String templatePath,
IJsonObject model,
Locale locale) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
SpincastValidatorBase.addErrorsFormattedSpecificField(String fieldName,
List<IValidationError> errors,
FormatType formatType,
StringBuilder textBuilder,
IJsonObject jsonObject) |
| Modifier and Type | Method and Description |
|---|---|
IJsonObject |
SpincastVariablesRequestContextAddon.getAsJsonObject(String key) |
Copyright © 2016. All rights reserved.