@Controller @RequestMapping(value="/domain") public class DomainController extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DomainController.CertContainer |
| Constructor and Description |
|---|
DomainController() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.web.servlet.ModelAndView |
addAddress(String requestedWith,
javax.servlet.http.HttpSession session,
AddressForm addressForm,
org.springframework.ui.Model model,
String actionPath) |
org.springframework.web.servlet.ModelAndView |
addAnchor(String requestedWith,
javax.servlet.http.HttpSession session,
AnchorForm anchorForm,
org.springframework.ui.Model model,
String actionPath,
String id) |
org.springframework.web.servlet.ModelAndView |
addBundle(String requestedWith,
javax.servlet.http.HttpSession session,
AnchorForm anchorForm,
org.springframework.ui.Model model,
String bundles) |
org.springframework.web.servlet.ModelAndView |
addCertificate(String requestedWith,
javax.servlet.http.HttpSession session,
CertificateForm certificateForm,
org.springframework.ui.Model model,
String actionPath) |
String |
handleIOException(IOException ex,
javax.servlet.http.HttpServletRequest request)
Handle exceptions as gracefully as possible
|
org.springframework.web.servlet.ModelAndView |
onSubmitAndView(Object command) |
org.springframework.web.servlet.ModelAndView |
removeAddresses(String requestedWith,
javax.servlet.http.HttpSession session,
SimpleForm simpleForm,
org.springframework.ui.Model model,
String actionPath) |
org.springframework.web.servlet.ModelAndView |
removeAnchors(String requestedWith,
javax.servlet.http.HttpSession session,
AnchorForm simpleForm,
org.springframework.ui.Model model,
String actionPath) |
org.springframework.web.servlet.ModelAndView |
removeBundles(String requestedWith,
javax.servlet.http.HttpSession session,
AnchorForm anchorForm,
org.springframework.ui.Model model,
String bundles) |
org.springframework.web.servlet.ModelAndView |
removeCertificates(String requestedWith,
javax.servlet.http.HttpSession session,
CertificateForm simpleForm,
org.springframework.ui.Model model,
String actionPath) |
org.springframework.web.servlet.ModelAndView |
removeDomain(String requestedWith,
javax.servlet.http.HttpSession session,
SimpleForm simpleForm,
org.springframework.ui.Model model,
String actionPath)
removeDomain
|
org.springframework.web.servlet.ModelAndView |
saveDomain(String requestedWith,
javax.servlet.http.HttpSession session,
String actionPath,
DomainForm form,
org.springframework.ui.Model model)
Execute the save and return the results
|
void |
setAdressService(org.nhind.config.rest.AddressService addressService) |
void |
setAnchorService(org.nhind.config.rest.AnchorService anchorService) |
void |
setCertificateService(org.nhind.config.rest.CertificateService certService) |
void |
setDomainService(org.nhind.config.rest.DomainService domainService) |
void |
setTrustBundleService(org.nhind.config.rest.TrustBundleService bundleService) |
void |
simpleForm(org.springframework.ui.Model model) |
DomainController.CertContainer |
toCertContainer(byte[] data) |
org.springframework.web.servlet.ModelAndView |
updateBundleDirection(String requestedWith,
String domainName,
String bundle,
String direction,
String directionValue,
javax.servlet.http.HttpSession session,
org.springframework.ui.Model model) |
org.springframework.web.servlet.ModelAndView |
viewDomain(String requestedWith,
String domainName,
javax.servlet.http.HttpSession session,
org.springframework.ui.Model model)
Display a Domain
|
@Autowired public void setCertificateService(org.nhind.config.rest.CertificateService certService)
@Autowired public void setDomainService(org.nhind.config.rest.DomainService domainService)
@Autowired public void setTrustBundleService(org.nhind.config.rest.TrustBundleService bundleService)
@Autowired public void setAnchorService(org.nhind.config.rest.AnchorService anchorService)
@Autowired public void setAdressService(org.nhind.config.rest.AddressService addressService)
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(value="/addBundle",
method=POST)
public org.springframework.web.servlet.ModelAndView addBundle(@RequestHeader(value="X-Requested-With",required=false)
String requestedWith,
javax.servlet.http.HttpSession session,
@ModelAttribute
AnchorForm anchorForm,
org.springframework.ui.Model model,
@RequestParam(value="bundles")
String bundles)
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(value="/removeBundles",
method=POST)
public org.springframework.web.servlet.ModelAndView removeBundles(@RequestHeader(value="X-Requested-With",required=false)
String requestedWith,
javax.servlet.http.HttpSession session,
@ModelAttribute
AnchorForm anchorForm,
org.springframework.ui.Model model,
@RequestParam(value="bundles")
String bundles)
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(value="/addanchor",
method=POST)
public org.springframework.web.servlet.ModelAndView addAnchor(@RequestHeader(value="X-Requested-With",required=false)
String requestedWith,
javax.servlet.http.HttpSession session,
@ModelAttribute
AnchorForm anchorForm,
org.springframework.ui.Model model,
@RequestParam(value="submitType")
String actionPath,
@RequestParam(value="id")
String id)
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(value="/removeanchors",
method=POST)
public org.springframework.web.servlet.ModelAndView removeAnchors(@RequestHeader(value="X-Requested-With",required=false)
String requestedWith,
javax.servlet.http.HttpSession session,
@ModelAttribute
AnchorForm simpleForm,
org.springframework.ui.Model model,
@RequestParam(value="submitType")
String actionPath)
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(value="/addcertificate",
method=POST)
public org.springframework.web.servlet.ModelAndView addCertificate(@RequestHeader(value="X-Requested-With",required=false)
String requestedWith,
javax.servlet.http.HttpSession session,
@ModelAttribute
CertificateForm certificateForm,
org.springframework.ui.Model model,
@RequestParam(value="submitType")
String actionPath)
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(value="/removecertifcates",
method=POST)
public org.springframework.web.servlet.ModelAndView removeCertificates(@RequestHeader(value="X-Requested-With",required=false)
String requestedWith,
javax.servlet.http.HttpSession session,
@ModelAttribute
CertificateForm simpleForm,
org.springframework.ui.Model model,
@RequestParam(value="submitType")
String actionPath)
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(value="/addaddress",
method=POST)
public org.springframework.web.servlet.ModelAndView addAddress(@RequestHeader(value="X-Requested-With",required=false)
String requestedWith,
javax.servlet.http.HttpSession session,
@ModelAttribute
AddressForm addressForm,
org.springframework.ui.Model model,
@RequestParam(value="submitType")
String actionPath)
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(value="/removeaddresses",
method=POST)
public org.springframework.web.servlet.ModelAndView removeAddresses(@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)
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(value="/remove",
method=POST)
public org.springframework.web.servlet.ModelAndView removeDomain(@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)
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')") @RequestMapping(method=POST) public org.springframework.web.servlet.ModelAndView onSubmitAndView(Object command)
@RequestMapping(value="/simpleForm",
method=GET)
public void simpleForm(org.springframework.ui.Model model)
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(value="/updateBundleDirection",
method=POST)
public org.springframework.web.servlet.ModelAndView updateBundleDirection(@RequestHeader(value="X-Requested-With",required=false)
String requestedWith,
@RequestParam(required=true)
String domainName,
@RequestParam(required=true)
String bundle,
@RequestParam(required=true)
String direction,
@RequestParam(required=true)
String directionValue,
javax.servlet.http.HttpSession session,
org.springframework.ui.Model model)
@RequestMapping(method=GET)
public org.springframework.web.servlet.ModelAndView viewDomain(@RequestHeader(value="X-Requested-With",required=false)
String requestedWith,
@RequestParam(required=false)
String domainName,
javax.servlet.http.HttpSession session,
org.springframework.ui.Model model)
throws CertificateException
CertificateException@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(value="/saveupdate",
method=POST)
public org.springframework.web.servlet.ModelAndView saveDomain(@RequestHeader(value="X-Requested-With",required=false)
String requestedWith,
javax.servlet.http.HttpSession session,
@RequestParam(value="submitType")
String actionPath,
@ModelAttribute(value="domainForm")
DomainForm form,
org.springframework.ui.Model model)
@ExceptionHandler(value=java.io.IOException.class) public String handleIOException(IOException ex, javax.servlet.http.HttpServletRequest request)
ex - request - public DomainController.CertContainer toCertContainer(byte[] data) throws Exception
ExceptionCopyright © 2021. All rights reserved.