public class Context extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Context.Builder |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(String name) |
Enumeration |
getAttributeNames() |
String |
getContextPath() |
String |
getInitParameter(String name) |
Enumeration |
getInitParameterNames() |
int |
getMajorVersion() |
String |
getMimeType(String file) |
int |
getMinorVersion() |
String |
getRealPath(String path) |
URL |
getResource(String path) |
InputStream |
getResourceAsStream(String path) |
Set |
getResourcePaths(String path) |
String |
getServerInfo() |
String |
getServletContextName() |
String |
path() |
void |
removeAttribute(String name) |
void |
setAttribute(String name,
Object object) |
public String path()
public String getContextPath()
public int getMajorVersion()
public int getMinorVersion()
public URL getResource(String path) throws MalformedURLException
MalformedURLExceptionpublic InputStream getResourceAsStream(String path)
public String getServerInfo()
public Enumeration getInitParameterNames()
public Enumeration getAttributeNames()
public void removeAttribute(String name)
public String getServletContextName()
Copyright © 2015. All Rights Reserved.