org.apache.webbeans.web.util
Class ServletCompatibilityUtil

java.lang.Object
  extended by org.apache.webbeans.web.util.ServletCompatibilityUtil

public class ServletCompatibilityUtil
extends Object

This utility helps to be compatible with Servlet API 2.4


Method Summary
static String getServletInfo(javax.servlet.ServletContext servletContext)
          Returns an information about the given servlet context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getServletInfo

public static String getServletInfo(javax.servlet.ServletContext servletContext)
Returns an information about the given servlet context. In case of Servlet API 2.5 or higher the context name will be returned.

Parameters:
servletContext - A given servlet context or null.
Returns:
The info, or the string "null"


Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.