Subversion Repositories SmartDukaan

Rev

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

Rev 32704 Rev 33766
Line 2... Line 2...
2
 
2
 
3
import java.util.List;
3
import java.util.List;
4
 
4
 
5
import javax.xml.transform.Source;
5
import javax.xml.transform.Source;
6
 
6
 
-
 
7
import com.spice.profitmandi.web.interceptor.PostInterceptor;
7
import org.apache.logging.log4j.LogManager;
8
import org.apache.logging.log4j.LogManager;
8
import org.apache.logging.log4j.Logger;
9
import org.apache.logging.log4j.Logger;
9
import org.springframework.beans.factory.annotation.Autowired;
10
import org.springframework.beans.factory.annotation.Autowired;
10
import org.springframework.context.annotation.Bean;
11
import org.springframework.context.annotation.Bean;
11
import org.springframework.context.annotation.ComponentScan;
12
import org.springframework.context.annotation.ComponentScan;
Line 52... Line 53...
52
 
53
 
53
	@Autowired
54
	@Autowired
54
	SimpleCORSInterceptor simpleCORSInterceptor;
55
	SimpleCORSInterceptor simpleCORSInterceptor;
55
 
56
 
56
	@Autowired
57
	@Autowired
-
 
58
	PostInterceptor postInterceptor;
-
 
59
 
-
 
60
	@Autowired
57
	AuthenticationInterceptor authenticationInterceptor;
61
	AuthenticationInterceptor authenticationInterceptor;
58
 
62
 
59
	@Bean
63
	@Bean
60
	public Docket api() {
64
	public Docket api() {
61
		return new Docket(DocumentationType.SWAGGER_2).select().apis(RequestHandlerSelectors.any())
65
		return new Docket(DocumentationType.SWAGGER_2).select().apis(RequestHandlerSelectors.any())
Line 69... Line 73...
69
		registry.addResourceHandler(RESOURCES_PATTERN).addResourceLocations(RESOURCES_LOCATION);
73
		registry.addResourceHandler(RESOURCES_PATTERN).addResourceLocations(RESOURCES_LOCATION);
70
	}
74
	}
71
 
75
 
72
	@Override
76
	@Override
73
	public void addInterceptors(InterceptorRegistry registry) {
77
	public void addInterceptors(InterceptorRegistry registry) {
-
 
78
		registry.addInterceptor(postInterceptor).addPathPatterns("/**").excludePathPatterns("/swagger-ui.html",
-
 
79
				ProfitMandiConstants.URL_PAYU_PAY_RESPONSE, ProfitMandiConstants.URL_PAYU_PAY_CANCELLED,
-
 
80
				ProfitMandiConstants.URL_CCAVENUE_PAY_RESPONSE, ProfitMandiConstants.URL_CCAVENUE_PAY_CANCELLED,
-
 
81
				ProfitMandiConstants.URL_PINELABS_PAY_RESPONSE, ProfitMandiConstants.URL_LOAN_CCAVENUE_PAY_CANCELLED,
-
 
82
				ProfitMandiConstants.URL_LOAN_CCAVENUE_PAY_RESPONSE,
-
 
83
				ProfitMandiConstants.URL_POST_OFFICE,
-
 
84
				ProfitMandiConstants.HOOK_URL_CALLER_ID,
-
 
85
				ProfitMandiConstants.URL_NEW_LEAD);
-
 
86
 
74
		registry.addInterceptor(simpleCORSInterceptor).addPathPatterns("/**").excludePathPatterns("/swagger-ui.html",
87
		registry.addInterceptor(simpleCORSInterceptor).addPathPatterns("/**").excludePathPatterns("/swagger-ui.html",
75
				ProfitMandiConstants.URL_PAYU_PAY_RESPONSE, ProfitMandiConstants.URL_PAYU_PAY_CANCELLED,
88
				ProfitMandiConstants.URL_PAYU_PAY_RESPONSE, ProfitMandiConstants.URL_PAYU_PAY_CANCELLED,
76
				ProfitMandiConstants.URL_CCAVENUE_PAY_RESPONSE, ProfitMandiConstants.URL_CCAVENUE_PAY_CANCELLED,
89
				ProfitMandiConstants.URL_CCAVENUE_PAY_RESPONSE, ProfitMandiConstants.URL_CCAVENUE_PAY_CANCELLED,
77
				ProfitMandiConstants.URL_PINELABS_PAY_RESPONSE, ProfitMandiConstants.URL_LOAN_CCAVENUE_PAY_CANCELLED,
90
				ProfitMandiConstants.URL_PINELABS_PAY_RESPONSE, ProfitMandiConstants.URL_LOAN_CCAVENUE_PAY_CANCELLED,
78
				ProfitMandiConstants.URL_LOAN_CCAVENUE_PAY_RESPONSE,
91
				ProfitMandiConstants.URL_LOAN_CCAVENUE_PAY_RESPONSE,