Example usage for org.apache.wicket.protocol.http WebApplication unmount

List of usage examples for org.apache.wicket.protocol.http WebApplication unmount

Introduction

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

Prototype

public void unmount(String path) 

Source Link

Document

Unregisters all IRequestMapper s which would match on a this path.

Usage

From source file:com.inductiveautomation.ignition.examples.hce.GatewayHook.java

@Override
public void shutdown() {
    /* remove our bundle */
    BundleUtil.get().removeBundle("HomeConnect");

    if (context.getState() != ContextState.STOPPING) {
        WebApplication wicket = context.getWebApplication();

        Application currentApplication = ThreadContext.getApplication();
        ThreadContext.setApplication(wicket);
        try {//from   w  w w. j  a va 2 s.co  m
            wicket.unmount("ack/${id}");
        } finally {
            ThreadContext.setApplication(currentApplication);
        }
    }
}