本文整理了Java中org.eclipse.jetty.server.Handler.getServer()
方法的一些代码示例,展示了Handler.getServer()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Handler.getServer()
方法的具体详情如下:
包路径:org.eclipse.jetty.server.Handler
类名称:Handler
方法名:getServer
暂无
代码示例来源:origin: org.apache.calcite.avatica/avatica-server
@Override public Server getServer() {
return handler.getServer();
}
代码示例来源:origin: apache/calcite-avatica
@Override public Server getServer() {
return handler.getServer();
}
代码示例来源:origin: Nextdoor/bender
/**
* @param handlers The handlers to set.
*/
public void setHandlers(Handler[] handlers)
{
if (!_mutableWhenRunning && isStarted())
throw new IllegalStateException(STARTED);
if (handlers!=null)
for (Handler handler:handlers)
if (handler.getServer()!=getServer())
handler.setServer(getServer());
Handler[] old=_handlers;;
_handlers = handlers;
updateBeans(old, handlers);
}
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jetty.server
/**
* @param handlers The handlers to set.
*/
public void setHandlers(Handler[] handlers)
{
if (!_mutableWhenRunning && isStarted())
throw new IllegalStateException(STARTED);
if (handlers!=null)
{
// check for loops
for (Handler handler:handlers)
if (handler == this || (handler instanceof HandlerContainer &&
Arrays.asList(((HandlerContainer)handler).getChildHandlers()).contains(this)))
throw new IllegalStateException("setHandler loop");
// Set server
for (Handler handler:handlers)
if (handler.getServer()!=getServer())
handler.setServer(getServer());
}
Handler[] old=_handlers;;
_handlers = handlers;
updateBeans(old, handlers);
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
/**
* @param handlers The handlers to set.
*/
public void setHandlers(Handler[] handlers)
{
if (!_mutableWhenRunning && isStarted())
throw new IllegalStateException(STARTED);
if (handlers!=null)
for (Handler handler:handlers)
if (handler.getServer()!=getServer())
handler.setServer(getServer());
updateBeans(_handlers, handlers);
_handlers = handlers;
}
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
/**
* @param handlers The handlers to set.
*/
public void setHandlers(Handler[] handlers)
{
if (!_mutableWhenRunning && isStarted())
throw new IllegalStateException(STARTED);
if (handlers!=null)
for (Handler handler:handlers)
if (handler.getServer()!=getServer())
handler.setServer(getServer());
updateBeans(_handlers, handlers);
_handlers = handlers;
}
代码示例来源:origin: jenkinsci/winstone
/**
* @param handlers The handlers to set.
*/
public void setHandlers(Handler[] handlers)
{
if (!_mutableWhenRunning && isStarted())
throw new IllegalStateException(STARTED);
if (handlers!=null)
{
// check for loops
for (Handler handler:handlers)
if (handler == this || (handler instanceof HandlerContainer &&
Arrays.asList(((HandlerContainer)handler).getChildHandlers()).contains(this)))
throw new IllegalStateException("setHandler loop");
// Set server
for (Handler handler:handlers)
if (handler.getServer()!=getServer())
handler.setServer(getServer());
}
Handler[] old=_handlers;;
_handlers = handlers;
updateBeans(old, handlers);
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
for (int i=0;handlers!=null && i<handlers.length;i++)
if (handlers[i].getServer()!=server)
handlers[i].setServer(server);
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus
for (int i=0;handlers!=null && i<handlers.length;i++)
if (handlers[i].getServer()!=server)
handlers[i].setServer(server);
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp
for (int i=0;handlers!=null && i<handlers.length;i++)
if (handlers[i].getServer()!=server)
handlers[i].setServer(server);
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server
for (int i=0;handlers!=null && i<handlers.length;i++)
if (handlers[i].getServer()!=server)
handlers[i].setServer(server);
代码示例来源:origin: org.eclipse.jetty/server
for (int i=0;handlers!=null && i<handlers.length;i++)
if (handlers[i].getServer()!=server)
handlers[i].setServer(server);
内容来源于网络,如有侵权,请联系作者删除!