Revision: 15421
Author: [email protected]
Date: Fri Nov 19 12:15:51 2010
Log: Fixing the ConvergedApplicationContextFacade
http://code.google.com/p/mobicents/source/detail?r=15421
Modified:
/branches/servers/sip-servlets/2.0/tomcat-7/src/main/java/org/mobicents/servlet/sip/startup/ConvergedApplicationContextFacade.java
=======================================
---
/branches/servers/sip-servlets/2.0/tomcat-7/src/main/java/org/mobicents/servlet/sip/startup/ConvergedApplicationContextFacade.java
Mon Nov 15 12:08:51 2010
+++
/branches/servers/sip-servlets/2.0/tomcat-7/src/main/java/org/mobicents/servlet/sip/startup/ConvergedApplicationContextFacade.java
Fri Nov 19 12:15:51 2010
@@ -1,21 +1,24 @@
/*
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
*/
+
+
package org.mobicents.servlet.sip.startup;
+
import java.io.InputStream;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
@@ -24,6 +27,7 @@
import java.security.AccessController;
import java.security.PrivilegedActionException;
import java.security.PrivilegedExceptionAction;
+import java.util.EnumSet;
import java.util.Enumeration;
import java.util.EventListener;
import java.util.HashMap;
@@ -37,31 +41,38 @@
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.ServletRegistration;
-import javax.servlet.ServletRegistration.Dynamic;
import javax.servlet.SessionCookieConfig;
import javax.servlet.SessionTrackingMode;
import javax.servlet.descriptor.JspConfigDescriptor;
import org.apache.catalina.Globals;
import org.apache.catalina.security.SecurityUtil;
+import org.apache.tomcat.util.ExceptionUtils;
+
/**
- * @author <A HREF="mailto:[email protected]">Jean Deruelle</A>
+ * Facade object which masks the internal <code>ApplicationContext</code>
+ * object from the web application.
*
+ * @author Remy Maucherat
+ * @author Jean-Francois Arcand
+ * @version $Id: ApplicationContextFacade.java 1002556 2010-09-29
10:07:10Z markt $
*/
-public class ConvergedApplicationContextFacade implements ServletContext{
-
- // ---------------------------------------------------------- Attributes
+
+public final class ConvergedApplicationContextFacade
+ implements ServletContext {
+
+ // ----------------------------------------------------------
Attributes
/**
* Cache Class object used for reflection.
*/
- private HashMap classCache;
+ private HashMap<String,Class<?>[]> classCache;
/**
* Cache method object.
*/
- private HashMap objectCache;
+ private HashMap<String,Method> objectCache;
// -----------------------------------------------------------
Constructors
@@ -77,14 +88,14 @@
super();
this.context = context;
- classCache = new HashMap();
- objectCache = new HashMap();
+ classCache = new HashMap<String,Class<?>[]>();
+ objectCache = new HashMap<String,Method>();
initClassCache();
}
private void initClassCache(){
- Class[] clazz = new Class[]{String.class};
+ Class<?>[] clazz = new Class[]{String.class};
classCache.put("getContext", clazz);
classCache.put("getMimeType", clazz);
classCache.put("getResourcePaths", clazz);
@@ -93,12 +104,22 @@
classCache.put("getRequestDispatcher", clazz);
classCache.put("getNamedDispatcher", clazz);
classCache.put("getServlet", clazz);
+ classCache.put("setInitParameter", new Class[]{String.class,
String.class});
+ classCache.put("createServlet", new Class[]{Class.class});
+ classCache.put("addServlet", new Class[]{String.class,
String.class});
+ classCache.put("createFilter", new Class[]{Class.class});
+ classCache.put("addFilter", new Class[]{String.class,
String.class});
+ classCache.put("createListener", new Class[]{Class.class});
+ classCache.put("addListener", clazz);
+ classCache.put("getFilterRegistration", clazz);
+ classCache.put("getServletRegistration", clazz);
classCache.put("getInitParameter", clazz);
classCache.put("setAttribute", new Class[]{String.class,
Object.class});
classCache.put("removeAttribute", clazz);
classCache.put("getRealPath", clazz);
classCache.put("getAttribute", clazz);
classCache.put("log", clazz);
+ classCache.put("setSessionTrackingModes", new
Class[]{EnumSet.class} );
}
@@ -109,7 +130,6 @@
* Wrapped application context.
*/
private ConvergedApplicationContext context = null;
-
// ------------------------------------------------- ServletContext
Methods
@@ -149,10 +169,11 @@
}
}
-
- public Set getResourcePaths(String path) {
+ @SuppressWarnings("unchecked") // doPrivileged() returns the correct
type
+ public Set<String> getResourcePaths(String path) {
if (SecurityUtil.isPackageProtectionEnabled()){
- return (Set)doPrivileged("getResourcePaths", new
Object[]{path});
+ return (Set<String>)doPrivileged("getResourcePaths",
+ new Object[]{path});
} else {
return context.getResourcePaths(path);
}
@@ -207,6 +228,10 @@
}
+ /**
+ * @deprecated
+ */
+ @Deprecated
public Servlet getServlet(String name)
throws ServletException {
if (SecurityUtil.isPackageProtectionEnabled()) {
@@ -214,6 +239,7 @@
return (Servlet) invokeMethod(context, "getServlet",
new Object[]{name});
} catch (Throwable t) {
+ ExceptionUtils.handleThrowable(t);
if (t instanceof ServletException) {
throw (ServletException) t;
}
@@ -225,18 +251,28 @@
}
- public Enumeration getServlets() {
+ /**
+ * @deprecated
+ */
+ @SuppressWarnings("unchecked") // doPrivileged() returns the correct
type
+ @Deprecated
+ public Enumeration<Servlet> getServlets() {
if (SecurityUtil.isPackageProtectionEnabled()) {
- return (Enumeration) doPrivileged("getServlets", null);
+ return (Enumeration<Servlet>) doPrivileged("getServlets",
null);
} else {
return context.getServlets();
}
}
- public Enumeration getServletNames() {
+ /**
+ * @deprecated
+ */
+ @SuppressWarnings("unchecked") // doPrivileged() returns the correct
type
+ @Deprecated
+ public Enumeration<String> getServletNames() {
if (SecurityUtil.isPackageProtectionEnabled()) {
- return (Enumeration) doPrivileged("getServletNames", null);
+ return (Enumeration<String>) doPrivileged("getServletNames",
null);
} else {
return context.getServletNames();
}
@@ -252,6 +288,10 @@
}
+ /**
+ * @deprecated
+ */
+ @Deprecated
public void log(Exception exception, String msg) {
if (SecurityUtil.isPackageProtectionEnabled()) {
doPrivileged("log", new Class[]{Exception.class, String.class},
@@ -300,9 +340,11 @@
}
- public Enumeration getInitParameterNames() {
+ @SuppressWarnings("unchecked") // doPrivileged() returns the correct
type
+ public Enumeration<String> getInitParameterNames() {
if (SecurityUtil.isPackageProtectionEnabled()) {
- return (Enumeration) doPrivileged("getInitParameterNames",
null);
+ return (Enumeration<String>) doPrivileged(
+ "getInitParameterNames", null);
} else {
return context.getInitParameterNames();
}
@@ -318,9 +360,11 @@
}
- public Enumeration getAttributeNames() {
+ @SuppressWarnings("unchecked") // doPrivileged() returns the correct
type
+ public Enumeration<String> getAttributeNames() {
if (SecurityUtil.isPackageProtectionEnabled()) {
- return (Enumeration) doPrivileged("getAttributeNames", null);
+ return (Enumeration<String>) doPrivileged(
+ "getAttributeNames", null);
} else {
return context.getAttributeNames();
}
@@ -363,38 +407,326 @@
}
- /**
- * Use reflection to invoke the requested method. Cache the method
object
- * to speed up the process
- * @param appContext The AppliationContext object on which the method
- * will be invoked
- * @param methodName The method to call.
- * @param params The arguments passed to the called method.
- */
- private Object doPrivileged(ConvergedApplicationContext appContext,
- final String methodName,
- final Object[] params) {
- try{
- return invokeMethod(appContext, methodName, params );
- } catch (Throwable t){
- throw new RuntimeException(t.getMessage(), t);
- }
-
+ public FilterRegistration.Dynamic addFilter(String filterName,
+ String className) {
+ if (SecurityUtil.isPackageProtectionEnabled()) {
+ return (FilterRegistration.Dynamic) doPrivileged(
+ "addFilter", new Object[]{filterName, className});
+ } else {
+ return context.addFilter(filterName, className);
+ }
+ }
+
+
+ public FilterRegistration.Dynamic addFilter(String filterName,
+ Filter filter) {
+ if (SecurityUtil.isPackageProtectionEnabled()) {
+ return (FilterRegistration.Dynamic) doPrivileged(
+ "addFilter", new Class[]{String.class, Filter.class},
new Object[]{filterName, filter});
+ } else {
+ return context.addFilter(filterName, filter);
+ }
}
+
+ public FilterRegistration.Dynamic addFilter(String filterName,
+ Class<? extends Filter> filterClass) {
+ if (SecurityUtil.isPackageProtectionEnabled()) {
+ return (FilterRegistration.Dynamic) doPrivileged(
+ "addFilter", new Object[]{filterName,
filterClass.getName()});
+ } else {
+ return context.addFilter(filterName, filterClass);
+ }
+ }
+
+ @SuppressWarnings("unchecked") // doPrivileged() returns the correct
type
+ public <T extends Filter> T createFilter(Class<T> c)
+ throws ServletException {
+ if (SecurityUtil.isPackageProtectionEnabled()) {
+ try {
+ return (T) invokeMethod(context, "createFilter",
+ new Object[]{c});
+ } catch (Throwable t) {
+ ExceptionUtils.handleThrowable(t);
+ if (t instanceof ServletException) {
+ throw (ServletException) t;
+ }
+ return null;
+ }
+ } else {
+ return context.createFilter(c);
+ }
+ }
+
+
+ public FilterRegistration getFilterRegistration(String filterName) {
+ if (SecurityUtil.isPackageProtectionEnabled()) {
+ return (FilterRegistration) doPrivileged(
+ "getFilterRegistration", new Object[]{filterName});
+ } else {
+ return context.getFilterRegistration(filterName);
+ }
+ }
+
+
+ public ServletRegistration.Dynamic addServlet(String servletName,
+ String className) {
+ if (SecurityUtil.isPackageProtectionEnabled()) {
+ return (ServletRegistration.Dynamic) doPrivileged(
+ "addServlet", new Object[]{servletName, className});
+ } else {
+ return context.addServlet(servletName, className);
+ }
+ }
+
+
+ public ServletRegistration.Dynamic addServlet(String servletName,
+ Servlet servlet) {
+ if (SecurityUtil.isPackageProtectionEnabled()) {
+ return (ServletRegistration.Dynamic) doPrivileged(
+ "addServlet", new Class[]{String.class,
Servlet.class}, new Object[]{servletName, servlet});
+ } else {
+ return context.addServlet(servletName, servlet);
+ }
+ }
+
+
+ public ServletRegistration.Dynamic addServlet(String servletName,
+ Class<? extends Servlet> servletClass) {
+ if (SecurityUtil.isPackageProtectionEnabled()) {
+ return (ServletRegistration.Dynamic) doPrivileged(
+ "addServlet", new Object[]{servletName,
servletClass.getName()});
+ } else {
+ return context.addServlet(servletName, servletClass);
+ }
+ }
+
+
+ @SuppressWarnings("unchecked") // doPrivileged() returns the correct
type
+ public <T extends Servlet> T createServlet(Class<T> c)
+ throws ServletException {
+ if (SecurityUtil.isPackageProtectionEnabled()) {
+ try {
+ return (T) invokeMethod(context, "createServlet",
+ new Object[]{c});
+ } catch (Throwable t) {
+ ExceptionUtils.handleThrowable(t);
+ if (t instanceof ServletException) {
+ throw (ServletException) t;
+ }
+ return null;
+ }
+ } else {
+ return context.createServlet(c);
+ }
+ }
+
+
+ public ServletRegistration getServletRegistration(String servletName) {
+ if (SecurityUtil.isPackageProtectionEnabled()) {
+ return (ServletRegistration) doPrivileged(
+ "getServletRegistration", new Object[]{servletName});
+ } else {
+ return context.getServletRegistration(servletName);
+ }
+ }
+
+
+ @SuppressWarnings("unchecked") // doPrivileged() returns the correct
type
+ public Set<SessionTrackingMode> getDefaultSessionTrackingModes() {
+ if (SecurityUtil.isPackageProtectionEnabled()) {
+ return (EnumSet<SessionTrackingMode>)
+ doPrivileged("getDefaultSessionTrackingModes", null);
+ } else {
+ return context.getDefaultSessionTrackingModes();
+ }
+ }
+
+ @SuppressWarnings("unchecked") // doPrivileged() returns the correct
type
+ public Set<SessionTrackingMode> getEffectiveSessionTrackingModes() {
+ if (SecurityUtil.isPackageProtectionEnabled()) {
+ return (EnumSet<SessionTrackingMode>)
+ doPrivileged("getEffectiveSessionTrackingModes", null);
+ } else {
+ return context.getEffectiveSessionTrackingModes();
+ }
+ }
+
+
+ public SessionCookieConfig getSessionCookieConfig() {
+ if (SecurityUtil.isPackageProtectionEnabled()) {
+ return (SessionCookieConfig)
+ doPrivileged("getSessionCookieConfig", null);
+ } else {
+ return context.getSessionCookieConfig();
+ }
+ }
+
+
+ public void setSessionTrackingModes(
+ Set<SessionTrackingMode> sessionTrackingModes) {
+ if (SecurityUtil.isPackageProtectionEnabled()) {
+ doPrivileged("setSessionTrackingModes",
+ new Object[]{sessionTrackingModes});
+ } else {
+ context.setSessionTrackingModes(sessionTrackingModes);
+ }
+ }
+
+
+ public boolean setInitParameter(String name, String value) {
+ if (SecurityUtil.isPackageProtectionEnabled()) {
+ return ((Boolean) doPrivileged("setInitParameter",
+ new Object[]{name, value})).booleanValue();
+ } else {
+ return context.setInitParameter(name, value);
+ }
+ }
+
+
+ @Override
+ public void addListener(Class<? extends EventListener> listenerClass) {
+ if (SecurityUtil.isPackageProtectionEnabled()) {
+ doPrivileged("addListener",
+ new Object[]{listenerClass.getName()});
+ } else {
+ context.addListener(listenerClass);
+ }
+ }
+
+
+ @Override
+ public void addListener(String className) {
+ if (SecurityUtil.isPackageProtectionEnabled()) {
+ doPrivileged("addListener",
+ new Object[]{className});
+ } else {
+ context.addListener(className);
+ }
+ }
+
+
+ @Override
+ public <T extends EventListener> void addListener(T t) {
+ if (SecurityUtil.isPackageProtectionEnabled()) {
+ doPrivileged("addListener",
+ new Object[]{t.getClass().getName()});
+ } else {
+ context.addListener(t);
+ }
+ }
+
+
+ @Override
+ @SuppressWarnings("unchecked") // doPrivileged() returns the correct
type
+ public <T extends EventListener> T createListener(Class<T> c)
+ throws ServletException {
+ if (SecurityUtil.isPackageProtectionEnabled()) {
+ try {
+ return (T) invokeMethod(context, "createListener",
+ new Object[]{c});
+ } catch (Throwable t) {
+ ExceptionUtils.handleThrowable(t);
+ if (t instanceof ServletException) {
+ throw (ServletException) t;
+ }
+ return null;
+ }
+ } else {
+ return context.createListener(c);
+ }
+ }
+
+
+ @Override
+ public void declareRoles(String... roleNames) {
+ if (SecurityUtil.isPackageProtectionEnabled()) {
+//FIXME
+ doPrivileged("declareRoles",
+ new Object[]{roleNames});
+ } else {
+ context.declareRoles(roleNames);
+ }
+ }
+
+
+ @Override
+ public ClassLoader getClassLoader() {
+ if (SecurityUtil.isPackageProtectionEnabled()) {
+ return (ClassLoader) doPrivileged("getClassLoader", null);
+ } else {
+ return context.getClassLoader();
+ }
+ }
+
+
+ @Override
+ public int getEffectiveMajorVersion() {
+ if (SecurityUtil.isPackageProtectionEnabled()) {
+ return ((Integer) doPrivileged("getEffectiveMajorVersion",
+ null)).intValue();
+ } else {
+ return context.getEffectiveMajorVersion();
+ }
+ }
+
+
+ @Override
+ public int getEffectiveMinorVersion() {
+ if (SecurityUtil.isPackageProtectionEnabled()) {
+ return ((Integer) doPrivileged("getEffectiveMinorVersion",
+ null)).intValue();
+ } else {
+ return context.getEffectiveMinorVersion();
+ }
+ }
+
+
+ @Override
+ @SuppressWarnings("unchecked") // doPrivileged() returns the correct
type
+ public Map<String, ? extends FilterRegistration>
getFilterRegistrations() {
+ if (SecurityUtil.isPackageProtectionEnabled()) {
+ return (Map<String, ? extends FilterRegistration>)
doPrivileged(
+ "getFilterRegistrations", null);
+ } else {
+ return context.getFilterRegistrations();
+ }
+ }
+
+
+ @Override
+ public JspConfigDescriptor getJspConfigDescriptor() {
+ if (SecurityUtil.isPackageProtectionEnabled()) {
+ return (JspConfigDescriptor)
doPrivileged("getJspConfigDescriptor",
+ null);
+ } else {
+ return context.getJspConfigDescriptor();
+ }
+ }
+
+
+ @Override
+ @SuppressWarnings("unchecked") // doPrivileged() returns the correct
type
+ public Map<String, ? extends ServletRegistration>
getServletRegistrations() {
+ if (SecurityUtil.isPackageProtectionEnabled()) {
+ return (Map<String, ? extends ServletRegistration>)
doPrivileged(
+ "getServletRegistrations", null);
+ } else {
+ return context.getServletRegistrations();
+ }
+ }
/**
* Use reflection to invoke the requested method. Cache the method
object
* to speed up the process
- * will be invoked
* @param methodName The method to call.
* @param params The arguments passed to the called method.
*/
- private Object doPrivileged(final String methodName, final Object[]
params){
+ private Object doPrivileged(final String methodName, final Object[]
params) {
try{
return invokeMethod(context, methodName, params);
}catch(Throwable t){
- throw new RuntimeException(t.getMessage());
+ throw new RuntimeException(t.getMessage(), t);
}
}
@@ -413,16 +745,16 @@
throws Throwable{
try{
- Method method = (Method)objectCache.get(methodName);
+ Method method = objectCache.get(methodName);
if (method == null){
method = appContext.getClass()
- .getMethod(methodName,
(Class[])classCache.get(methodName));
+ .getMethod(methodName, classCache.get(methodName));
objectCache.put(methodName, method);
}
return executeMethod(method,appContext,params);
} catch (Exception ex){
- handleException(ex, methodName);
+ handleException(ex);
return null;
} finally {
params = null;
@@ -437,17 +769,17 @@
* @param params The arguments passed to the called method.
*/
private Object doPrivileged(final String methodName,
- final Class[] clazz,
- Object[] params){
+ final Class<?>[] clazz,
+ Object[] params) {
try{
- Method method = context.getClass()
- .getMethod(methodName, (Class[])clazz);
+ Method method = context.getClass().getMethod(methodName,
clazz);
return executeMethod(method,context,params);
} catch (Exception ex){
- try{
- handleException(ex, methodName);
- }catch (Throwable t){
+ try {
+ handleException(ex);
+ } catch (Throwable t){
+ ExceptionUtils.handleThrowable(t);
throw new RuntimeException(t.getMessage());
}
return null;
@@ -472,7 +804,7 @@
InvocationTargetException {
if (SecurityUtil.isPackageProtectionEnabled()){
- return AccessController.doPrivileged(new
PrivilegedExceptionAction(){
+ return AccessController.doPrivileged(new
PrivilegedExceptionAction<Object>(){
public Object run() throws IllegalAccessException,
InvocationTargetException{
return method.invoke(context, params);
}
@@ -488,8 +820,8 @@
* Throw the real exception.
* @param ex The current exception
*/
- private void handleException(Exception ex, String methodName)
- throws Throwable {
+ private void handleException(Exception ex)
+ throws Throwable {
Throwable realException;
@@ -506,197 +838,5 @@
throw realException;
}
-
-
- @Override
- public int getEffectiveMajorVersion() {
- // TODO Auto-generated method stub
- throw new UnsupportedOperationException();
- }
-
-
- @Override
- public int getEffectiveMinorVersion() {
- // TODO Auto-generated method stub
- throw new UnsupportedOperationException();
- }
-
-
- @Override
- public boolean setInitParameter(String name, String value) {
- // TODO Auto-generated method stub
- throw new UnsupportedOperationException();
- }
-
-
- @Override
- public Dynamic addServlet(String servletName, String className) {
- // TODO Auto-generated method stub
- throw new UnsupportedOperationException();
- }
-
-
- @Override
- public Dynamic addServlet(String servletName, Servlet servlet) {
- // TODO Auto-generated method stub
- throw new UnsupportedOperationException();
- }
-
-
- @Override
- public Dynamic addServlet(String servletName,
- Class<? extends Servlet> servletClass) {
- // TODO Auto-generated method stub
- throw new UnsupportedOperationException();
- }
-
-
- @Override
- public <T extends Servlet> T createServlet(Class<T> c)
- throws ServletException {
- // TODO Auto-generated method stub
- throw new UnsupportedOperationException();
- }
-
-
- @Override
- public ServletRegistration getServletRegistration(String servletName) {
- // TODO Auto-generated method stub
- throw new UnsupportedOperationException();
- }
-
-
- @Override
- public Map<String, ? extends ServletRegistration>
getServletRegistrations() {
- // TODO Auto-generated method stub
- throw new UnsupportedOperationException();
- }
-
-
- @Override
- public javax.servlet.FilterRegistration.Dynamic addFilter(
- String filterName, String className) {
- // TODO Auto-generated method stub
- throw new UnsupportedOperationException();
- }
-
-
- @Override
- public javax.servlet.FilterRegistration.Dynamic addFilter(
- String filterName, Filter filter) {
- // TODO Auto-generated method stub
- throw new UnsupportedOperationException();
- }
-
-
- @Override
- public javax.servlet.FilterRegistration.Dynamic addFilter(
- String filterName, Class<? extends Filter> filterClass)
{
- // TODO Auto-generated method stub
- throw new UnsupportedOperationException();
- }
-
-
- @Override
- public <T extends Filter> T createFilter(Class<T> c)
- throws ServletException {
- // TODO Auto-generated method stub
- throw new UnsupportedOperationException();
- }
-
-
- @Override
- public FilterRegistration getFilterRegistration(String filterName) {
- // TODO Auto-generated method stub
- throw new UnsupportedOperationException();
- }
-
-
- @Override
- public Map<String, ? extends FilterRegistration> getFilterRegistrations()
{
- // TODO Auto-generated method stub
- throw new UnsupportedOperationException();
- }
-
-
- @Override
- public SessionCookieConfig getSessionCookieConfig() {
- // TODO Auto-generated method stub
-// throw new UnsupportedOperationException();
- return context.getSessionCookieConfig();
- }
-
-
- @Override
- public void setSessionTrackingModes(
- Set<SessionTrackingMode> sessionTrackingModes)
- throws IllegalStateException, IllegalArgumentException {
- // TODO Auto-generated method stub
- throw new UnsupportedOperationException();
- }
-
-
- @Override
- public Set<SessionTrackingMode> getDefaultSessionTrackingModes() {
- // TODO Auto-generated method stub
- throw new UnsupportedOperationException();
- }
-
-
- @Override
- public Set<SessionTrackingMode> getEffectiveSessionTrackingModes() {
- // TODO Auto-generated method stub
- throw new UnsupportedOperationException();
- }
-
-
- @Override
- public void addListener(Class<? extends EventListener> listenerClass) {
- // TODO Auto-generated method stub
- throw new UnsupportedOperationException();
- }
-
-
- @Override
- public void addListener(String className) {
- // TODO Auto-generated method stub
- throw new UnsupportedOperationException();
- }
-
-
- @Override
- public <T extends EventListener> void addListener(T t) {
- // TODO Auto-generated method stub
- throw new UnsupportedOperationException();
- }
-
-
- @Override
- public <T extends EventListener> T createListener(Class<T> c)
- throws ServletException {
- // TODO Auto-generated method stub
- throw new UnsupportedOperationException();
- }
-
-
- @Override
- public void declareRoles(String... roleNames) {
- // TODO Auto-generated method stub
- throw new UnsupportedOperationException();
- }
-
-
- @Override
- public ClassLoader getClassLoader() {
- // TODO Auto-generated method stub
- throw new UnsupportedOperationException();
- }
-
-
- @Override
- public JspConfigDescriptor getJspConfigDescriptor() {
- // TODO Auto-generated method stub
- throw new UnsupportedOperationException();
- }
}