|
Weaver 3.1.0a1-D1 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The WeaverExecutionContext interface collects the various "context" classes that represent the current state of execution of a Weaver application. This is the primary interface via which W-Bean code interacts with Weaver.
Method Summary | |
Object |
findAttribute(String name)
Finds a scoped attribute. |
WeaverApplicationContext |
getApplicationContext()
Gets the application context. |
Object |
getAttribute(String name,
WeaverAttributeScope scope)
Gets a named attribute from a named scope. |
WeaverBeanContext |
getBeanContext()
Gets the current bean context. |
WeaverLocalContext |
getLocalContext()
Gets the current local context. |
WeaverRequestContext |
getRequestContext()
Gets the current request context. |
WeaverResponseContext |
getResponseContext()
Gets the current response context. |
WeaverSecurityContext |
getSecurityContext()
Get the security context. |
WeaverServletContext |
getServletContext()
Gets the servlet context. |
WeaverSessionContext |
getSessionContext()
Gets the session context. |
void |
removeAttribute(String name)
Removes a named attribute from all scopes. |
void |
removeAttribute(String name,
WeaverAttributeScope scope)
Removes a named attribute from a named scope. |
void |
setAttribute(String name,
WeaverAttributeScope scope,
Object value)
Sets the value of a named attribute in a named scope. |
Method Detail |
public WeaverSecurityContext getSecurityContext()
public Object findAttribute(String name)
name
- Name of the attribute to retrieve.
public Object getAttribute(String name, WeaverAttributeScope scope)
name
- Name of the attribute to retrieve.scope
- Scope to retrieve the attribute from (taken from the WeaverAttributeScope values)
public void setAttribute(String name, WeaverAttributeScope scope, Object value)
name
- Name of the attribute to set.scope
- Name of scope to set the attribute in (taken from the WeaverAttributeScope values).value
- Value to set the attribute to.public void removeAttribute(String name, WeaverAttributeScope scope)
name
- The name of the attribute to remove.scope
- The scope to remove the attribute from (taken from the WeaverAttributeScope values).public void removeAttribute(String name)
name
- The name of the attribute to remove.public WeaverBeanContext getBeanContext()
public WeaverLocalContext getLocalContext()
public WeaverRequestContext getRequestContext()
public WeaverResponseContext getResponseContext()
public WeaverSessionContext getSessionContext()
public WeaverServletContext getServletContext()
public WeaverApplicationContext getApplicationContext()
|
Copyright ©Paul Harvey | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |