Package com.xpn.xwiki.web
Class XWikiServletContext
- java.lang.Object
-
- com.xpn.xwiki.web.XWikiServletContext
-
- All Implemented Interfaces:
XWikiEngineContext
public class XWikiServletContext extends Object implements XWikiEngineContext
-
-
Constructor Summary
Constructors Constructor Description XWikiServletContext(javax.servlet.ServletContext scontext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getAttribute(String name)
String
getMimeType(String filename)
String
getRealPath(String path)
URL
getResource(String name)
InputStream
getResourceAsStream(String name)
javax.servlet.ServletContext
getServletContext()
void
setAttribute(String name, Object value)
-
-
-
Method Detail
-
getServletContext
public javax.servlet.ServletContext getServletContext()
-
getAttribute
public Object getAttribute(String name)
- Specified by:
getAttribute
in interfaceXWikiEngineContext
-
setAttribute
public void setAttribute(String name, Object value)
- Specified by:
setAttribute
in interfaceXWikiEngineContext
-
getRealPath
public String getRealPath(String path)
- Specified by:
getRealPath
in interfaceXWikiEngineContext
-
getResource
public URL getResource(String name) throws MalformedURLException
- Specified by:
getResource
in interfaceXWikiEngineContext
- Throws:
MalformedURLException
-
getResourceAsStream
public InputStream getResourceAsStream(String name)
- Specified by:
getResourceAsStream
in interfaceXWikiEngineContext
-
getMimeType
public String getMimeType(String filename)
- Specified by:
getMimeType
in interfaceXWikiEngineContext
-
-