Subversion Repositories SmartDukaan

Rev

Rev 3320 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3320 Rev 6204
Line 1... Line 1...
1
package in.shop2020.serving.mappers;
1
package in.shop2020.serving.mappers;
2
 
2
 
3
import in.shop2020.serving.services.SpecialPageConfigurer;
3
import in.shop2020.serving.services.SpecialPageConfigurer;
-
 
4
import in.shop2020.serving.utils.Utils;
-
 
5
 
4
import org.apache.struts2.dispatcher.mapper.ActionMapping;
6
import org.apache.struts2.dispatcher.mapper.ActionMapping;
5
import org.apache.struts2.rest.RestActionMapper;
7
import org.apache.struts2.rest.RestActionMapper;
6
 
8
 
7
/**
9
/**
8
 * 
10
 * 
Line 16... Line 18...
16
	public org.apache.struts2.dispatcher.mapper.ActionMapping getMapping(javax.servlet.http.HttpServletRequest request, com.opensymphony.xwork2.config.ConfigurationManager configManager){
18
	public org.apache.struts2.dispatcher.mapper.ActionMapping getMapping(javax.servlet.http.HttpServletRequest request, com.opensymphony.xwork2.config.ConfigurationManager configManager){
17
		ActionMapping mapping = super.getMapping(request, configManager);
19
		ActionMapping mapping = super.getMapping(request, configManager);
18
		if(SpecialPageConfigurer.isValidSpecialPage(mapping.getName())){
20
		if(SpecialPageConfigurer.isValidSpecialPage(mapping.getName())){
19
			mapping.setName("special-page");
21
			mapping.setName("special-page");
20
		}
22
		}
-
 
23
		if(Utils.getOperatorByUri(mapping.getName()) != null){
-
 
24
			mapping.setName("recharge");
-
 
25
		}
21
		return mapping;
26
		return mapping;
22
	}
27
	}
23
}
28
}