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
@Event/ResourceMapping uniquely mapped to through event/resource id, even across controllers (SPR-6062); type-level @RequestMapping header conditions validated in Portlet environments as well
Copy file name to clipboardExpand all lines: org.springframework.web.portlet/src/main/java/org/springframework/web/portlet/bind/annotation/EventMapping.java
+4-15Lines changed: 4 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -34,30 +34,19 @@
34
34
@Target({ElementType.METHOD})
35
35
@Retention(RetentionPolicy.RUNTIME)
36
36
@Documented
37
-
@Mapping
37
+
@Mapping()
38
38
public @interface EventMapping {
39
39
40
40
/**
41
41
* The name of the event to be handled.
42
+
* This name uniquely identifies an event within a portlet mode.
42
43
* <p>Typically the local name of the event, but fully qualified names
43
44
* with a "{...}" namespace part will be mapped correctly as well.
44
-
* <p>If not specified, the render method will be invoked for any
45
+
* <p>If not specified, the handler method will be invoked for any
45
46
* event request within its general mapping.
46
47
* @see javax.portlet.EventRequest#getEvent()
47
48
* @see javax.portlet.Event#getName()
48
49
*/
49
-
Stringvalue();
50
-
51
-
/**
52
-
* The parameters of the mapped request, narrowing the primary mapping.
53
-
* <p>Same format for any environment: a sequence of "myParam=myValue" style
54
-
* expressions, with a request only mapped if each such parameter is found
55
-
* to have the given value. "myParam" style expressions are also supported,
56
-
* with such parameters having to be present in the request (allowed to have
57
-
* any value). Finally, "!myParam" style expressions indicate that the
58
-
* specified parameter is <i>not</i> supposed to be present in the request.
Copy file name to clipboardExpand all lines: org.springframework.web.portlet/src/main/java/org/springframework/web/portlet/bind/annotation/ResourceMapping.java
+3-14Lines changed: 3 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -34,27 +34,16 @@
34
34
@Target({ElementType.METHOD})
35
35
@Retention(RetentionPolicy.RUNTIME)
36
36
@Documented
37
-
@Mapping
37
+
@Mapping()
38
38
public @interface ResourceMapping {
39
39
40
40
/**
41
41
* The id of the resource to be handled.
42
-
* <p>If not specified, the render method will be invoked for any
42
+
* This id uniquely identifies a resource within a portlet mode.
43
+
* <p>If not specified, the handler method will be invoked for any
Copy file name to clipboardExpand all lines: org.springframework.web.portlet/src/main/java/org/springframework/web/portlet/mvc/annotation/AnnotationMethodHandlerAdapter.java
0 commit comments