|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| RequestTransformer | Line # 8 | 0 | - | 0 | 0 | - |
-1.0
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| No Tests | |||
| 1 | package net.sf.arestc.core; | |
| 2 | ||
| 3 | ||
| 4 | // TODO: Auto-generated Javadoc | |
| 5 | /** | |
| 6 | * The Interface RequestTransformer. | |
| 7 | */ | |
| 8 | public interface RequestTransformer { | |
| 9 | ||
| 10 | /** | |
| 11 | * Adds the error. | |
| 12 | * | |
| 13 | * @param context the context | |
| 14 | * @param ErrorMsg the error msg | |
| 15 | */ | |
| 16 | void addError(final ConnectorContext context, final String ErrorMsg); | |
| 17 | ||
| 18 | /** | |
| 19 | * Authenticate. | |
| 20 | * | |
| 21 | * @param request the request | |
| 22 | * @param context the context | |
| 23 | */ | |
| 24 | void authenticate(final ConnectorRequest request, | |
| 25 | final ConnectorContext context); | |
| 26 | ||
| 27 | /** | |
| 28 | * Prepare uri. | |
| 29 | * | |
| 30 | * @param request the request | |
| 31 | * @param context the context | |
| 32 | * @param params the params | |
| 33 | * @throws CommandException the command exception | |
| 34 | */ | |
| 35 | void prepareUri(final ConnectorRequest request, | |
| 36 | final ConnectorContext context, Object[] params) | |
| 37 | throws CommandException; | |
| 38 | ||
| 39 | /** | |
| 40 | * Transform. | |
| 41 | * | |
| 42 | * @param request the request | |
| 43 | * @param context the context | |
| 44 | * @throws CommandException the command exception | |
| 45 | */ | |
| 46 | void transform(ConnectorRequest request, final ConnectorContext context) | |
| 47 | throws CommandException; | |
| 48 | } | |
|
||||||||||||