本文整理汇总了Java中org.jivesoftware.admin.AuthCheckFilter类的典型用法代码示例。如果您正苦于以下问题:Java AuthCheckFilter类的具体用法?Java AuthCheckFilter怎么用?Java AuthCheckFilter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AuthCheckFilter类属于org.jivesoftware.admin包,在下文中一共展示了AuthCheckFilter类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: init
import org.jivesoftware.admin.AuthCheckFilter; //导入依赖的package包/类
@Override
public void init(ServletConfig servletConfig) throws ServletException {
super.init(servletConfig);
plugin =
(PresencePlugin) XMPPServer.getInstance().getPluginManager().getPlugin("presence");
xmlProvider = new XMLPresenceProvider();
imageProvider = new ImagePresenceProvider(this);
textProvider = new TextPresenceProvider();
available = loadResource("/images/user-green-16x16.gif");
away = loadResource("/images/user-yellow-16x16.gif");
chat = loadResource("/images/user-green-16x16.gif");
dnd = loadResource("/images/user-red-16x16.gif");
offline = loadResource("/images/user-clear-16x16.gif");
xa = loadResource("/images/user-yellow-16x16.gif");
// Exclude this servlet from requering the user to login
AuthCheckFilter.addExclude("presence/status");
}
开发者ID:igniterealtime,项目名称:Openfire,代码行数:18,代码来源:PresenceStatusServlet.java
示例2: initializePlugin
import org.jivesoftware.admin.AuthCheckFilter; //导入依赖的package包/类
@Override
public void initializePlugin( PluginManager manager, File pluginDirectory )
{
for ( final String publicResource : publicResources )
{
AuthCheckFilter.addExclude( publicResource );
}
// Add the Webchat sources to the same context as the one that's providing the BOSH interface.
context = new WebAppContext( null, pluginDirectory.getPath() + File.separator + "classes/", "/inverse" );
context.setClassLoader( this.getClass().getClassLoader() );
// Ensure the JSP engine is initialized correctly (in order to be able to cope with Tomcat/Jasper precompiled JSPs).
final List<ContainerInitializer> initializers = new ArrayList<>();
initializers.add( new ContainerInitializer( new JettyJasperInitializer(), null ) );
context.setAttribute("org.eclipse.jetty.containerInitializers", initializers);
context.setAttribute( InstanceManager.class.getName(), new SimpleInstanceManager());
HttpBindManager.getInstance().addJettyHandler( context );
}
开发者ID:igniterealtime,项目名称:Openfire,代码行数:21,代码来源:InversePlugin.java
示例3: destroyPlugin
import org.jivesoftware.admin.AuthCheckFilter; //导入依赖的package包/类
@Override
public void destroyPlugin()
{
for ( final String publicResource : publicResources )
{
AuthCheckFilter.removeExclude( publicResource );
}
if ( context != null )
{
HttpBindManager.getInstance().removeJettyHandler( context );
context.destroy();
context = null;
}
if ( component != null )
{
InternalComponentManager.getInstance().removeComponent( "httpfileupload" );
}
}
开发者ID:igniterealtime,项目名称:Openfire,代码行数:21,代码来源:HttpFileUploadPlugin.java
示例4: initializePlugin
import org.jivesoftware.admin.AuthCheckFilter; //导入依赖的package包/类
@Override
public void initializePlugin( PluginManager manager, File pluginDirectory )
{
for ( final String publicResource : publicResources )
{
AuthCheckFilter.addExclude( publicResource );
}
// Add the Webchat sources to the same context as the one that's providing the BOSH interface.
context = new WebAppContext( null, pluginDirectory.getPath() + File.separator + "classes", "/candy" );
context.setClassLoader( this.getClass().getClassLoader() );
// Ensure the JSP engine is initialized correctly (in order to be able to cope with Tomcat/Jasper precompiled JSPs).
final List<ContainerInitializer> initializers = new ArrayList<>();
initializers.add( new ContainerInitializer( new JettyJasperInitializer(), null ) );
context.setAttribute("org.eclipse.jetty.containerInitializers", initializers);
context.setAttribute( InstanceManager.class.getName(), new SimpleInstanceManager());
HttpBindManager.getInstance().addJettyHandler( context );
}
开发者ID:igniterealtime,项目名称:Openfire,代码行数:21,代码来源:CandyPlugin.java
示例5: init
import org.jivesoftware.admin.AuthCheckFilter; //导入依赖的package包/类
@Override
public void init(ServletConfig servletConfig) throws ServletException {
super.init(servletConfig);
plugin =
(PresencePlugin) XMPPServer.getInstance().getPluginManager().getPlugin("presence");
xmlProvider = new XMLPresenceProvider();
imageProvider = new ImagePresenceProvider(this);
textProvider = new TextPresenceProvider();
available = loadResource("/images/user-green-16x16.gif");
away = loadResource("/images/user-yellow-16x16.gif");
chat = loadResource("/images/user-green-16x16.gif");
dnd = loadResource("/images/user-red-16x16.gif");
offline = loadResource("/images/user-clear-16x16.gif");
xa = loadResource("/images/user-yellow-16x16.gif");
// Exclude this servlet from requering the user to login
AuthCheckFilter.addExclude("presence/status");
}
开发者ID:coodeer,项目名称:g3server,代码行数:18,代码来源:PresenceStatusServlet.java
示例6: init
import org.jivesoftware.admin.AuthCheckFilter; //导入依赖的package包/类
@Override
public void init(ServletConfig config) throws ServletException {
LOGGER.info("Initializing:" + DeviceServlet.class);
super.init(config);
// Exclude this check so that the request won't be redirected to the login page.
AuthCheckFilter.addExclude(PATH);
}
开发者ID:magnetsystems,项目名称:message-server,代码行数:8,代码来源:DeviceServlet.java
示例7: init
import org.jivesoftware.admin.AuthCheckFilter; //导入依赖的package包/类
@Override
public void init(ServletConfig config) throws ServletException {
LOGGER.info("Initializing:" + UserServlet.class);
super.init(config);
// Exclude this check so that the request won't be redirected to the login page.
AuthCheckFilter.addExclude(PATH);
}
开发者ID:magnetsystems,项目名称:message-server,代码行数:8,代码来源:UserServlet.java
示例8: init
import org.jivesoftware.admin.AuthCheckFilter; //导入依赖的package包/类
@Override
public void init(ServletConfig config) throws ServletException {
LOGGER.info("Initializing:" + PushServlet.class);
super.init(config);
// Exclude this check so that the request won't be redirected to the login page.
AuthCheckFilter.addExclude(PATH);
}
开发者ID:magnetsystems,项目名称:message-server,代码行数:8,代码来源:PushServlet.java
示例9: init
import org.jivesoftware.admin.AuthCheckFilter; //导入依赖的package包/类
@Override
public void init(ServletConfig servletConfig) {
try {
super.init(servletConfig);
conduit = new XMLRPCConduit();
PropertyEventDispatcher.addListener(this);
this.getXmlRpcServer().addInvocationHandler("Manager", conduit);
AuthCheckFilter.addExclude("kraken/xml-rpc");
}
catch (ServletException e) {
Log.error("Error while loading XMLRPC servlet: ", e);
}
}
开发者ID:igniterealtime,项目名称:Openfire,代码行数:16,代码来源:GatewayXMLRPC.java
示例10: destroy
import org.jivesoftware.admin.AuthCheckFilter; //导入依赖的package包/类
@Override
public void destroy() {
super.destroy();
available = null;
away = null;
chat = null;
dnd = null;
offline = null;
xa = null;
// Release the excluded URL
AuthCheckFilter.removeExclude("presence/status");
}
开发者ID:igniterealtime,项目名称:Openfire,代码行数:13,代码来源:PresenceStatusServlet.java
示例11: destroyPlugin
import org.jivesoftware.admin.AuthCheckFilter; //导入依赖的package包/类
@Override
public void destroyPlugin()
{
if ( context != null )
{
HttpBindManager.getInstance().removeJettyHandler( context );
context.destroy();
context = null;
}
for ( final String publicResource : publicResources )
{
AuthCheckFilter.removeExclude( publicResource );
}
}
开发者ID:igniterealtime,项目名称:Openfire,代码行数:16,代码来源:InversePlugin.java
示例12: destroyPlugin
import org.jivesoftware.admin.AuthCheckFilter; //导入依赖的package包/类
public void destroyPlugin() {
AuthCheckFilter.removeExclude(URL);
UserEventDispatcher.removeListener(listener);
serverAddress = null;
listener = null;
router = null;
}
开发者ID:igniterealtime,项目名称:Openfire,代码行数:8,代码来源:RegistrationPlugin.java
示例13: init
import org.jivesoftware.admin.AuthCheckFilter; //导入依赖的package包/类
@Override
public void init(ServletConfig servletConfig) throws ServletException {
loadAuthenticationFilter();
super.init(servletConfig);
// Exclude this servlet from requering the user to login
AuthCheckFilter.addExclude(SERVLET_URL);
}
开发者ID:igniterealtime,项目名称:Openfire,代码行数:8,代码来源:JerseyWrapper.java
示例14: destroy
import org.jivesoftware.admin.AuthCheckFilter; //导入依赖的package包/类
@Override
public void destroy() {
super.destroy();
available = null;
away = null;
chat = null;
dnd = null;
offline = null;
xa = null;
// Release the excluded URL
AuthCheckFilter.removeExclude("presence/status");
}
开发者ID:coodeer,项目名称:g3server,代码行数:13,代码来源:PresenceStatusServlet.java
示例15: init
import org.jivesoftware.admin.AuthCheckFilter; //导入依赖的package包/类
@Override
public void init(ServletConfig servletConfig) throws ServletException {
super.init(servletConfig);
plugin = (UserServicePlugin) XMPPServer.getInstance().getPluginManager().getPlugin("userservice");
// Exclude this servlet from requiring the user to login
AuthCheckFilter.addExclude("userService/userservice");
}
开发者ID:coodeer,项目名称:g3server,代码行数:9,代码来源:UserServiceServlet.java
示例16: init
import org.jivesoftware.admin.AuthCheckFilter; //导入依赖的package包/类
@Override
public void init(ServletConfig config) throws ServletException {
super.init(config);
plugin = (BroadcastServicePlugin) XMPPServer.getInstance().getPluginManager().getPlugin("broadcastservice");
// Exclude this servlet from requiring the user to login
AuthCheckFilter.addExclude(SERVICE_NAME);
}
开发者ID:idwanglu2010,项目名称:openfire,代码行数:8,代码来源:BroadcastServiceServlet.java
示例17: init
import org.jivesoftware.admin.AuthCheckFilter; //导入依赖的package包/类
@Override
public void init(ServletConfig config) throws ServletException {
LOGGER.info("Initializing:" + PushMessageServlet.class);
super.init(config);
AuthCheckFilter.addExclude(PATH);
}
开发者ID:magnetsystems,项目名称:message-server,代码行数:7,代码来源:PushMessageServlet.java
示例18: destroy
import org.jivesoftware.admin.AuthCheckFilter; //导入依赖的package包/类
@Override
public void destroy() {
super.destroy();
AuthCheckFilter.removeExclude(PATH);
}
开发者ID:magnetsystems,项目名称:message-server,代码行数:6,代码来源:PushMessageServlet.java
示例19: init
import org.jivesoftware.admin.AuthCheckFilter; //导入依赖的package包/类
@Override
public void init(ServletConfig config) throws ServletException {
LOGGER.info("Initializing:" + ConfigServlet.class);
super.init(config);
AuthCheckFilter.addExclude(PATH);
}
开发者ID:magnetsystems,项目名称:message-server,代码行数:7,代码来源:ConfigServlet.java
示例20: init
import org.jivesoftware.admin.AuthCheckFilter; //导入依赖的package包/类
@Override
public void init(ServletConfig config) throws ServletException {
LOGGER.info("Initializing:" + MessageServlet.class);
super.init(config);
AuthCheckFilter.addExclude(PATH);
}
开发者ID:magnetsystems,项目名称:message-server,代码行数:7,代码来源:MessageServlet.java
注:本文中的org.jivesoftware.admin.AuthCheckFilter类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论