Example usage for org.apache.wicket.protocol.http WicketFilter destroy

List of usage examples for org.apache.wicket.protocol.http WicketFilter destroy

Introduction

In this page you can find the example usage for org.apache.wicket.protocol.http WicketFilter destroy.

Prototype

@Override
public void destroy() 

Source Link

Usage

From source file:com.mastfrog.acteur.wicket.FakeWicketFilter.java

License:Open Source License

@Override
public void destroy(WicketFilter filter) {
    filter.destroy();
}

From source file:com.servoy.j2db.server.headlessclient.SessionClient.java

License:Open Source License

static void onDestroy() {
    try {//from  ww w.  ja v  a 2 s .c o  m
        if (wicket_app != null) {
            WebClientsApplication tmp = wicket_app;
            wicket_app = null;
            WicketFilter wicketFilter = tmp.getWicketFilter();
            if (wicketFilter != null) {
                wicketFilter.destroy();
            }
            if (Application.exists() && Application.get() == tmp) {
                Application.unset();
            }

            if (Session.exists() && Session.get() == wicket_session) {
                Session.unset();
            }
        } else {
            wicket_app = null;
            wicket_session = null;
        }
    } catch (Exception e) {
        Debug.error("on destroy", e);
    }
}