|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.HashMap
velosurf.context.DBReference
velosurf.Velosurf
public class Velosurf
this class is the Velosurf main entry class if you do not use the toolbox.xml mechanism. Unless you specify the config file to use, it will successively search for a configuration file :
from the java property "config.velosurf" (like in 'java -Dconfig.velosurf=/.../velosurf.xml ...' )
from the Velocity property "config.velosurf" (entry of the velocity.properties file)
as './velosurf.xml', './conf/velosurf.xml', './WEB-INF/velosurf.xml', './cfg/velosurf.xml'
| Field Summary | |
|---|---|
private java.lang.String |
configFile
|
private boolean |
initialized
|
| Fields inherited from class velosurf.context.DBReference |
|---|
cache, db, externalParams, userContext |
| Constructor Summary | |
|---|---|
Velosurf()
|
|
Velosurf(java.io.File file)
|
|
Velosurf(java.io.InputStream config)
|
|
| Method Summary | |
|---|---|
java.lang.String |
deobfuscate(java.lang.Object value)
de-obfuscate the given value |
protected static java.lang.String |
findConfig()
|
java.lang.Object |
get(java.lang.Object key)
Generic getter, used to access entities or root attributes by their name. |
java.lang.String |
getSchema()
get the schema |
protected void |
init()
|
protected void |
init(java.io.InputStream config)
|
protected void |
initLogging()
|
java.lang.String |
obfuscate(java.lang.Object value)
obfuscate the given value |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Generic setter used to set external params for children attributes |
void |
setConfigFile(java.lang.String config)
|
| Methods inherited from class velosurf.context.DBReference |
|---|
init, init |
| Methods inherited from class java.util.HashMap |
|---|
clear, clone, containsKey, containsValue, entrySet, isEmpty, keySet, putAll, remove, size, values |
| Methods inherited from class java.util.AbstractMap |
|---|
equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface velosurf.sql.ReadOnlyMap |
|---|
keySet |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Field Detail |
|---|
private boolean initialized
private java.lang.String configFile
| Constructor Detail |
|---|
public Velosurf()
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLException
public Velosurf(java.io.File file)
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLException
public Velosurf(java.io.InputStream config)
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLException| Method Detail |
|---|
public void setConfigFile(java.lang.String config)
protected void initLogging()
protected static java.lang.String findConfig()
throws java.io.IOException
java.io.IOException
protected void init(java.io.InputStream config)
throws java.sql.SQLException,
java.io.IOException
java.sql.SQLException
java.io.IOException
protected void init()
throws java.sql.SQLException,
java.io.IOException
java.sql.SQLException
java.io.IOExceptionpublic java.lang.Object get(java.lang.Object key)
DBReferenceFor attributes, the return value depends upon the type of the attribute :
get in interface java.util.Mapget in interface ReadOnlyMapget in class DBReferencekey - the name of the desired entity or root attribute.
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
DBReference
put in interface java.util.Mapput in class DBReferencekey - name of the external parametervalue - value given to the external parameter
public java.lang.String getSchema()
DBReference
getSchema in class DBReferencepublic java.lang.String obfuscate(java.lang.Object value)
obfuscate in class DBReferencevalue - value to obfuscate
public java.lang.String deobfuscate(java.lang.Object value)
deobfuscate in class DBReferencevalue - value to de-obfuscate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||