1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.seasar.cubby.convention.impl; |
17 | |
|
18 | |
import java.util.Map; |
19 | |
|
20 | |
import org.seasar.cubby.convention.ForwardInfo; |
21 | |
import org.seasar.cubby.convention.impl.PathResolverImpl.RoutingInfo; |
22 | |
|
23 | |
class ForwardInfoImpl implements ForwardInfo { |
24 | |
|
25 | |
private final String rewritePath; |
26 | |
|
27 | |
private final String actionClassName; |
28 | |
|
29 | |
private final String methodName; |
30 | |
|
31 | 2 | public ForwardInfoImpl(RoutingInfo rewriteInfo, Map<String, String> uriParams) { |
32 | 2 | this.rewritePath = rewriteInfo.buildForwardPath(uriParams); |
33 | 2 | this.actionClassName = rewriteInfo.getActionClass().getCanonicalName(); |
34 | 2 | this.methodName = rewriteInfo.getMethod().getName();; |
35 | 2 | } |
36 | |
|
37 | |
public String getForwardPath() { |
38 | 2 | return rewritePath; |
39 | |
} |
40 | |
|
41 | |
public String getActionClassName() { |
42 | 0 | return actionClassName; |
43 | |
} |
44 | |
|
45 | |
public String getMethodName() { |
46 | 0 | return methodName; |
47 | |
} |
48 | |
|
49 | |
} |