Class RequestMapper

  • All Implemented Interfaces:
    IParameterMapper

    public class RequestMapper
    extends java.lang.Object
    implements IParameterMapper
    Example mapper that shows how a request can be transformed.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.text.SimpleDateFormat sdf
      The date formatetr.
    • Constructor Summary

      Constructors 
      Constructor Description
      RequestMapper()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object[] convertParameters​(java.lang.Object[] parameters, java.lang.Object request)
      Convert the parameters.
      protected java.util.Date parseDate​(java.lang.Object val)
      Parse a date.
      • Methods inherited from class java.lang.Object

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

      • sdf

        protected java.text.SimpleDateFormat sdf
        The date formatetr.
    • Constructor Detail

      • RequestMapper

        public RequestMapper()
    • Method Detail

      • convertParameters

        public java.lang.Object[] convertParameters​(java.lang.Object[] parameters,
                                                    java.lang.Object request)
                                             throws java.lang.Exception
        Convert the parameters.
        Specified by:
        convertParameters in interface IParameterMapper
        Parameters:
        parameters - The parameters.
        Returns:
        The converted parameters.
        Throws:
        java.lang.Exception
      • parseDate

        protected java.util.Date parseDate​(java.lang.Object val)
                                    throws java.text.ParseException
        Parse a date.
        Parameters:
        val - The value.
        Returns:
        The date.
        Throws:
        java.text.ParseException