本文整理了Java中org.eclipse.jetty.server.Dispatcher.error()
方法的一些代码示例,展示了Dispatcher.error()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Dispatcher.error()
方法的具体详情如下:
包路径:org.eclipse.jetty.server.Dispatcher
类名称:Dispatcher
方法名:error
暂无
代码示例来源:origin: com.github.tomakehurst/wiremock-jre8
@Override
public void handle(String target, final Request baseRequest, final HttpServletRequest request, HttpServletResponse response) throws IOException {
if (response.getStatus() == 404) {
ServletContext adminContext = request.getServletContext().getContext("/__admin");
Dispatcher requestDispatcher = (Dispatcher) adminContext.getRequestDispatcher("/not-matched");
try {
requestDispatcher.error(request, response);
} catch (ServletException e) {
throwUnchecked(e);
}
} else {
DEFAULT_HANDLER.handle(target, baseRequest, request, response);
}
}
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
dispatcher.error(request, response);
return;
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
dispatcher.error(request, response);
return;
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp
dispatcher.error(request, response);
return;
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus
dispatcher.error(request, response);
return;
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
dispatcher.error(request, response);
return;
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server
dispatcher.error(request, response);
return;
代码示例来源:origin: Nextdoor/bender
dispatcher.error(request, response);
return;
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jetty.server
dispatcher.error(request, response);
return;
代码示例来源:origin: jenkinsci/winstone
if(dispatcher!=null)
dispatcher.error(request, response);
return;
内容来源于网络,如有侵权,请联系作者删除!