Package org.xwiki.wysiwyg.converter
Class RequestParameterConversionResult
- java.lang.Object
-
- org.xwiki.wysiwyg.converter.RequestParameterConversionResult
-
@Unstable public class RequestParameterConversionResult extends Object
Simple POJO holding the result of a conversion performed withRequestParameterConverter
. More specifically this class contains a mutable request, resulting of the conversion, a map of errors that might have occurred during the conversion for each parameter, and a map of the output of the conversion for each parameter.- Since:
- 14.10
- Version:
- $Id: 5d650d119a5377167bcd0adab6fd2522e03feade $
-
-
Constructor Summary
Constructors Constructor Description RequestParameterConversionResult(MutableServletRequest request)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Throwable>
getErrors()
Map<String,String>
getOutput()
MutableServletRequest
getRequest()
-
-
-
Constructor Detail
-
RequestParameterConversionResult
public RequestParameterConversionResult(MutableServletRequest request)
Default constructor.- Parameters:
request
- a mutable copy of the original request used for the conversion
-
-
Method Detail
-
getRequest
public MutableServletRequest getRequest()
- Returns:
- the mutable request
-
getErrors
public Map<String,Throwable> getErrors()
- Returns:
- the map of errors indexed by parameters
-
-