Package org.frankframework.parameters
Class JsonParameter
java.lang.Object
org.frankframework.parameters.AbstractParameter
org.frankframework.parameters.JsonParameter
- All Implemented Interfaces:
FrankElement
,HasApplicationContext
,HasName
,IConfigurable
,IScopeProvider
,IWithParameters
,NameAware
,IParameter
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
A parameter which represents its value as a
Message
with mimetype application/json. If the
derived value was of type application/xml then it will be converted into JSON using the same rules as the
JsonPipe
.
If the derived value of the parameter was neither XML nor JSON format then a JSON will be constructed that looks like
{"paramName":value}
. (The value will be quoted if it was not a number or boolean value).-
Nested Class Summary
Nested classes/interfaces inherited from class org.frankframework.parameters.AbstractParameter
AbstractParameter.DefaultValueMethods, AbstractParameter.ParameterMode
-
Field Summary
Fields inherited from class org.frankframework.parameters.AbstractParameter
FIXEDHOSTNAME, FIXEDUID, paramList
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
getValueAsType
(Message request, boolean namespaceAware) Converts raw data to configured parameter typeMethods inherited from class org.frankframework.parameters.AbstractParameter
addParameter, configure, consumesSessionVariable, getName, getParameterList, getValue, requiresInputValueForResolution, setAuthAlias, setContextKey, setDefaultValue, setDefaultValueMethods, setHidden, setIgnoreUnresolvablePatternElements, setJsonPathExpression, setMaxLength, setMinLength, setMode, setName, setNamespaceDefs, setPassword, setPattern, setRemoveNamespaces, setSessionKey, setSessionKeyJPath, setSessionKeyXPath, setStyleSheetName, setType, setUsername, setValue, setXpathExpression, setXsltVersion, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContext
Methods inherited from interface org.frankframework.core.HasApplicationContext
getApplicationContext, getConfigurationClassLoader
Methods inherited from interface org.frankframework.parameters.IParameter
getMode, getSessionKey, getType, getValue, isHidden
-
Constructor Details
-
JsonParameter
public JsonParameter()
-
-
Method Details
-
getValueAsType
protected Object getValueAsType(@Nonnull Message request, boolean namespaceAware) throws ParameterException, IOException Description copied from class:AbstractParameter
Converts raw data to configured parameter type- Overrides:
getValueAsType
in classAbstractParameter
- Throws:
ParameterException
IOException
-