本文整理了Java中org.eclipse.jetty.server.Handler.start()
方法的一些代码示例,展示了Handler.start()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Handler.start()
方法的具体详情如下:
包路径:org.eclipse.jetty.server.Handler
类名称:Handler
方法名:start
暂无
代码示例来源:origin: dropwizard/dropwizard
@Override
protected void doStart() throws Exception {
super.doStart();
for (String key : handlers.keySet()) {
handlers.get(key).start();
}
}
代码示例来源:origin: igniterealtime/Openfire
/**
* Adds a Jetty handler to be added to the embedded web server that is used to expose BOSH (HTTP-bind)
* functionality.
*
* @param handler The handler (cannot be null).
*/
public void addJettyHandler( Handler handler )
{
if ( handler == null )
{
throw new IllegalArgumentException( "Argument 'handler' cannot be null." );
}
extensionHandlers.addHandler( handler );
if ( !handler.isStarted() && extensionHandlers.isStarted() )
{
try
{
handler.start();
}
catch ( Exception e )
{
Log.warn( "Unable to start handler {}", handler, e );
}
}
}
代码示例来源:origin: org.apache.calcite.avatica/avatica-server
@Override public void start() throws Exception {
handler.start();
}
代码示例来源:origin: apache/calcite-avatica
@Override public void start() throws Exception {
handler.start();
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
@Override
protected void doStart() throws Exception
{
if (_handler!=null)
_handler.start();
super.doStart();
}
代码示例来源:origin: org.eclipse.jetty/server
@Override
protected void doStart() throws Exception
{
if (_handler!=null)
_handler.start();
super.doStart();
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp
@Override
protected void doStart() throws Exception
{
if (_handler!=null)
_handler.start();
super.doStart();
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server
@Override
protected void doStart() throws Exception
{
if (_handler!=null)
_handler.start();
super.doStart();
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus
@Override
protected void doStart() throws Exception
{
if (_handler!=null)
_handler.start();
super.doStart();
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus
public void run()
{
ClassLoader orig = Thread.currentThread().getContextClassLoader();
try
{
Thread.currentThread().setContextClassLoader(loader);
_handlers[h].start();
}
catch(Throwable e)
{
mex.add(e);
}
finally
{
Thread.currentThread().setContextClassLoader(orig);
latch.countDown();
}
}
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server
public void run()
{
ClassLoader orig = Thread.currentThread().getContextClassLoader();
try
{
Thread.currentThread().setContextClassLoader(loader);
_handlers[h].start();
}
catch(Throwable e)
{
mex.add(e);
}
finally
{
Thread.currentThread().setContextClassLoader(orig);
latch.countDown();
}
}
}
代码示例来源:origin: org.eclipse.jetty/server
public void run()
{
ClassLoader orig = Thread.currentThread().getContextClassLoader();
try
{
Thread.currentThread().setContextClassLoader(loader);
_handlers[h].start();
}
catch(Throwable e)
{
mex.add(e);
}
finally
{
Thread.currentThread().setContextClassLoader(orig);
latch.countDown();
}
}
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
public void run()
{
ClassLoader orig = Thread.currentThread().getContextClassLoader();
try
{
Thread.currentThread().setContextClassLoader(loader);
_handlers[h].start();
}
catch(Throwable e)
{
mex.add(e);
}
finally
{
Thread.currentThread().setContextClassLoader(orig);
latch.countDown();
}
}
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp
public void run()
{
ClassLoader orig = Thread.currentThread().getContextClassLoader();
try
{
Thread.currentThread().setContextClassLoader(loader);
_handlers[h].start();
}
catch(Throwable e)
{
mex.add(e);
}
finally
{
Thread.currentThread().setContextClassLoader(orig);
latch.countDown();
}
}
}
代码示例来源:origin: org.igniterealtime.openfire/xmppserver
/**
* Adds a Jetty handler to be added to the embedded web server that is used to expose BOSH (HTTP-bind)
* functionality.
*
* @param handler The handler (cannot be null).
*/
public void addJettyHandler( Handler handler )
{
if ( handler == null )
{
throw new IllegalArgumentException( "Argument 'handler' cannot be null." );
}
extensionHandlers.addHandler( handler );
if ( !handler.isStarted() && extensionHandlers.isStarted() )
{
try
{
handler.start();
}
catch ( Exception e )
{
Log.warn( "Unable to start handler {}", handler, e );
}
}
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server
try{_handlers[i].start();}
catch(Throwable e){mex.add(e);}
代码示例来源:origin: org.eclipse.jetty/server
try{_handlers[i].start();}
catch(Throwable e){mex.add(e);}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus
try{_handlers[i].start();}
catch(Throwable e){mex.add(e);}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
try{_handlers[i].start();}
catch(Throwable e){mex.add(e);}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp
try{_handlers[i].start();}
catch(Throwable e){mex.add(e);}
内容来源于网络,如有侵权,请联系作者删除!