org.apache.empire.struts2.web.servlet
Class ServletContextWrapper
java.lang.Object
org.apache.empire.struts2.web.servlet.ServletContextWrapper
- All Implemented Interfaces:
- AppContext
public class ServletContextWrapper
- extends java.lang.Object
- implements AppContext
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServletContextWrapper
public ServletContextWrapper(javax.servlet.ServletContext ctx)
getContextName
public java.lang.String getContextName()
- Specified by:
getContextName
in interface AppContext
getExternalContext
public java.lang.Object getExternalContext()
- Specified by:
getExternalContext
in interface AppContext
getMimeType
public java.lang.String getMimeType(java.lang.String file)
- Specified by:
getMimeType
in interface AppContext
isPortlet
public boolean isPortlet()
- Specified by:
isPortlet
in interface AppContext
getRealPath
public java.lang.String getRealPath(java.lang.String path)
- Specified by:
getRealPath
in interface AppContext
getResourcePaths
public java.util.Set<java.lang.String> getResourcePaths(java.lang.String path)
- Specified by:
getResourcePaths
in interface AppContext
getResource
public java.net.URL getResource(java.lang.String path)
throws java.net.MalformedURLException
- Specified by:
getResource
in interface AppContext
- Throws:
java.net.MalformedURLException
log
public void log(java.lang.String msg)
- Specified by:
log
in interface AppContext
log
public void log(java.lang.String message,
java.lang.Throwable throwable)
- Specified by:
log
in interface AppContext
getInitParameterNames
public java.util.Enumeration<java.lang.String> getInitParameterNames()
- Specified by:
getInitParameterNames
in interface AppContext
getInitParameter
public java.lang.String getInitParameter(java.lang.String name)
- Specified by:
getInitParameter
in interface AppContext
getAttributeNames
public java.util.Enumeration<java.lang.String> getAttributeNames()
- Specified by:
getAttributeNames
in interface AppContext
getAttribute
public java.lang.Object getAttribute(java.lang.String name)
- Specified by:
getAttribute
in interface AppContext
removeAttribute
public void removeAttribute(java.lang.String name)
- Specified by:
removeAttribute
in interface AppContext
setAttribute
public void setAttribute(java.lang.String name,
java.lang.Object object)
- Specified by:
setAttribute
in interface AppContext
Copyright © 2008-2010 Apache Software Foundation. All Rights Reserved.