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, AbstractParameter.ParameterPatternSubstitution -
Field Summary
Fields inherited from class org.frankframework.parameters.AbstractParameter
CONTEXT_KEY_WILDCARD, FIXEDHOSTNAME, FIXEDUID, paramList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectgetValueAsType(Message request, boolean namespaceAware) Converts raw data to configured parameter typeMethods inherited from class org.frankframework.parameters.AbstractParameter
addParameter, configure, consumesSessionVariable, getMessageFormat, 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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContextMethods inherited from interface org.frankframework.core.FrankElement
addConfigWarningMethods inherited from interface org.frankframework.core.HasApplicationContext
getApplicationContext, getConfigurationClassLoaderMethods 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:AbstractParameterConverts raw data to configured parameter type- Overrides:
getValueAsTypein classAbstractParameter- Throws:
ParameterExceptionIOException
-