Class NativeResponseMapper
- java.lang.Object
-
- jadex.extension.rs.publish.mapper.NativeResponseMapper
-
- All Implemented Interfaces:
IValueMapper
public class NativeResponseMapper extends java.lang.Object implements IValueMapper
The native response mapper allows for sending back native response objects. a) String (is treated as normal html response) b) ResourceInfo (is loaded as inputstream and transferred) c) URI (is treated as redirect url)
-
-
Constructor Summary
Constructors Constructor Description NativeResponseMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
convertValue(java.lang.Object value)
Convert a value.protected java.lang.Object
extractContent(java.lang.Object value)
Prestep for extracting the content of a value.protected boolean
isProduction()
Test if is in debug mode.
-
-
-
Method Detail
-
convertValue
public java.lang.Object convertValue(java.lang.Object value) throws java.lang.Exception
Convert a value.- Specified by:
convertValue
in interfaceIValueMapper
- Parameters:
value
- The value to convert.- Returns:
- The converted value.
- Throws:
java.lang.Exception
-
extractContent
protected java.lang.Object extractContent(java.lang.Object value)
Prestep for extracting the content of a value.
-
isProduction
protected boolean isProduction()
Test if is in debug mode.
-
-