net.trajano.twiff.adapter
Class RequestAdapter

java.lang.Object
  extended by net.trajano.twiff.adapter.RequestAdapter
Direct Known Subclasses:
ActionServletRequestAdapter, ViewServletRequestAdapter

public class RequestAdapter
extends Object

This provides access to the ServletRequest data. Adapters like this are meant to remove the implicit casting performed by those that use it.

Author:
Archimedes Trajano

Constructor Summary
RequestAdapter(ServletRequest request)
          Creates the adapter.
 
Method Summary
 MutablePicoContainer getContainer()
          Returns the PicoContainer stored in the request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestAdapter

public RequestAdapter(ServletRequest request)
Creates the adapter.

Parameters:
request - the request to adapt
Method Detail

getContainer

public final MutablePicoContainer getContainer()
Returns the PicoContainer stored in the request. The container is stored in the attribute TwiffInternal.REQUEST_CONTAINER_KEY.

Returns:
the application level container.


Copyright © 2004-2005 trajano.net. All Rights Reserved.