本文整理了Java中org.eclipse.jetty.server.Server.getBeans()
方法的一些代码示例,展示了Server.getBeans()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Server.getBeans()
方法的具体详情如下:
包路径:org.eclipse.jetty.server.Server
类名称:Server
方法名:getBeans
暂无
代码示例来源:origin: dropwizard/dropwizard
private Collection<SslReload> getReloaders(MutableServletContextHandler handler) {
return handler.getServer().getBeans(SslReload.class);
}
}
代码示例来源:origin: io.dropwizard/dropwizard-core
private Collection<SslReload> getReloaders(MutableServletContextHandler handler) {
return handler.getServer().getBeans(SslReload.class);
}
}
代码示例来源:origin: line/armeria
@Override
protected void configure(ServerBuilder sb) throws Exception {
sb.http(0);
sb.https(0);
sb.tlsSelfSigned();
sb.serviceUnder(
"/jsp/",
new JettyServiceBuilder()
.handler(newWebAppContext())
.configurator(s -> jettyBeans.addAll(s.getBeans()))
.build()
.decorate(LoggingService.newDecorator()));
sb.serviceUnder(
"/default/",
new JettyServiceBuilder().handler(new DefaultHandler()).build());
final ResourceHandler resourceHandler = new ResourceHandler();
resourceHandler.setResourceBase(webAppRoot().getPath());
sb.serviceUnder(
"/resources/",
new JettyServiceBuilder().handler(resourceHandler).build());
}
};
代码示例来源:origin: org.eclipse.jetty/jetty-security
protected LoginService findLoginService() throws Exception
{
Collection<LoginService> list = getServer().getBeans(LoginService.class);
LoginService service = null;
String realm=getRealmName();
if (realm!=null)
{
for (LoginService s : list)
if (s.getName()!=null && s.getName().equals(realm))
{
service=s;
break;
}
}
else if (list.size()==1)
service = list.iterator().next();
return service;
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
/** Find a service Subject.
* If {@link #setServiceSubject(Subject)} has not been used to
* set a subject, then the {@link Server#getBeans(Class)} method is
* used to look for a Subject.
*/
protected Subject findServiceSubject(Server server)
{
if (_serviceSubject!=null)
return _serviceSubject;
List subjects = server.getBeans(Subject.class);
if (subjects.size()>0)
return (Subject)subjects.get(0);
return null;
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
/** Find a service Subject.
* If {@link #setServiceSubject(Subject)} has not been used to
* set a subject, then the {@link Server#getBeans(Class)} method is
* used to look for a Subject.
*/
protected Subject findServiceSubject(Server server)
{
if (_serviceSubject!=null)
return _serviceSubject;
List<Subject> subjects = (List<Subject>)server.getBeans(Subject.class);
if (subjects.size()>0)
return (Subject)subjects.get(0);
return null;
}
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
/** Find a service Subject.
* If {@link #setServiceSubject(Subject)} has not been used to
* set a subject, then the {@link Server#getBeans(Class)} method is
* used to look for a Subject.
*/
protected Subject findServiceSubject(Server server)
{
if (_serviceSubject!=null)
return _serviceSubject;
List<Subject> subjects = (List<Subject>)server.getBeans(Subject.class);
if (subjects.size()>0)
return (Subject)subjects.get(0);
return null;
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
protected LoginService findLoginService()
{
Collection<LoginService> list = getServer().getBeans(LoginService.class);
String realm=getRealmName();
if (realm!=null)
{
for (LoginService service : list)
if (service.getName()!=null && service.getName().equals(realm))
return service;
}
else if (list.size()==1)
return list.iterator().next();
return null;
}
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
protected LoginService findLoginService()
{
Collection<LoginService> list = getServer().getBeans(LoginService.class);
String realm=getRealmName();
if (realm!=null)
{
for (LoginService service : list)
if (service.getName()!=null && service.getName().equals(realm))
return service;
}
else if (list.size()==1)
return list.iterator().next();
return null;
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
protected LoginService findLoginService()
{
List<LoginService> list = getServer().getBeans(LoginService.class);
String realm=getRealmName();
if (realm!=null)
{
for (LoginService service : list)
if (service.getName()!=null && service.getName().equals(realm))
return service;
}
else if (list.size()==1)
return list.get(0);
return null;
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus
protected LoginService findLoginService()
{
List<LoginService> list = getServer().getBeans(LoginService.class);
String realm=getRealmName();
if (realm!=null)
{
for (LoginService service : list)
if (service.getName()!=null && service.getName().equals(realm))
return service;
}
else if (list.size()==1)
return list.get(0);
return null;
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp
protected LoginService findLoginService()
{
List<LoginService> list = getServer().getBeans(LoginService.class);
String realm=getRealmName();
if (realm!=null)
{
for (LoginService service : list)
if (service.getName()!=null && service.getName().equals(realm))
return service;
}
else if (list.size()==1)
return list.get(0);
return null;
}
代码示例来源:origin: org.eclipse.jetty/security
protected LoginService findLoginService()
{
List<LoginService> list = getServer().getBeans(LoginService.class);
String realm=getRealmName();
if (realm!=null)
{
for (LoginService service : list)
if (service.getName()!=null && service.getName().equals(realm))
return service;
}
else if (list.size()==1)
return list.get(0);
return null;
}
代码示例来源:origin: jenkinsci/winstone
protected LoginService findLoginService() throws Exception
{
Collection<LoginService> list = getServer().getBeans(LoginService.class);
LoginService service = null;
String realm=getRealmName();
if (realm!=null)
{
for (LoginService s : list)
if (s.getName()!=null && s.getName().equals(realm))
{
service=s;
break;
}
}
else if (list.size()==1)
service = list.iterator().next();
return service;
}
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jetty.security
protected LoginService findLoginService() throws Exception
{
Collection<LoginService> list = getServer().getBeans(LoginService.class);
LoginService service = null;
String realm=getRealmName();
if (realm!=null)
{
for (LoginService s : list)
if (s.getName()!=null && s.getName().equals(realm))
{
service=s;
break;
}
}
else if (list.size()==1)
service = list.iterator().next();
return service;
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
@Override
public void dump(Appendable out,String indent) throws IOException
{
dumpThis(out);
dump(out,indent,TypeUtil.asList(getHandlers()),getBeans(),TypeUtil.asList(_connectors));
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp
@Override
public void dump(Appendable out,String indent) throws IOException
{
dumpThis(out);
dump(out,indent,TypeUtil.asList(getHandlers()),getBeans(),TypeUtil.asList(_connectors));
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus
@Override
public void dump(Appendable out,String indent) throws IOException
{
dumpThis(out);
dump(out,indent,TypeUtil.asList(getHandlers()),getBeans(),TypeUtil.asList(_connectors));
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server
@Override
public void dump(Appendable out,String indent) throws IOException
{
dumpThis(out);
dump(out,indent,TypeUtil.asList(getHandlers()),getBeans(),TypeUtil.asList(_connectors));
}
代码示例来源:origin: org.eclipse.jetty/server
@Override
public void dump(Appendable out,String indent) throws IOException
{
dumpThis(out);
dump(out,indent,TypeUtil.asList(getHandlers()),getBeans(),TypeUtil.asList(_connectors));
}
内容来源于网络,如有侵权,请联系作者删除!