Class 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)
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NativeResponseMapper

        public NativeResponseMapper()
    • Method Detail

      • convertValue

        public java.lang.Object convertValue​(java.lang.Object value)
                                      throws java.lang.Exception
        Convert a value.
        Specified by:
        convertValue in interface IValueMapper
        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.