@Controller @RequestMapping(value="/main") public class MainController extends Object
| Constructor and Description |
|---|
MainController() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.web.servlet.ModelAndView |
display(String requestedWith,
javax.servlet.http.HttpSession session,
SimpleForm simpleForm,
org.springframework.ui.Model model)
Return the login page when requested
|
static String |
getThumbPrint(X509Certificate cert) |
String |
handleIOException(IOException ex,
javax.servlet.http.HttpServletRequest request)
Handle exceptions as gracefully as possible
|
static String |
hexify(byte[] bytes) |
org.springframework.web.servlet.ModelAndView |
newDomain(String requestedWith,
javax.servlet.http.HttpSession session,
org.springframework.ui.Model model)
Set up to display a new Domain page
|
void |
refreshModelFromService(org.springframework.ui.Model model) |
org.springframework.web.servlet.ModelAndView |
search(String requestedWith,
javax.servlet.http.HttpSession session,
SimpleForm simpleForm,
org.springframework.ui.Model model,
String actionPath,
String searchDomainName,
org.nhindirect.config.store.EntityStatus searchStatus)
Execute the search and return the results
|
void |
setCertificateService(org.nhind.config.rest.CertificateService certService) |
void |
setCertPolicyService(org.nhind.config.rest.CertPolicyService policyService) |
void |
setDNSService(org.nhind.config.rest.DNSService dnsService) |
void |
setDomainService(org.nhind.config.rest.DomainService domainService) |
void |
setSettingsService(org.nhind.config.rest.SettingService settingsService) |
void |
setTrustBundleService(org.nhind.config.rest.TrustBundleService bundleService) |
@Autowired public void setTrustBundleService(org.nhind.config.rest.TrustBundleService bundleService)
@Autowired public void setCertificateService(org.nhind.config.rest.CertificateService certService)
@Autowired public void setDNSService(org.nhind.config.rest.DNSService dnsService)
@Autowired public void setSettingsService(org.nhind.config.rest.SettingService settingsService)
@Autowired public void setCertPolicyService(org.nhind.config.rest.CertPolicyService policyService)
@Autowired public void setDomainService(org.nhind.config.rest.DomainService domainService)
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(value="/search",
method=GET)
public org.springframework.web.servlet.ModelAndView search(@RequestHeader(value="X-Requested-With",required=false)
String requestedWith,
javax.servlet.http.HttpSession session,
@ModelAttribute
SimpleForm simpleForm,
org.springframework.ui.Model model,
@RequestParam(value="submitType")
String actionPath,
@RequestParam(value="domainName",required=false)
String searchDomainName,
@RequestParam(value="status",required=false)
org.nhindirect.config.store.EntityStatus searchStatus)
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(method=GET)
public org.springframework.web.servlet.ModelAndView display(@RequestHeader(value="X-Requested-With",required=false)
String requestedWith,
javax.servlet.http.HttpSession session,
@ModelAttribute
SimpleForm simpleForm,
org.springframework.ui.Model model)
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(value="/new",
method=GET)
public org.springframework.web.servlet.ModelAndView newDomain(@RequestHeader(value="X-Requested-With",required=false)
String requestedWith,
javax.servlet.http.HttpSession session,
org.springframework.ui.Model model)
requestedWith - session - model - public void refreshModelFromService(org.springframework.ui.Model model)
@ExceptionHandler(value=java.io.IOException.class) public String handleIOException(IOException ex, javax.servlet.http.HttpServletRequest request)
ex - request - public static String getThumbPrint(X509Certificate cert) throws NoSuchAlgorithmException, CertificateEncodingException
public static String hexify(byte[] bytes)
Copyright © 2021. All rights reserved.