Class NativeResponseMapper
java.lang.Object
jadex.publishservice.publish.mapper.NativeResponseMapper
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionconvertValue
(Object value) Convert a value.protected Object
extractContent
(Object value) Prestep for extracting the content of a value.protected boolean
Test if is in debug mode.
-
Constructor Details
-
NativeResponseMapper
public NativeResponseMapper()
-
-
Method Details
-
convertValue
Convert a value.- Specified by:
convertValue
in interfaceIValueMapper
- Parameters:
value
- The value to convert.- Returns:
- The converted value.
- Throws:
Exception
-
extractContent
Prestep for extracting the content of a value. -
isProduction
protected boolean isProduction()Test if is in debug mode.
-