Class RequestMapper
- java.lang.Object
-
- jadex.webservice.examples.rs.banking.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.
-
-
-
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 interfaceIParameterMapper
- 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
-
-