| 
Esri Geoportal Server 1.0 
 | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.gpt.framework.context.RequestContext
public class RequestContext
Context for a request.
This class is intended for use by a single execution thread.
| Field Summary | |
|---|---|
static String | 
REFERENCEKEY
The key used to store the instance within the ServletRequest.  | 
| Constructor Summary | |
|---|---|
protected  | 
RequestContext()
Default constructor.  | 
protected  | 
RequestContext(ServletRequest request)
Constructs with an associated servlet request.  | 
| Method Summary | |
|---|---|
 void | 
addToSession(String key,
             Object obj)
Adds the to session.  | 
static RequestContext | 
extract(ServletRequest request)
Extracts the request context from the current servlet request.  | 
 Object | 
extractFromSession(String key)
Extract an object from session.  | 
 ApplicationConfiguration | 
getApplicationConfiguration()
Gets the application configuration.  | 
 ApplicationContext | 
getApplicationContext()
Gets the context for this application.  | 
 CatalogConfiguration | 
getCatalogConfiguration()
Gets the metadata catalog configuration associated with this application.  | 
 ConnectionBroker | 
getConnectionBroker()
Gets the broker for database access.  | 
 IdentityConfiguration | 
getIdentityConfiguration()
Gets the identity configuration associated with this application.  | 
 Logger | 
getLogger()
Gets the logger.  | 
 MailConfiguration | 
getMailConfiguration()
Gets the mail configuration associated with this application.  | 
 Map<String,Object> | 
getObjectMap()
Gets the free form object map associated with this request.  | 
 ServletRequest | 
getServletRequest()
Gets underlying servlet request.  | 
 User | 
getUser()
Gets the user associated with this request.  | 
 boolean | 
getViewerExecutesJavascript()
Gets the viewer executes javascript.  | 
 IdentityAdapter | 
newIdentityAdapter()
Instantiates a new Identity adapter.  | 
 void | 
onExecutionPhaseCompleted()
Flags the end of the execution phase of a request.  | 
 void | 
onPrepareViewCompleted()
Flags the end of the execution phase of a request.  | 
static String | 
resolveBaseContextPath(HttpServletRequest request)
Resolves the base context path associated with an HTTP request.  | 
protected  void | 
setUser(User user)
Sets the user associated with this request.  | 
 void | 
setViewerExecutesJavascript(boolean viewerExecutedJavascript)
Sets the viewer executes javascript.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final String REFERENCEKEY
| Constructor Detail | 
|---|
protected RequestContext()
protected RequestContext(ServletRequest request)
request - the current servlet request| Method Detail | 
|---|
public ApplicationConfiguration getApplicationConfiguration()
public ApplicationContext getApplicationContext()
public CatalogConfiguration getCatalogConfiguration()
public ConnectionBroker getConnectionBroker()
public IdentityConfiguration getIdentityConfiguration()
public Logger getLogger()
public MailConfiguration getMailConfiguration()
public ServletRequest getServletRequest()
public Map<String,Object> getObjectMap()
public User getUser()
protected void setUser(User user)
user - the userpublic boolean getViewerExecutesJavascript()
public void setViewerExecutesJavascript(boolean viewerExecutedJavascript)
viewerExecutedJavascript - the new viewer executed javascriptpublic static RequestContext extract(ServletRequest request)
request - the current servlet request
public static String resolveBaseContextPath(HttpServletRequest request)
public IdentityAdapter newIdentityAdapter()
public void onExecutionPhaseCompleted()
public void onPrepareViewCompleted()
public void addToSession(String key,
                         Object obj)
key - the keyobj - the objpublic Object extractFromSession(String key)
key - the key
  | 
Esri Geoportal Server 1.0 
 | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||