WebappListener.java revision e8a20bc0a36e5885fa67503ba58be9c29ef96500
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* See LICENSE.txt included in this distribution for the specific
* language governing permissions and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at LICENSE.txt.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*/
/**
* Initialize webapp context
*
* @author Trond Norbye
*/
public final class WebappListener
implements ServletContextListener, ServletRequestListener {
private WatchService watcher;
/**
* {@inheritDoc}
*/
} else {
try {
} catch (IOException ex) {
}
}
try {
SocketAddress addr = new InetSocketAddress(InetAddress.getByName(cfg[0]), Integer.parseInt(cfg[1]));
}
}
} else {
}
}
}
if (pluginDirectory != null) {
} else {
} else {
env.getConfiguration().setPluginDirectory(env.getDataRootPath() + "/../" + PLUGIN_DIRECTORY_DEFAULT);
}
LOGGER.log(Level.INFO, AUTHORIZATION_PLUGIN_DIRECTORY + " is not set in web.xml. Default location will be used.");
}
}
}
/**
* {@inheritDoc}
*/
}
/**
* {@inheritDoc}
*/
public void requestDestroyed(ServletRequestEvent e) {
}
/**
* {@inheritDoc}
*/
public void requestInitialized(ServletRequestEvent e) {
// pass through
}
}