This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
k18-ntcs-web-argus-service/src/main/java/com/nis/restful/AppExceptionHandler.java

33 lines
874 B
Java
Raw Normal View History

2017-12-19 14:55:52 +08:00
/**
* @Title: AppExceptionHandler.java
* @Package com.nis.exceptions
* @Description: TODO(用一句话描述该文件做什么)
* @author darnell
* @date 2016年8月24日 上午11:29:42
* @version V1.0
*/
package com.nis.restful;
import javax.servlet.http.HttpServletRequest;
import com.nis.util.Configurations;
/**
* @ClassName: AppExceptionHandler
* @Description: TODO(异常接收)
* @author (darnell)
* @date 2016年8月24日 上午11:29:42
* @version V1.0
*/
public class AppExceptionHandler extends RestServiceExceptionHandler{
@Override
public boolean isRestServiceException(HttpServletRequest request){
String restServicePath = Configurations.getStringProperty("servicePath", "service");
if(request.getServletPath().startsWith(restServicePath)) {
return true;
} else {
return false;
}
}
}