| 3303 |
rajveer |
1 |
package in.shop2020.serving.mappers;
|
|
|
2 |
|
|
|
3 |
import in.shop2020.serving.services.SpecialPageConfigurer;
|
|
|
4 |
import org.apache.struts2.dispatcher.mapper.ActionMapping;
|
|
|
5 |
import org.apache.struts2.rest.RestActionMapper;
|
|
|
6 |
|
|
|
7 |
public class SaholicMapper extends RestActionMapper{
|
|
|
8 |
|
|
|
9 |
@Override
|
|
|
10 |
public org.apache.struts2.dispatcher.mapper.ActionMapping getMapping(javax.servlet.http.HttpServletRequest request, com.opensymphony.xwork2.config.ConfigurationManager configManager){
|
|
|
11 |
ActionMapping mapping = super.getMapping(request, configManager);
|
|
|
12 |
if(SpecialPageConfigurer.isValidSpecialPage(mapping.getName())){
|
|
|
13 |
mapping.setName("special-page");
|
|
|
14 |
}
|
|
|
15 |
return mapping;
|
|
|
16 |
}
|
|
|
17 |
}
|