public abstract class RequestContextFactory extends Object
Constructor and Description |
---|
RequestContextFactory() |
Modifier and Type | Method and Description |
---|---|
abstract RequestContext |
createContext(javax.faces.context.ExternalContext ec)
Creates a RequestContext from an ExternalContext.
|
abstract RequestContext |
createContext(Object context,
Object request)
Deprecated.
This method does not work in a Portal environment. It will
only work with a ServletRequest. Please use
createContext(ExternalContext) which is container
agnostic. |
static RequestContextFactory |
getFactory()
Retrieve the current RequestContextFactory.
|
static void |
setFactory(RequestContextFactory factory)
Store the current RequestContextFactory.
|
public static RequestContextFactory getFactory()
public static void setFactory(RequestContextFactory factory)
@Deprecated public abstract RequestContext createContext(Object context, Object request)
createContext(ExternalContext)
which is container
agnostic.context
- an object which must be a ServletContextrequest
- an object which must be a ServletRequestpublic abstract RequestContext createContext(javax.faces.context.ExternalContext ec)
ec
- The current ExternalContext.Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.