Uses of Interface
org.spincast.core.json.JsonObject
Packages that use JsonObject
Package
Description
-
Uses of JsonObject in org.spincast.core.exceptions
Methods in org.spincast.core.exceptions that return JsonObjectConstructors in org.spincast.core.exceptions with parameters of type JsonObjectModifierConstructorDescriptionRedirectException(String newUrl, boolean redirectPermanently, FlashMessageLevel flashMessageType, String flashMessageTex, JsonObject flashMessageVariables) Redirect with a Flash message.protectedRedirectException(String newUrl, boolean redirectPermanently, FlashMessage flashMessage, FlashMessageLevel flashMessageType, String flashMessageText, JsonObject flashMessageVariables) RedirectException(String newUrl, FlashMessageLevel flashMessageType, String flashMessageTex, JsonObject flashMessageVariables) Redirect with a Flash message.RedirectException(FlashMessageLevel flashMessageType, String flashMessageTex, JsonObject flashMessageVariables) Redirects to the current URL with a Flash message. -
Uses of JsonObject in org.spincast.core.exchange
Methods in org.spincast.core.exchange that return JsonObjectModifier and TypeMethodDescriptionVariablesRequestContextAddon.getAsJsonObject(String key) Gets the specified request scoped variable asJsonObject.RequestRequestContextAddon.getFormBodyAsJsonObject()The data submitted as aFORMbody (in general via aPOSTmethod), as an immutableJsonObject.RequestRequestContextAddon.getJsonBody()The request's body deserialized to an immutableJsonObject.ResponseRequestContextAddon.getModel()TheJsonObjectwhich serves as the model for the response.RequestRequestContextAddon.getXmlBodyAsJsonObject()The request's body deserialized to an immutableJsonObject.Methods in org.spincast.core.exchange with parameters of type JsonObjectModifier and TypeMethodDescriptionvoidResponseRequestContextAddon.redirect(String newUrl, boolean permanently, FlashMessageLevel flashMessageType, String flashMessageText, JsonObject flashMessageVariables) Sets a redirection header, with a Flash message to display.voidResponseRequestContextAddon.redirect(String newUrl, int specific3xxCode, FlashMessageLevel flashMessageType, String flashMessageText, JsonObject flashMessageVariables) Sets the redirection headers with a specified3xxstatus code, and a Flash message to display.voidResponseRequestContextAddon.redirect(String newUrl, FlashMessageLevel flashMessageType, String flashMessageText, JsonObject flashMessageVariables) Sets a temporarily redirection header (302), with a Flash message to display.voidResponseRequestContextAddon.redirect(String newUrl, JsonObject flashMessageVariables) Sets a temporarily redirection header (302), with a Flash variables.voidResponseRequestContextAddon.redirect(FlashMessageLevel flashMessageType, String flashMessageText, JsonObject flashMessageVariables) Sets a temporarily redirection header (302) to the current page, with a Flash message to display.voidResponseRequestContextAddon.setModel(JsonObject model) Replaces the current response model completely. -
Uses of JsonObject in org.spincast.core.flash
Methods in org.spincast.core.flash that return JsonObjectModifier and TypeMethodDescriptionFlashMessage.getVariables()Potential variables associated with this Flash message.FlashMessageDefault.getVariables()Methods in org.spincast.core.flash with parameters of type JsonObjectModifier and TypeMethodDescriptionFlashMessageFactory.create(FlashMessageLevel messageType, String text, JsonObject variables) Constructors in org.spincast.core.flash with parameters of type JsonObjectModifierConstructorDescriptionFlashMessageDefault(FlashMessageLevel messageType, String text, JsonObject variables, JsonManager jsonManager) -
Uses of JsonObject in org.spincast.core.guice
Methods in org.spincast.core.guice that return types with arguments of type JsonObjectModifier and TypeMethodDescriptionprotected Class<? extends JsonObject>SpincastCorePluginModule.getJsonObjectImplClass() -
Uses of JsonObject in org.spincast.core.json
Classes in org.spincast.core.json that implement JsonObjectMethods in org.spincast.core.json that return JsonObjectModifier and TypeMethodDescriptionJsonObjectDefault.clear()JsonObject.clone(boolean mutable) Deep copy of theJsonObject, so any modification to the original won't affect the clone, and vice-versa.JsonObjectDefault.clone(boolean mutable) JsonManager.cloneJsonObject(JsonObject jsonObject, boolean mutable) Deep copy of theJsonObject, so any modification to the original won't affect the clone, and vice-versa.ToJsonObjectConvertible.convertToJsonObject()Converts the object to aJsonObject.JsonManager.create()Creates an emptyJsonObjectJsonObjectFactory.create()Creates an empty and mutable JsonObject.Creates an JonObject based on the specified Map.JsonObjectFactory.create(JsonObject objectToClone, boolean mutable) Creates an JonObject based on the specified JsonObject.JsonManager.enumToFriendlyJsonObject(Enum<?> enumValue) Convert the enum value to aJsonObjectthat has a ".name" property (thename()of the enum) and a ".label" property (thetoString()of the enum)JsonManager.fromClasspathFile(String path) Creates aJsonObjectfrom a classpath Json file.Creates aJsonObjectfrom a Json file.Creates aJsonObjectfrom the path of a file, on the file system.JsonManager.fromInputStream(InputStream inputStream) Creates aJsonObjectfrom an inputStream.Creates an emptyJsonObjectbased on the specified Map.Creates aJsonObjectbased on the specified Map.JsonManager.fromObject(Object object) Creates aJsonObjectfrom a random object..JsonManager.fromString(String jsonString) Creates aJsonObjectfrom aJsonString.JsonArray.getArrayFirstJsonObject(int index) Gets the first element (as JsonObject) of aJsonArrayelement.JsonArray.getArrayFirstJsonObject(int index, JsonObject defaultValue) Gets the first element (as JsonObject) of aJsonArrayelement.JsonArrayDefault.getArrayFirstJsonObject(int index) JsonArrayDefault.getArrayFirstJsonObject(int index, JsonObject defaultValue) JsonObjectArrayBase.getArrayFirstJsonObject(String key) protected JsonObjectJsonObjectArrayBase.getArrayFirstJsonObject(String key, boolean parseJsonPath, boolean hasdefaultElement, JsonObject defaultElement) JsonObjectArrayBase.getArrayFirstJsonObject(String key, JsonObject defaultElement) JsonObjectOrArray.getArrayFirstJsonObject(String jsonPath) Gets the first value (as JsonObject) of aJsonArrayproperty of the object, using theJsonPathto find the array.JsonObjectOrArray.getArrayFirstJsonObject(String jsonPath, JsonObject defaultElement) Gets the first value (as JsonObject) of aJsonArrayproperty of the object, using theJsonPathto find the array.JsonObject.getArrayFirstJsonObjectNoKeyParsing(String key) Gets the first value (as JsonObject) of aJsonArrayelement .JsonObject.getArrayFirstJsonObjectNoKeyParsing(String key, JsonObject defaultElement) Gets the first value (as JsonObject) of aJsonArrayelement .JsonObjectArrayBase.getArrayFirstJsonObjectNoKeyParsing(String key) JsonObjectArrayBase.getArrayFirstJsonObjectNoKeyParsing(String key, JsonObject defaultElement) JsonArray.getJsonObject(int index) Gets an element asJsonObject.JsonArray.getJsonObject(int index, JsonObject defaultValue) Gets an element asJsonObject.JsonArrayDefault.getJsonObject(int index) JsonArrayDefault.getJsonObject(int index, JsonObject defaultValue) JsonObjectArrayBase.getJsonObject(String jsonPath) protected JsonObjectJsonObjectArrayBase.getJsonObject(String jsonPath, boolean hasdefaultElement, JsonObject defaultElement) protected JsonObjectJsonObjectArrayBase.getJsonObject(String jsonPath, boolean hasdefaultElement, JsonObject defaultElement, boolean parseJsonPath) JsonObjectArrayBase.getJsonObject(String jsonPath, JsonObject defaultElement) JsonObjectOrArray.getJsonObject(String jsonPath) Gets an element asJsonObjectusing the specifiedJsonPath.JsonObjectOrArray.getJsonObject(String jsonPath, JsonObject defaultElement) Gets an element asJsonObjectusing the specifiedJsonPath.protected JsonObjectJsonObjectArrayBase.getJsonObjectFromObject(Object object) JsonObject.getJsonObjectNoKeyParsing(String jsonPath) Gets an element asJsonObject.JsonObject.getJsonObjectNoKeyParsing(String jsonPath, JsonObject defaultElement) Gets an element asJsonObject.JsonObjectArrayBase.getJsonObjectNoKeyParsing(String jsonPath) JsonObjectArrayBase.getJsonObjectNoKeyParsing(String jsonPath, JsonObject defaultElement) JsonArray.getJsonObjectOrEmpty(int index) Gets an element asJsonObject.JsonArrayDefault.getJsonObjectOrEmpty(int index) JsonObjectArrayBase.getJsonObjectOrEmpty(String jsonPath) JsonObjectArrayBase.getJsonObjectOrEmpty(String jsonPath, boolean addIfDoesntExist) JsonObjectOrArray.getJsonObjectOrEmpty(String jsonPath) Gets an element asJsonObjectusing the specifiedJsonPath.JsonObjectOrArray.getJsonObjectOrEmpty(String jsonPath, boolean addIfDoesntExist) Gets an element asJsonObjectusing the specifiedJsonPath.JsonObject.getJsonObjectOrEmptyNoKeyParsing(String jsonPath) Gets an element asJsonObject.JsonObjectArrayBase.getJsonObjectOrEmptyNoKeyParsing(String jsonPath) Merges all the specified Map elements in the JsonObject.Merges all the specified Map elements in the JsonObject.JsonObject.merge(JsonObject jsonObj) Merges the specifiedJsonObjectproperties in the current object.JsonObject.merge(JsonObject jsonObj, boolean clone) Merges the specifiedJsonObjectproperties in the current object.JsonObject.merge(ToJsonObjectConvertible jsonObj) Transforms the specifie3d object toJsonObjectand merges its properties in the current object.JsonObjectDefault.merge(JsonObject jsonObj) JsonObjectDefault.merge(JsonObject jsonObj, boolean clone) JsonObjectDefault.merge(ToJsonObjectConvertible obj) protected JsonObjectRemoves a property atJsonPathfrom the object.JsonObject.removeNoKeyParsing(String key) Removes a element from the object.JsonObjectDefault.removeNoKeyParsing(String key) JsonObject.setNoKeyParsing(String key, Object element) Sets an element at the specified key, without parsing this key as aJsonPath.JsonObject.setNoKeyParsing(String key, Object element, boolean clone) Sets an element at the specified key, without parsing this key as aJsonPath.JsonObjectDefault.setNoKeyParsing(String jsonPath, Object value) JsonObjectDefault.setNoKeyParsing(String jsonPath, Object value, boolean clone) Methods in org.spincast.core.json with parameters of type JsonObjectModifier and TypeMethodDescriptionJsonManager.cloneJsonObject(JsonObject jsonObject, boolean mutable) Deep copy of theJsonObject, so any modification to the original won't affect the clone, and vice-versa.JsonObjectFactory.create(JsonObject objectToClone, boolean mutable) Creates an JonObject based on the specified JsonObject.JsonArray.getArrayFirstJsonObject(int index, JsonObject defaultValue) Gets the first element (as JsonObject) of aJsonArrayelement.JsonArrayDefault.getArrayFirstJsonObject(int index, JsonObject defaultValue) protected JsonObjectJsonObjectArrayBase.getArrayFirstJsonObject(String key, boolean parseJsonPath, boolean hasdefaultElement, JsonObject defaultElement) JsonObjectArrayBase.getArrayFirstJsonObject(String key, JsonObject defaultElement) JsonObjectOrArray.getArrayFirstJsonObject(String jsonPath, JsonObject defaultElement) Gets the first value (as JsonObject) of aJsonArrayproperty of the object, using theJsonPathto find the array.JsonObject.getArrayFirstJsonObjectNoKeyParsing(String key, JsonObject defaultElement) Gets the first value (as JsonObject) of aJsonArrayelement .JsonObjectArrayBase.getArrayFirstJsonObjectNoKeyParsing(String key, JsonObject defaultElement) JsonManager.getElementAtJsonPath(JsonObject obj, String jsonPath) Gets an element from theJsonObjectat the specifiedJsonPath.JsonManager.getElementAtJsonPath(JsonObject obj, String jsonPath, Object defaultElement) Gets an element from theJsonObjectat the specifiedJsonPath.JsonPathUtils.getElementAtJsonPath(JsonObject obj, String jsonPath) Gets an element from theJsonObject, at the specifiedJsonPath.JsonPathUtils.getElementAtJsonPath(JsonObject obj, String jsonPath, Object defaultElement) Gets an element from theJsonObject, at the specifiedJsonPath.JsonPathUtilsDefault.getElementAtJsonPath(JsonObject obj, String jsonPath) JsonPathUtilsDefault.getElementAtJsonPath(JsonObject obj, String jsonPath, Object defaultElement) JsonArray.getJsonObject(int index, JsonObject defaultValue) Gets an element asJsonObject.JsonArrayDefault.getJsonObject(int index, JsonObject defaultValue) protected JsonObjectJsonObjectArrayBase.getJsonObject(String jsonPath, boolean hasdefaultElement, JsonObject defaultElement) protected JsonObjectJsonObjectArrayBase.getJsonObject(String jsonPath, boolean hasdefaultElement, JsonObject defaultElement, boolean parseJsonPath) JsonObjectArrayBase.getJsonObject(String jsonPath, JsonObject defaultElement) JsonObjectOrArray.getJsonObject(String jsonPath, JsonObject defaultElement) Gets an element asJsonObjectusing the specifiedJsonPath.JsonObject.getJsonObjectNoKeyParsing(String jsonPath, JsonObject defaultElement) Gets an element asJsonObject.JsonObjectArrayBase.getJsonObjectNoKeyParsing(String jsonPath, JsonObject defaultElement) booleanJsonManager.isElementExists(JsonObject obj, String jsonPath) Does the object contain an element at the specifiedJsonPath(even ifnull)?booleanJsonPathUtils.isElementExists(JsonObject obj, String jsonPath) Does the object contain an element at theJsonPathposition (even ifnull)?booleanJsonPathUtilsDefault.isElementExists(JsonObject root, String jsonPath) booleanJsonObject.isEquivalentTo(JsonObject other) Compares the currentJsonObjectto the specified one and returnstrueif they are equivalent.booleanJsonObjectDefault.isEquivalentTo(JsonObject other) JsonObject.merge(JsonObject jsonObj) Merges the specifiedJsonObjectproperties in the current object.JsonObject.merge(JsonObject jsonObj, boolean clone) Merges the specifiedJsonObjectproperties in the current object.JsonObjectDefault.merge(JsonObject jsonObj) JsonObjectDefault.merge(JsonObject jsonObj, boolean clone) protected ObjectJsonPathUtilsDefault.processJsonPath(JsonObject root, String jsonPath, JsonPathUtilsDefault.JsonPathProcessingType jsonPathProcessingType, Object valueToPut, boolean hasDefaultValue, Object defaultElement) voidJsonManager.removeElementAtJsonPath(JsonObject obj, String jsonPath) Removes an element at the specifiedJsonPathfrom the object.voidJsonPathUtils.removeElementAtJsonPath(JsonObject obj, String jsonPath) Removes an element at the specifiedJsonPathfrom the object.voidJsonPathUtilsDefault.removeElementAtJsonPath(JsonObject root, String jsonPath) protected ObjectJsonPathUtilsDefault.selectValueUsingJsonPath(JsonObject obj, String jsonPath, boolean hasDefaultValue, Object defaultElement) Constructors in org.spincast.core.json with parameters of type JsonObjectModifierConstructorDescriptionJsonObjectDefault(JsonObject configToMerge, boolean mutable, JsonManager jsonManager, SpincastUtils spincastUtils, ObjectConverter objectConverter) Constructor -
Uses of JsonObject in org.spincast.core.request
Subinterfaces of JsonObject in org.spincast.core.requestModifier and TypeInterfaceDescriptioninterfaceSpecializedJsonObjectthat is also aValidationSetto store validations.Classes in org.spincast.core.request that implement JsonObjectMethods in org.spincast.core.request that return JsonObjectMethods in org.spincast.core.request with parameters of type JsonObjectModifier and TypeMethodDescriptionprotected voidFormDefault.addMessageFormattedSpecifickey(String key, List<ValidationMessage> messages, ValidationMessageFormatType formatType, StringBuilder textBuilder, JsonObject jsonObject) FormFactory.createForm(String formName, JsonObject formData) voidForm.setValidationObject(JsonObject validationObject) Sets theJsonObjectto use to store the validation messages.voidFormDefault.setValidationObject(JsonObject validationObject) Constructors in org.spincast.core.request with parameters of type JsonObjectModifierConstructorDescriptionFormDefault(String formName, JsonObject initialFormData, JsonManager jsonManager, SpincastUtils spincastUtils, ObjectConverter objectConverter, Dictionary dictionary, XmlManager xmlManager, SpincastConfig spincastConfig, Validators validators, FormFactory formFactory, ValidationFactory validationFactory) -
Uses of JsonObject in org.spincast.core.templating
Methods in org.spincast.core.templating with parameters of type JsonObjectModifier and TypeMethodDescriptionTemplatingEngine.evaluate(String content, JsonObject jsonObject) Evaluates the content, using the given parameters.TemplatingEngine.evaluate(String content, JsonObject jsonObject, Locale locale) Evaluates the content, using the given parameters.TemplatingRequestContextAddon.evaluate(String content, JsonObject model) Evaluates some content using the given parameters.TemplatingRequestContextAddon.evaluate(String content, JsonObject model, Locale locale) Evaluates some content using the given parameters.TemplatingEngine.fromTemplate(String templatePath, boolean isClasspathPath, JsonObject jsonObject) Evaluates a template using the parameters specified as aJsonObject.TemplatingEngine.fromTemplate(String templatePath, boolean isClasspathPath, JsonObject jsonObject, Locale locale) Evaluates a template using the parameters specified as aJsonObject.TemplatingEngine.fromTemplate(String templatePath, JsonObject jsonObject) Evaluates a template using the parameters specified as aJsonObject.TemplatingEngine.fromTemplate(String templatePath, JsonObject jsonObject, Locale locale) Evaluates a template using the parameters specified as aJsonObject.TemplatingRequestContextAddon.fromTemplate(String templatePath, boolean isClasspathPath, JsonObject model) Renders a template using the given parameters.TemplatingRequestContextAddon.fromTemplate(String templatePath, boolean isClasspathPath, JsonObject model, Locale locale) Renders a template usgin the given parameters.TemplatingRequestContextAddon.fromTemplate(String templatePath, JsonObject model) Renders a template using the given parameters.TemplatingRequestContextAddon.fromTemplate(String templatePath, JsonObject model, Locale locale) Renders a template usgin the given parameters. -
Uses of JsonObject in org.spincast.core.utils
Methods in org.spincast.core.utils that return JsonObjectModifier and TypeMethodDescriptionObjectConverter.convertToJsonObject(Object element) Converts the element to aJsonObject.ObjectConverterDefault.convertToJsonObject(Object object) -
Uses of JsonObject in org.spincast.core.validation
Classes in org.spincast.core.validation that implement JsonObjectMethods in org.spincast.core.validation that return JsonObjectModifier and TypeMethodDescriptionValidationMessage.convertToJsonObject()Converts the message to aJsonObjectobject.ValidationMessageDefault.convertToJsonObject()ValidationSet.getValidationResultAsJsonObject()TheJsonObjectin which the validation messages are actually stored. -
Uses of JsonObject in org.spincast.core.xml
Methods in org.spincast.core.xml that return JsonObjectModifier and TypeMethodDescriptionDeserializes a XML to anJsonObject.