You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _posts/2015-03-17-controller.md
+95Lines changed: 95 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -148,6 +148,101 @@ If you use Maven, your `pom.xml` must contains above lines:
148
148
149
149
```
150
150
151
+
#### Extractors
152
+
153
+
With few words a method parameter extractor create a method parameter value from the `RouteContext` and the `MethodParameter` (an useful wrapper over Parameter class from Java).
154
+
155
+
For example, see the controller route defined with method:
The signature for a possible controller's route that uses a FileItemExtractor can might be:
241
+
242
+
```java
243
+
void upload(FileItem file);
244
+
```
245
+
151
246
#### Parameter name
152
247
153
248
The Controller module may depend on the `-parameters` flag of the Java 8 javac compiler. This flag embeds the names of method parameters in the generated .class files.
0 commit comments