@RestController @Controller public class SWIDValController extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
MODEL_KEY_ASSESSMENT_RESULT |
static String |
MODEL_KEY_FILENAME |
| Constructor and Description |
|---|
SWIDValController() |
| Modifier and Type | Method and Description |
|---|---|
void |
handleError(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Exception ex) |
void |
validate(javax.servlet.http.HttpServletRequest requestEntity,
javax.servlet.http.HttpServletResponse response) |
org.springframework.web.servlet.ModelAndView |
validateForm(org.springframework.web.multipart.MultipartFile file,
String tagTypeParam) |
public static final String MODEL_KEY_ASSESSMENT_RESULT
public static final String MODEL_KEY_FILENAME
@RequestMapping(name="/validate",
method=POST)
public void validate(javax.servlet.http.HttpServletRequest requestEntity,
javax.servlet.http.HttpServletResponse response)
throws gov.nist.secauto.decima.core.assessment.AssessmentException,
gov.nist.secauto.decima.core.document.DocumentException,
IOException,
TransformerException,
URISyntaxException
gov.nist.secauto.decima.core.assessment.AssessmentExceptiongov.nist.secauto.decima.core.document.DocumentExceptionIOExceptionTransformerExceptionURISyntaxException@RequestMapping(value="/validate-form")
public org.springframework.web.servlet.ModelAndView validateForm(@RequestParam(value="file")
org.springframework.web.multipart.MultipartFile file,
@RequestParam(value="tag-type")
String tagTypeParam)
throws gov.nist.secauto.decima.core.assessment.AssessmentException,
UnrecognizedContentException,
gov.nist.secauto.decima.core.document.DocumentException,
IOException
gov.nist.secauto.decima.core.assessment.AssessmentExceptionUnrecognizedContentExceptiongov.nist.secauto.decima.core.document.DocumentExceptionIOException@ExceptionHandler(value=java.lang.Exception.class) public void handleError(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Exception ex) throws IOException
IOExceptionCopyright © 2020 National Institute of Standards and Technology. All rights reserved.