|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectoracle.adf.view.faces.webapp.wrapper.ContextWrapper
This class wraps a ServletContext or PortletContext object and provides the functionality needed by ADFFaces.
| Constructor Summary | |
ContextWrapper()
|
|
| Method Summary | |
abstract java.lang.Object |
getContext()
Returns the wrapped context object. |
abstract java.lang.String |
getInitParameter(java.lang.String name)
Returns a String containing the value of the named context-wide initialization
parameter, or null if the parameter does not exist. |
IOWrapperFactory |
getIOFactory()
Returns an IOWrapperFactory for a request and a response within the current FacesContext. |
abstract IOWrapperFactory |
getIOFactory(java.lang.Object request,
java.lang.Object response)
Returns an IOWrapperFactory for a request and response item within this context. |
abstract java.util.Map |
getMap()
Returns a mutable map of attributes. |
abstract java.io.InputStream |
getResourceAsStream(java.lang.String path)
Returns the resource located at the named path as an InputStream object. |
abstract java.io.File |
getTempDir()
Returns a file containing the temporary directory of the current container. |
abstract boolean |
isServletContext()
Returns true is this is a ServletContext or false if it is a portlet
context. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ContextWrapper()
| Method Detail |
public abstract java.io.InputStream getResourceAsStream(java.lang.String path)
InputStream object.
The data in the InputStream can be of any type or length. The path must begin
with a "/" and is interpreted as relative to the current context root. This method returns
null if no resource exists at the specified path.
path - a String specifying the path to the resource
InputStream containing the resource or null if no
resource exists at the specified pathpublic abstract java.lang.String getInitParameter(java.lang.String name)
String containing the value of the named context-wide initialization
parameter, or null if the parameter does not exist.
name - a String containing the name of the parameter whose value is requested
String containing the value of the specified initialization parameterpublic abstract java.util.Map getMap()
public IOWrapperFactory getIOFactory()
java.lang.IllegalArgumentException - when the request or response objects are not of the appropriate
type.
java.lang.IllegalStateException - if there is no FacesContext currently established.
public abstract IOWrapperFactory getIOFactory(java.lang.Object request,
java.lang.Object response)
request - the request objectresponse - the response object
java.lang.IllegalArgumentException - when the request or response objects are not of the appropriate
type.public abstract java.io.File getTempDir()
javax.servlet.context.tempdir attribute
on the ServletContext. For the Portal, we'll first look on the PortletContext for the
javax.servlet.context.tempdir attribute. If that is not available we'll create
a temporary directory in the webapp's web-inf directory assuming we have permissions to write
to this directory. If all else fails, this method will return null.
public abstract boolean isServletContext()
true is this is a ServletContext or false if it is a portlet
context.
public abstract java.lang.Object getContext()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||