本文整理了Java中com.sun.jersey.spi.container.WebApplication.getResponseListener()
方法的一些代码示例,展示了WebApplication.getResponseListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebApplication.getResponseListener()
方法的具体详情如下:
包路径:com.sun.jersey.spi.container.WebApplication
类名称:WebApplication
方法名:getResponseListener
[英]Get an instance of ResponseListener that should be used to monitor request processing.
[中]获取应用于监视请求处理的ResponseListener实例。
代码示例来源:origin: com.sun.jersey/jersey-server
/**
* Map a web application exception to a response.
*
* @param e the web application exception.
*/
public void mapWebApplicationException(WebApplicationException e) {
if (e.getResponse().getEntity() != null) {
wa.getResponseListener().onError(
Thread.currentThread().getId(),
e
);
onException(e, e.getResponse(), false);
} else {
if (!mapException(e)) {
onException(e, e.getResponse(), false);
}
}
}
代码示例来源:origin: com.sun.jersey/jersey-server
ExceptionMapper em = wa.getExceptionMapperContext().find(e.getClass());
if (em == null) {
wa.getResponseListener().onError(
Thread.currentThread().getId(),
wa.getResponseListener().onMappedException(
Thread.currentThread().getId(),
e,
代码示例来源:origin: com.sun.jersey/jersey-bundle
/**
* Map a web application exception to a response.
*
* @param e the web application exception.
*/
public void mapWebApplicationException(WebApplicationException e) {
if (e.getResponse().getEntity() != null) {
wa.getResponseListener().onError(
Thread.currentThread().getId(),
e
);
onException(e, e.getResponse(), false);
} else {
if (!mapException(e)) {
onException(e, e.getResponse(), false);
}
}
}
代码示例来源:origin: jersey/jersey-1.x
/**
* Map a web application exception to a response.
*
* @param e the web application exception.
*/
public void mapWebApplicationException(WebApplicationException e) {
if (e.getResponse().getEntity() != null) {
wa.getResponseListener().onError(
Thread.currentThread().getId(),
e
);
onException(e, e.getResponse(), false);
} else {
if (!mapException(e)) {
onException(e, e.getResponse(), false);
}
}
}
代码示例来源:origin: com.sun.jersey/jersey-bundle
ExceptionMapper em = wa.getExceptionMapperContext().find(e.getClass());
if (em == null) {
wa.getResponseListener().onError(
Thread.currentThread().getId(),
wa.getResponseListener().onMappedException(
Thread.currentThread().getId(),
e,
代码示例来源:origin: jersey/jersey-1.x
ExceptionMapper em = wa.getExceptionMapperContext().find(e.getClass());
if (em == null) {
wa.getResponseListener().onError(
Thread.currentThread().getId(),
wa.getResponseListener().onMappedException(
Thread.currentThread().getId(),
e,
内容来源于网络,如有侵权,请联系作者删除!