本文整理了Java中org.jboss.resteasy.spi.HttpResponse.reset()
方法的一些代码示例,展示了HttpResponse.reset()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HttpResponse.reset()
方法的具体详情如下:
包路径:org.jboss.resteasy.spi.HttpResponse
类名称:HttpResponse
方法名:reset
[英]reset status and headers. Will fail if response is committed
[中]重置状态和标题。如果提交响应,则将失败
代码示例来源:origin: resteasy/Resteasy
@Override
public void onTimeout(AsyncEvent asyncEvent) throws IOException
{
LogMessages.LOGGER.debug(Messages.MESSAGES.onTimeout());
synchronized (responseLock)
{
if (done || cancelled) return;
response.reset();
handleTimeout();
}
}
代码示例来源:origin: resteasy/Resteasy
public void unhandledAsynchronousException(HttpResponse response, Throwable ex) {
LogMessages.LOGGER.unhandledAsynchronousException(ex);
// unhandled exceptions need to be processed as they can't be thrown back to the servlet container
if (!response.isCommitted()) {
try
{
response.reset();
response.sendError(500);
}
catch (IOException e)
{
}
}
}
代码示例来源:origin: org.jboss.resteasy/resteasy-jaxrs-20
@Override
public void onTimeout(AsyncEvent asyncEvent) throws IOException
{
LogMessages.LOGGER.debug(Messages.MESSAGES.onTimeout());
synchronized (responseLock)
{
if (done || cancelled) return;
response.reset();
handleTimeout();
}
}
代码示例来源:origin: org.jboss.resteasy/resteasy-core
@Override
public void onTimeout(AsyncEvent asyncEvent) throws IOException
{
LogMessages.LOGGER.debug(Messages.MESSAGES.onTimeout());
synchronized (responseLock)
{
if (done || cancelled) return;
response.reset();
handleTimeout();
}
}
代码示例来源:origin: org.jboss.resteasy/async-http-servlet-3.0
@Override
public void onTimeout(AsyncEvent asyncEvent) throws IOException
{
LogMessages.LOGGER.debug(Messages.MESSAGES.onTimeout());
synchronized (responseLock)
{
if (done || cancelled) return;
response.reset();
handleTimeout();
}
}
代码示例来源:origin: org.jboss.resteasy/resteasy-jaxrs-20
public void unhandledAsynchronousException(HttpResponse response, Throwable ex) {
LogMessages.LOGGER.unhandledAsynchronousException(ex);
// unhandled exceptions need to be processed as they can't be thrown back to the servlet container
if (!response.isCommitted()) {
try
{
response.reset();
response.sendError(500);
}
catch (IOException e)
{
}
}
}
代码示例来源:origin: org.jboss.resteasy/resteasy-core
public void unhandledAsynchronousException(HttpResponse response, Throwable ex) {
LogMessages.LOGGER.unhandledAsynchronousException(ex);
// unhandled exceptions need to be processed as they can't be thrown back to the servlet container
if (!response.isCommitted()) {
try
{
response.reset();
response.sendError(500);
}
catch (IOException e)
{
}
}
}
内容来源于网络,如有侵权,请联系作者删除!