Class WebAppContext
java.lang.Object
de.xima.fc.app.WebAppContext
- All Implemented Interfaces:
IWebAppContext
Singleton model allowing access to information about the web app context.
- Since:
- 8.0.1
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptionstatic voiddestroy(javax.servlet.ServletContextEvent sce) static WebAppContextgetMimeType(String fileName) Cuurently delegates toServletContext.getMimeType(String)- copied description: "Returns the MIME type of the specified file, or null if the MIME type is not known.javax.servlet.ServletContextGets the global servlet context instance of the web app.@NotNull IServletContextInfo@NotNull IWebAppDescriptorstatic voidinit(javax.servlet.ServletContextEvent sce) booleanstatic voidonFacesInitialized(javax.faces.application.Application application) Called when the Faces framework was initialized, i.e. com.sun.faces.config.ConfigureListener was run.toString()
-
Method Details
-
getMimeType
Cuurently delegates toServletContext.getMimeType(String)- copied description: "Returns the MIME type of the specified file, or null if the MIME type is not known. The MIME type is determined by the configuration of the servlet container, and may be specified in a web application deployment descriptor."- Parameters:
fileName- the file name to process- Returns:
- the MIME type or null
-
getServletContext
@Nullable public javax.servlet.ServletContext getServletContext()Gets the global servlet context instance of the web app. May be null if the web app context is not available.- Specified by:
getServletContextin interfaceIWebAppContext- Returns:
- The global servlet context of the web app.
-
getServletContextInfo
- Specified by:
getServletContextInfoin interfaceIWebAppContext- Returns:
- the
servlet context informationof this web app.
-
getWebAppDescriptor
- Specified by:
getWebAppDescriptorin interfaceIWebAppContext- Returns:
- the
descriptorof this web app.
-
isFacesInitialized
public boolean isFacesInitialized() -
toString
-
destroy
public static void destroy(javax.servlet.ServletContextEvent sce) -
getInstance
- Returns:
- the current web app context.
-
init
public static void init(javax.servlet.ServletContextEvent sce) -
onFacesInitialized
public static void onFacesInitialized(javax.faces.application.Application application) Called when the Faces framework was initialized, i.e. com.sun.faces.config.ConfigureListener was run. Only intended for internal use, do not call this method from plugins.- Parameters:
application- The Faces application instance that was initialized.
-