Class NativeResponseMapper

java.lang.Object
jadex.publishservice.publish.mapper.NativeResponseMapper
All Implemented Interfaces:
IValueMapper

public class NativeResponseMapper extends 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 Details

    • NativeResponseMapper

      public NativeResponseMapper()
  • Method Details

    • convertValue

      public Object convertValue(Object value) throws Exception
      Convert a value.
      Specified by:
      convertValue in interface IValueMapper
      Parameters:
      value - The value to convert.
      Returns:
      The converted value.
      Throws:
      Exception
    • extractContent

      protected Object extractContent(Object value)
      Prestep for extracting the content of a value.
    • isProduction

      protected boolean isProduction()
      Test if is in debug mode.