| org.apache.beehive.controls.runtime.bean.ControlContainerContext org.apache.beehive.controls.runtime.servlet.ServletBeanContext
All known Subclasses: org.apache.beehive.netui.pageflow.internal.PageFlowBeanContext,
ServletBeanContext | public class ServletBeanContext extends ControlContainerContext (Code) | | The ServletBeanContext provides a ControlBeanContext implementation that offers services
and a resource management context that is appropriate to web tier usage of controls.
|
ServletBeanContext | public ServletBeanContext()(Code) | | |
endContext | public void endContext()(Code) | | Ends the current execution context, and resetes the current active ServletRequest.
|
getResource | public URL getResource(String name, BeanContextChild bcc) throws IllegalArgumentException(Code) | | Override BeanContext.getResource() so it delegates to the current ServletContext.
Parameters: name - the resource name Parameters: bcc - the specified child a URL for the namedresource for the specified child throws: IllegalArgumentException - IllegalArgumentException if the resource is not valid |
getResourceAsStream | public InputStream getResourceAsStream(String name, BeanContextChild bcc) throws IllegalArgumentException(Code) | | Override BeanContext.getResourceAsStream() so it delegates to the current ServletContext.
Parameters: name - the resource name Parameters: bcc - the specified child an InputStream for reading the resource, ornull if the resource could not be found. throws: IllegalArgumentException - IllegalArgumentException if the resource is not valid |
getService | public T getService(Class<T> serviceClass, Object selector)(Code) | | Override ControlBeanContext.getService(). A control bean creates its bean context using the
ControlBeanContextFactory service provided by this context. A control bean will attempt to create
its context before adding its self to this context as a child. This creates a chicken/egg problem since
only a child of a context may request a service from it.
This method provides a way to crack the chicken/egg problem by first trying to get the service using the
control bean context's getService() method, and if that call returns null and the requested service is
the ControlBeanContextFactory then returning an instance of the service provider.
Parameters: serviceClass - Parameters: selector - |
getServletContext | public ServletContext getServletContext()(Code) | | Returns the ServletContext associated with this context (or null if not currently
processing a request)
|
getServletRequest | public ServletRequest getServletRequest()(Code) | | Returns the ServletRequest associated with this context (or null if not currently
processing a request)
|
getServletResponse | public ServletResponse getServletResponse()(Code) | | Returns the ServletResponse associated with this context (or null if not currently
processing a request)
|
initialize | public void initialize()(Code) | | Called by BeanContextSupport superclass during construction and deserialization to
initialize subclass transient state
|
setWrappers | public void setWrappers(boolean useWrappers)(Code) | | Enables/disable the use of request/response wrappers for this context. By default,
wrappers are enabled if this API is not invoked.
|
useWrappers | protected boolean useWrappers()(Code) | | |
|
|