|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.spy.SpyObject
net.spy.jwebkit.ContextUtil
public final class ContextUtil
Utilities to get configuration parameters from a context.
| Constructor Summary | |
|---|---|
ContextUtil()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getRelativeFilePath(javax.servlet.ServletContext ctx,
java.lang.String p)
Get a possibly context relative file path. |
static java.lang.String |
getRelativeFilePathParameter(javax.servlet.ServletContext ctx,
java.lang.String name,
java.lang.String def)
Get a context relative file path configuration parameter. |
| Methods inherited from class net.spy.SpyObject |
|---|
getLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContextUtil()
| Method Detail |
|---|
public static java.lang.String getRelativeFilePath(javax.servlet.ServletContext ctx,
java.lang.String p)
ctx - the servlet contextp - the input path
public static java.lang.String getRelativeFilePathParameter(javax.servlet.ServletContext ctx,
java.lang.String name,
java.lang.String def)
name - the name of the config parameterdef - the default value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||