Package de.xima.fc.app
Class WebAppContext
java.lang.Object
de.xima.fc.app.WebAppContext
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.@NotNull IServletContextInfo@NotNull IWebAppDescriptorstatic voidinit(javax.servlet.ServletContextEvent sce) toString()
-
Method Details
-
init
public static void init(javax.servlet.ServletContextEvent sce) -
destroy
public static void destroy(javax.servlet.ServletContextEvent sce) -
getInstance
- Returns:
- the current web app context.
-
getWebAppDescriptor
- Returns:
- the
descriptorof this web app.
-
getServletContextInfo
- Returns:
- the
servlet context informationof this web app.
-
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
-
toString
-