|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.velocityweb.context.AppContext
org.velocityweb.context.WebAppContext
Applicatin context for web request
| Nested Class Summary | |
static class |
WebAppContext.ResponseType
response type, text(normal request) or binary(download) |
| Constructor Summary | |
WebAppContext(java.lang.Object dataSource,
int transactionIsolation,
java.util.Map context,
java.util.ResourceBundle resourceBundle,
Controller controller)
contructor |
|
| Method Summary | |
java.lang.Object |
getCurrentUser()
get current logined user |
WebAppContext.ResponseType |
getResponseType()
get response type |
void |
put(java.lang.String tempateTagKey,
java.lang.Object tempateTagvalue)
put dynamic value to a key, for later merge with static template HTML file |
void |
setCurrentUser(java.lang.Object currentUser)
set current logined user |
void |
setResponseType(WebAppContext.ResponseType responseType)
set response type |
| Methods inherited from class org.velocityweb.context.AppContext |
closeConnection, commitAndClose, getBeginTime, getConnection, getController, getResourceBundle, getTransactionIsolation, rollbackAndClose |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WebAppContext(java.lang.Object dataSource,
int transactionIsolation,
java.util.Map context,
java.util.ResourceBundle resourceBundle,
Controller controller)
dataSource - data source, use ConnectionPoolDataSource will be bettertransactionIsolation - transaction isolation levelcontext - Velocity/Freemarker contextresourceBundle - resource bundlecontroller - | Method Detail |
public java.lang.Object getCurrentUser()
public void setCurrentUser(java.lang.Object currentUser)
currentUser - public WebAppContext.ResponseType getResponseType()
public void setResponseType(WebAppContext.ResponseType responseType)
responseType - response type
public void put(java.lang.String tempateTagKey,
java.lang.Object tempateTagvalue)
tempateTagKey - dynamic item keytempateTagvalue - dynamic item value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||