本文整理了Java中org.eclipse.jetty.server.Handler.setServer()
方法的一些代码示例,展示了Handler.setServer()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Handler.setServer()
方法的具体详情如下:
包路径:org.eclipse.jetty.server.Handler
类名称:Handler
方法名:setServer
暂无
代码示例来源:origin: gocd/gocd
Answer<Void> setHandlerMock = invocation -> {
serverLevelHandler = (Handler) invocation.getArguments()[0];
serverLevelHandler.setServer((Server) invocation.getMock());
return null;
};
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
@Override
public void setServer(Server server)
{
super.setServer(server);
Handler[] handlers=getHandlers();
if (handlers!=null)
for (Handler h : handlers)
h.setServer(server);
}
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
@Override
public void setServer(Server server)
{
super.setServer(server);
Handler[] handlers=getHandlers();
if (handlers!=null)
for (Handler h : handlers)
h.setServer(server);
}
代码示例来源:origin: Nextdoor/bender
@Override
public void setServer(Server server)
{
super.setServer(server);
Handler[] handlers=getHandlers();
if (handlers!=null)
for (Handler h : handlers)
h.setServer(server);
}
代码示例来源:origin: Nextdoor/bender
@Override
public void setServer(Server server)
{
if (isRunning())
throw new IllegalStateException(RUNNING);
super.setServer(server);
Handler h = getHandler();
if (h != null)
h.setServer(server);
}
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
/**
* @param handler Set the {@link Handler} which should be wrapped.
*/
public void setHandler(Handler handler)
{
if (isStarted())
throw new IllegalStateException(STARTED);
if (handler!=null)
handler.setServer(getServer());
updateBean(_handler,handler);
_handler=handler;
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
/**
* @param handler Set the {@link Handler} which should be wrapped.
*/
public void setHandler(Handler handler)
{
if (isStarted())
throw new IllegalStateException(STARTED);
if (handler!=null)
handler.setServer(getServer());
updateBean(_handler,handler);
_handler=handler;
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
@Override
public void setServer(Server server)
{
if (isRunning())
throw new IllegalStateException(RUNNING);
super.setServer(server);
Handler h = getHandler();
if (h != null)
h.setServer(server);
}
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
@Override
public void setServer(Server server)
{
if (isRunning())
throw new IllegalStateException(RUNNING);
super.setServer(server);
Handler h = getHandler();
if (h != null)
h.setServer(server);
}
代码示例来源:origin: Nextdoor/bender
/**
* @param handler Set the {@link Handler} which should be wrapped.
*/
public void setHandler(Handler handler)
{
if (isStarted())
throw new IllegalStateException(STARTED);
if (handler!=null)
handler.setServer(getServer());
Handler old=_handler;
_handler=handler;
updateBean(old,_handler);
}
代码示例来源:origin: Nextdoor/bender
@Override
public void setServer(Server server)
{
if (server==getServer())
return;
if (isStarted())
throw new IllegalStateException(STARTED);
super.setServer(server);
Handler h=getHandler();
if (h!=null)
h.setServer(server);
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
@Override
public void setServer(Server server)
{
if (server==getServer())
return;
if (isStarted())
throw new IllegalStateException(STARTED);
super.setServer(server);
Handler h=getHandler();
if (h!=null)
h.setServer(server);
}
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
@Override
public void setServer(Server server)
{
if (server==getServer())
return;
if (isStarted())
throw new IllegalStateException(STARTED);
super.setServer(server);
Handler h=getHandler();
if (h!=null)
h.setServer(server);
}
代码示例来源: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: org.eclipse.jetty.aggregate/jetty-webapp
@Override
public void setServer(Server server)
{
if (isStarted())
throw new IllegalStateException(STARTED);
Server old_server=getServer();
super.setServer(server);
Handler[] h=getHandlers();
for (int i=0;h!=null && i<h.length;i++)
h[i].setServer(server);
if (server!=null && server!=old_server)
server.getContainer().update(this, null,_handlers, "handler");
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
@Override
public void setServer(Server server)
{
if (isStarted())
throw new IllegalStateException(STARTED);
Server old_server=getServer();
super.setServer(server);
Handler[] h=getHandlers();
for (int i=0;h!=null && i<h.length;i++)
h[i].setServer(server);
if (server!=null && server!=old_server)
server.getContainer().update(this, null,_handlers, "handler");
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server
@Override
public void setServer(Server server)
{
if (isStarted())
throw new IllegalStateException(STARTED);
Server old_server=getServer();
super.setServer(server);
Handler[] h=getHandlers();
for (int i=0;h!=null && i<h.length;i++)
h[i].setServer(server);
if (server!=null && server!=old_server)
server.getContainer().update(this, null,_handlers, "handler");
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus
@Override
public void setServer(Server server)
{
if (isStarted())
throw new IllegalStateException(STARTED);
Server old_server=getServer();
super.setServer(server);
Handler[] h=getHandlers();
for (int i=0;h!=null && i<h.length;i++)
h[i].setServer(server);
if (server!=null && server!=old_server)
server.getContainer().update(this, null,_handlers, "handler");
}
代码示例来源:origin: org.eclipse.jetty/server
@Override
public void setServer(Server server)
{
if (isStarted())
throw new IllegalStateException(STARTED);
Server old_server=getServer();
super.setServer(server);
Handler[] h=getHandlers();
for (int i=0;h!=null && i<h.length;i++)
h[i].setServer(server);
if (server!=null && server!=old_server)
server.getContainer().update(this, null,_handlers, "handler");
}
内容来源于网络,如有侵权,请联系作者删除!