示例#1
0
  @Override
  public void init(ServletConfig servletConfig) throws ServletException {
    super.init(servletConfig);
    plugin = (WixatPlugin) XMPPServer.getInstance().getPluginManager().getPlugin("wixat");

    // Exclude this servlet from requering the user to login
    AuthCheckFilter.addExclude("wixat/check");
  }
示例#2
0
 @Override
 public void destroy() {
   super.destroy();
   // Release the excluded URL
   AuthCheckFilter.removeExclude("wixat/check");
 }