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 AppContext
public Object getExternalContext()
getExternalContext
in interface AppContext
public String getMimeType(String file)
getMimeType
in interface AppContext
public boolean isPortlet()
isPortlet
in interface AppContext
public String getRealPath(String path)
getRealPath
in interface AppContext
public Set<String> getResourcePaths(String path)
getResourcePaths
in interface AppContext
public URL getResource(String path) throws MalformedURLException
getResource
in interface AppContext
MalformedURLException
public void log(String msg)
log
in interface AppContext
public void log(String message, Throwable throwable)
log
in interface AppContext
public Enumeration<String> getInitParameterNames()
getInitParameterNames
in interface AppContext
public String getInitParameter(String name)
getInitParameter
in interface AppContext
public Enumeration<String> getAttributeNames()
getAttributeNames
in interface AppContext
public Object getAttribute(String name)
getAttribute
in interface AppContext
public void removeAttribute(String name)
removeAttribute
in interface AppContext
public void setAttribute(String name, Object object)
setAttribute
in interface AppContext
Copyright © 2008–2017 Apache Software Foundation. All rights reserved.