public class ServletContextWrapper extends Object implements AppContext
| Constructor and Description |
|---|
ServletContextWrapper(javax.servlet.ServletContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(String name) |
Enumeration<String> |
getAttributeNames() |
String |
getContextName() |
Object |
getExternalContext() |
String |
getInitParameter(String name) |
Enumeration<String> |
getInitParameterNames() |
String |
getMimeType(String file) |
String |
getRealPath(String path) |
URL |
getResource(String path) |
Set<String> |
getResourcePaths(String path) |
boolean |
isPortlet() |
void |
log(String msg) |
void |
log(String message,
Throwable throwable) |
void |
removeAttribute(String name) |
void |
setAttribute(String name,
Object object) |
public ServletContextWrapper(javax.servlet.ServletContext ctx)
public String getContextName()
getContextName in interface AppContextpublic Object getExternalContext()
getExternalContext in interface AppContextpublic String getMimeType(String file)
getMimeType in interface AppContextpublic boolean isPortlet()
isPortlet in interface AppContextpublic String getRealPath(String path)
getRealPath in interface AppContextpublic Set<String> getResourcePaths(String path)
getResourcePaths in interface AppContextpublic URL getResource(String path) throws MalformedURLException
getResource in interface AppContextMalformedURLExceptionpublic void log(String msg)
log in interface AppContextpublic void log(String message, Throwable throwable)
log in interface AppContextpublic Enumeration<String> getInitParameterNames()
getInitParameterNames in interface AppContextpublic String getInitParameter(String name)
getInitParameter in interface AppContextpublic Enumeration<String> getAttributeNames()
getAttributeNames in interface AppContextpublic Object getAttribute(String name)
getAttribute in interface AppContextpublic void removeAttribute(String name)
removeAttribute in interface AppContextpublic void setAttribute(String name, Object object)
setAttribute in interface AppContextCopyright © 2008–2020 Apache Software Foundation. All rights reserved.