org.nhindirect.config.ui
Class CertificatesController

java.lang.Object
  extended by org.nhindirect.config.ui.CertificatesController

@Controller
@RequestMapping(value="/certificates")
public class CertificatesController
extends java.lang.Object


Constructor Summary
CertificatesController()
           
 
Method Summary
 org.springframework.web.servlet.ModelAndView addCertificate(java.lang.String requestedWith, javax.servlet.http.HttpSession session, CertificateForm certificateForm, org.springframework.ui.Model model, java.lang.String actionPath)
           
 java.lang.String handleIOException(java.io.IOException ex, javax.servlet.http.HttpServletRequest request)
          Handle exceptions as gracefully as possible
 org.springframework.web.servlet.ModelAndView removeCertificates(java.lang.String requestedWith, javax.servlet.http.HttpSession session, CertificateForm simpleForm, org.springframework.ui.Model model, java.lang.String actionPath)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CertificatesController

public CertificatesController()
Method Detail

addCertificate

@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(value="/addcertificate",
                method=POST)
public org.springframework.web.servlet.ModelAndView addCertificate(@RequestHeader(value="X-Requested-With",required=false)
                                                                                               java.lang.String requestedWith,
                                                                                               javax.servlet.http.HttpSession session,
                                                                                               @ModelAttribute
                                                                                               CertificateForm certificateForm,
                                                                                               org.springframework.ui.Model model,
                                                                                               @RequestParam(value="submitType")
                                                                                               java.lang.String actionPath)

removeCertificates

@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(value="/removecertifcates",
                method=POST)
public org.springframework.web.servlet.ModelAndView removeCertificates(@RequestHeader(value="X-Requested-With",required=false)
                                                                                                   java.lang.String requestedWith,
                                                                                                   javax.servlet.http.HttpSession session,
                                                                                                   @ModelAttribute
                                                                                                   CertificateForm simpleForm,
                                                                                                   org.springframework.ui.Model model,
                                                                                                   @RequestParam(value="submitType")
                                                                                                   java.lang.String actionPath)

handleIOException

@ExceptionHandler(value=java.io.IOException.class)
public java.lang.String handleIOException(java.io.IOException ex,
                                                                                    javax.servlet.http.HttpServletRequest request)
Handle exceptions as gracefully as possible

Parameters:
ex -
request -
Returns:


Copyright © 2010. All Rights Reserved.