public abstract class ApiController extends Object
| Modifier and Type | Field and Description |
|---|---|
protected javax.persistence.EntityManager |
entityManager |
protected org.egov.infra.filestore.service.FileStoreService |
fileStoreService |
protected static org.slf4j.Logger |
Log |
| Constructor and Description |
|---|
ApiController() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<String> |
apiExceptionHandler(Exception ex) |
org.springframework.http.ResponseEntity<String> |
apiExceptionHandler(org.springframework.http.converter.HttpMessageNotReadableException ex) |
org.springframework.http.ResponseEntity<String> |
apiExceptionHandler(org.springframework.web.bind.MethodArgumentNotValidException ex) |
org.springframework.http.ResponseEntity<String> |
apiExceptionHandler(org.springframework.web.bind.MissingServletRequestParameterException ex) |
String |
getMessage(String key) |
ApiResponse |
getResponseHandler() |
protected static final org.slf4j.Logger Log
protected javax.persistence.EntityManager entityManager
@Autowired @Qualifier(value="fileStoreService") protected org.egov.infra.filestore.service.FileStoreService fileStoreService
public ApiResponse getResponseHandler()
@ExceptionHandler(value=org.springframework.http.converter.HttpMessageNotReadableException.class) public org.springframework.http.ResponseEntity<String> apiExceptionHandler(org.springframework.http.converter.HttpMessageNotReadableException ex)
@ExceptionHandler(value=org.springframework.web.bind.MissingServletRequestParameterException.class) public org.springframework.http.ResponseEntity<String> apiExceptionHandler(org.springframework.web.bind.MissingServletRequestParameterException ex)
@ExceptionHandler(value=java.lang.Exception.class) public org.springframework.http.ResponseEntity<String> apiExceptionHandler(Exception ex)
@ExceptionHandler(value=org.springframework.web.bind.MethodArgumentNotValidException.class) public org.springframework.http.ResponseEntity<String> apiExceptionHandler(org.springframework.web.bind.MethodArgumentNotValidException ex)
Copyright © 2015–2017 eGovernments Foundation. All rights reserved.