本文整理了Java中org.eclipse.jetty.server.Response.getHttpChannel
方法的一些代码示例,展示了Response.getHttpChannel
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Response.getHttpChannel
方法的具体详情如下:
包路径:org.eclipse.jetty.server.Response
类名称:Response
方法名:getHttpChannel
暂无
代码示例来源:origin: jooby-project/jooby
@Override
protected void handshake(final Runnable handler) throws Exception {
/** Infinite timeout because the continuation is never resumed but only completed on close. */
req.getAsyncContext().setTimeout(0L);
/** Server sent events headers. */
rsp.setStatus(HttpServletResponse.SC_OK);
rsp.setHeader("Connection", "Close");
rsp.setContentType("text/event-stream; charset=utf-8");
rsp.flushBuffer();
HttpChannel channel = rsp.getHttpChannel();
Connector connector = channel.getConnector();
Executor executor = connector.getExecutor();
executor.execute(handler);
}
代码示例来源:origin: jenkinsci/winstone
if (getHttpChannel().getHttpConfiguration().isCookieCompliance(CookieCompliance.RFC2965))
addSetRFC2965Cookie(cookie.getName(),
cookie.getValue(),
代码示例来源:origin: jenkinsci/winstone
buf.append(status);
long written = response.getHttpChannel().getBytesWritten();
if (written >= 0)
代码示例来源:origin: com.yahoo.athenz/athenz-jetty-container
buf.append(' ');
logLength(buf, response.getHttpChannel().getBytesWritten());
buf.append(' ');
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jetty.server
buf.append(status);
long written = response.getHttpChannel().getBytesWritten();
if (written >= 0)
代码示例来源:origin: org.jooby/jooby-jetty
@Override
protected void handshake(final Runnable handler) throws Exception {
/** Infinite timeout because the continuation is never resumed but only completed on close. */
req.getAsyncContext().setTimeout(0L);
/** Server sent events headers. */
rsp.setStatus(HttpServletResponse.SC_OK);
rsp.setHeader("Connection", "Close");
rsp.setContentType("text/event-stream; charset=utf-8");
rsp.flushBuffer();
HttpChannel channel = rsp.getHttpChannel();
Connector connector = channel.getConnector();
Executor executor = connector.getExecutor();
executor.execute(handler);
}
代码示例来源:origin: jenkinsci/winstone
else
Request request = getHttpChannel().getRequest();
HttpSession session = request.getSession(false);
if (session!=null && session.isNew())
代码示例来源:origin: theonedev/onedev
else
Request request = getHttpChannel().getRequest();
HttpSession session = request.getSession(false);
if (session!=null && session.isNew())
代码示例来源:origin: com.yahoo.vespa/jdisc_http_service
accessLogEntry.setTimeStamp(startTime);
accessLogEntry.setDurationBetweenRequestResponse(endTime - startTime);
accessLogEntry.setReturnedContentSize(response.getHttpChannel().getBytesWritten());
accessLogEntry.setStatusCode(response.getCommittedMetaData().getStatus());
代码示例来源:origin: jenkinsci/winstone
public void addCookie(HttpCookie cookie)
{
if (StringUtil.isBlank(cookie.getName()))
{
throw new IllegalArgumentException("Cookie.name cannot be blank/null");
}
if (getHttpChannel().getHttpConfiguration().isCookieCompliance(CookieCompliance.RFC2965))
addSetRFC2965Cookie(
cookie.getName(),
cookie.getValue(),
cookie.getDomain(),
cookie.getPath(),
cookie.getMaxAge(),
cookie.getComment(),
cookie.isSecure(),
cookie.isHttpOnly(),
cookie.getVersion());
else
addSetRFC6265Cookie(
cookie.getName(),
cookie.getValue(),
cookie.getDomain(),
cookie.getPath(),
cookie.getMaxAge(),
cookie.isSecure(),
cookie.isHttpOnly());
}
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jetty.server
writer.write("</p>\n<hr />");
getHttpChannel().getHttpConfiguration().writePoweredBy(writer,null,"<hr/>");
writer.write("\n</body>\n</html>\n");
代码示例来源:origin: theonedev/onedev
writer.write("</p>\n<hr />");
getHttpChannel().getHttpConfiguration().writePoweredBy(writer,null,"<hr/>");
writer.write("\n</body>\n</html>\n");
内容来源于网络,如有侵权,请联系作者删除!