private void definePagesURLs(PagesMethods pagesMethods, Class<?> type) {
if (pagesMethods.getLoginPageMethod() != null) {
if (this.loginPageURLClass != null) {
throw new PageException("Multiple login pages not allowed.");
} else {
this.loginPageURLClass = type;
this.loginPageURLMethod = pagesMethods.getLoginPageMethod();
this.logger.info("Login page >> " + this.loginPageURLMethod);
}
}
if (pagesMethods.getAccessDeniedPageMethod() != null) {
if (this.accessDeniedPageURLClass != null) {
throw new PageException("Multiple access denied pages not allowed.");
} else {
this.accessDeniedPageURLClass = type;
this.accessDeniedPageURLMethod = pagesMethods.getAccessDeniedPageMethod();
this.logger.info("Access denied page >> " + this.accessDeniedPageURLClass);
}