public class AbstractNcssController extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
servletCachePath |
protected static String |
servletPath |
| Constructor and Description |
|---|
AbstractNcssController() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getDatasetPath(javax.servlet.http.HttpServletRequest req) |
static String |
getDatasetPath(String path) |
static String |
getNCSSServletPath() |
static String |
getServletCachePath() |
void |
handle(FileNotFoundException e) |
void |
handle(NcssException e) |
void |
handle(Throwable t) |
void |
handle(UnsupportedOperationException e) |
protected void |
handleValidationErrorMessage(javax.servlet.http.HttpServletResponse response,
int status,
String errorMessage) |
protected void |
handleValidationErrorsResponse(javax.servlet.http.HttpServletResponse response,
int status,
org.springframework.validation.BindingResult validationResult) |
protected static final String servletPath
protected static final String servletCachePath
protected void handleValidationErrorsResponse(javax.servlet.http.HttpServletResponse response,
int status,
org.springframework.validation.BindingResult validationResult)
protected void handleValidationErrorMessage(javax.servlet.http.HttpServletResponse response,
int status,
String errorMessage)
@ResponseStatus(value=BAD_REQUEST) @ExceptionHandler(value=NcssException.class) public void handle(NcssException e)
@ResponseStatus(value=NOT_FOUND,
reason="Unknown Dataset")
@ExceptionHandler(value=java.io.FileNotFoundException.class)
public void handle(FileNotFoundException e)
@ResponseStatus(value=BAD_REQUEST) @ExceptionHandler(value=java.lang.UnsupportedOperationException.class) public void handle(UnsupportedOperationException e)
@ResponseStatus(value=INTERNAL_SERVER_ERROR) @ExceptionHandler(value=java.lang.Throwable.class) public void handle(Throwable t)
public static String getNCSSServletPath()
public static String getServletCachePath()
public static String getDatasetPath(javax.servlet.http.HttpServletRequest req)
Copyright © 1999-2015 UCAR/Unidata. All Rights Reserved.