本文整理了Java中org.eclipse.jetty.webapp.WebAppContext.loadServerClasses()
方法的一些代码示例,展示了WebAppContext.loadServerClasses()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebAppContext.loadServerClasses()
方法的具体详情如下:
包路径:org.eclipse.jetty.webapp.WebAppContext
类名称:WebAppContext
方法名:loadServerClasses
暂无
代码示例来源:origin: org.eclipse.jetty/jetty-webapp
/**
* @return The ClasspathPattern used to match Server (hidden) classes
*/
public ClasspathPattern getServerClasspathPattern()
{
if (_serverClasses == null)
loadServerClasses();
return _serverClasses;
}
代码示例来源:origin: org.eclipse.jetty/jetty-webapp
/**
* @deprecated Use {@link #getServerClasspathPattern()}.{@link ClasspathPattern#add(String)}
* @param classOrPackageOrLocation pattern (see {@link ClasspathPattern}
*/
@Deprecated
public void addServerClass(String classOrPackageOrLocation)
{
if (_serverClasses == null)
loadServerClasses();
_serverClasses.add(classOrPackageOrLocation);
}
代码示例来源:origin: org.eclipse.jetty/jetty-webapp
/**
* @param name class name
* @return true if matched by {@link #getServerClasspathPattern()}
* @deprecated Use {@link #getServerClasspathPattern()}.{@link ClasspathPattern#match(String)}
*/
@Deprecated
public boolean isServerClass(String name)
{
if (_serverClasses == null)
loadServerClasses();
return _serverClasses.match(name);
}
代码示例来源:origin: org.eclipse.jetty/jetty-webapp
/** Prepend to the list of Server classes.
* @param classOrPackage A pattern.
* @see #setServerClasses(String[])
* @see <a href="http://www.eclipse.org/jetty/documentation/current/jetty-classloading.html">Jetty Documentation: Classloading</a>
* @deprecated Use {@link #getServerClasspathPattern()}.{@link ClasspathPattern#add(String)}
*/
@Deprecated
public void prependServerClass(String classOrPackage)
{
if (_serverClasses == null)
loadServerClasses();
_serverClasses.add(classOrPackage);
}
代码示例来源:origin: org.eclipse.jetty/jetty-webapp
/**
* @see #setServerClasses(String[])
* @return Returns the serverClasses.
*/
@ManagedAttribute(value="classes and packages hidden by the context classloader", readonly=true)
public String[] getServerClasses()
{
if (_serverClasses == null)
loadServerClasses();
return _serverClasses.getPatterns();
}
代码示例来源:origin: org.eclipse.jetty/jetty-webapp
@Override
public boolean isServerClass(Class<?> clazz)
{
if (_serverClasses == null)
loadServerClasses();
boolean result = _serverClasses.match(clazz);
if (LOG.isDebugEnabled())
LOG.debug("isServerClass=={} {}",result,clazz);
return result;
}
代码示例来源:origin: org.eclipse.jetty/jetty-webapp
@Override
public boolean isServerResource(String name, URL url)
{
if (_serverClasses == null)
loadServerClasses();
boolean result = _serverClasses.match(name,url);
if (LOG.isDebugEnabled())
LOG.debug("isServerResource=={} {} {}",result,name,url);
return result;
}
代码示例来源:origin: org.eclipse.jetty/jetty-webapp
loadServerClasses();
代码示例来源:origin: jenkinsci/winstone
/**
* @return The ClasspathPattern used to match Server (hidden) classes
*/
public ClasspathPattern getServerClasspathPattern()
{
if (_serverClasses == null)
loadServerClasses();
return _serverClasses;
}
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
@Override
public boolean isServerClass(String name)
{
if (_serverClasses == null)
loadServerClasses();
return _serverClasses.match(name);
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp
/**
* @see #setServerClasses(String[])
* @return Returns the serverClasses.
*/
public String[] getServerClasses()
{
if (_serverClasses == null)
loadServerClasses();
return _serverClasses.getPatterns();
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp
public boolean isServerClass(String name)
{
if (_serverClasses == null)
loadServerClasses();
return _serverClasses.match(name);
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus
/**
* @see #setServerClasses(String[])
* @return Returns the serverClasses.
*/
public String[] getServerClasses()
{
if (_serverClasses == null)
loadServerClasses();
return _serverClasses.getPatterns();
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
/**
* @see #setServerClasses(String[])
* @return Returns the serverClasses.
*/
public String[] getServerClasses()
{
if (_serverClasses == null)
loadServerClasses();
return _serverClasses.getPatterns();
}
代码示例来源:origin: jenkinsci/winstone
/**
* @deprecated Use {@link #getServerClasspathPattern()}.{@link ClasspathPattern#add(String)}
* @param classOrPackageOrLocation pattern (see {@link ClasspathPattern}
*/
@Deprecated
public void addServerClass(String classOrPackageOrLocation)
{
if (_serverClasses == null)
loadServerClasses();
_serverClasses.add(classOrPackageOrLocation);
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp
public void addServerClass(String classname)
{
if (_serverClasses == null)
loadServerClasses();
_serverClasses.addPattern(classname);
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
public boolean isServerClass(String name)
{
if (_serverClasses == null)
loadServerClasses();
return _serverClasses.match(name);
}
代码示例来源:origin: jenkinsci/winstone
/**
* @see #setServerClasses(String[])
* @return Returns the serverClasses.
*/
@ManagedAttribute(value="classes and packages hidden by the context classloader", readonly=true)
public String[] getServerClasses()
{
if (_serverClasses == null)
loadServerClasses();
return _serverClasses.getPatterns();
}
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
/**
* @see #setServerClasses(String[])
* @return Returns the serverClasses.
*/
@ManagedAttribute(value="classes and packages hidden by the context classloader", readonly=true)
public String[] getServerClasses()
{
if (_serverClasses == null)
loadServerClasses();
return _serverClasses.getPatterns();
}
代码示例来源:origin: jenkinsci/winstone
@Override
public boolean isServerResource(String name, URL url)
{
if (_serverClasses == null)
loadServerClasses();
boolean result = _serverClasses.match(name,url);
if (LOG.isDebugEnabled())
LOG.debug("isServerResource=={} {} {}",result,name,url);
return result;
}
内容来源于网络,如有侵权,请联系作者删除!