Java Doc for RequestContext.java in  » Portal » jetspeed-2.1.3 » org » apache » jetspeed » request » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Portal » jetspeed 2.1.3 » org.apache.jetspeed.request 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.jetspeed.request.RequestContext

All known Subclasses:   org.apache.jetspeed.mockobjects.request.MockRequestContext,  org.apache.jetspeed.request.JetspeedRequestContext,
RequestContext
public interface RequestContext (Code)
Portal Request Context is associated with each request
author:
   David Sean Taylor
version:
   $Id: RequestContext.java,v 1.14 2005/04/29 14:00:48 weaver Exp $


Field Summary
final public static  StringREQUEST_PORTALENV
    


Method Summary
public  PortletWindowgetActionWindow()
    
 ObjectgetAttribute(String key)
     Get a request attribute associated with this single request.
public  CapabilityMapgetCapabilityMap()
    
public  StringgetCharacterEncoding()
    
public  ServletConfiggetConfig()
    
public  ContentDispatchergetContentDispatcher()
    
 LocalegetLocale()
     Gets the locale associated with this request.
public  StringgetMediaType()
    
public  StringgetMimeType()
    
 MapgetObjects()
    
public  ContentPagegetPage()
    
 MapgetParameterMap()
     Use this method to get a map of request parameters on the generalized request, decoupling request parameter manipulation from servlet API.
 StringgetPath()
    

Returns any extra path information associated with the URL the client sent when it made this request.

 PipelinegetPipeline()
    
public  PortalURLgetPortalURL()
     Gets the Portal URL for the current request. The Portal URL object for the current request.
 LanguagegetPreferedLanguage(PortletDefinition portlet)
    

getPreferedLanguage

Returns the Language object for the portlet which most closely matches the prefences of the currently requesting client.
public  MapgetProfileLocators()
    
public  HttpServletRequestgetRequest()
     Gets the HTTP Servlet Request.
 HttpServletRequestgetRequestForWindow(PortletWindow window)
    
 StringgetRequestParameter(String key)
     Use this method to get a request parameter on the generalized request, decoupling request parameter manipulation from servlet API.
public  HttpServletResponsegetResponse()
     Gets the HTTP Servlet Response.
 HttpServletResponsegetResponseForWindow(PortletWindow window)
    

getResponseForWindow

Takes a PortletWindow and generates a HttpServletResponse that accurately represents that PortletWindow's request parameters.
 ObjectgetSessionAttribute(String key)
     Gets an attribute from the session.
 SubjectgetSubject()
     Gets the subject associated with the authorized entity.
 MapgetUserInfoMap(ObjectID oid)
     Returns the user info map of user attributes for a given portlet application.


Parameters:
  oid - The portlet application object id.
 PrincipalgetUserPrincipal()
     Gets the Jetspeed primary user principal associated with the authorized entity.
 ContentPagelocatePage(Profiler profiler, String nonProfiledPath)
    
 ThrowablepopActionFailure(PortletWindow window)
    
 voidsetActionFailure(PortletWindow window, Throwable actionFailure)
    
public  voidsetActionWindow(PortletWindow window)
    
 voidsetAttribute(String key, Object value)
     Sets an attribute into the request.
public  voidsetCapabilityMap(CapabilityMap map)
     Set the capabilityMap.
public  voidsetCharacterEncoding(String enc)
    
public  voidsetContentDispatcher(ContentDispatcher dispatcher)
    
 voidsetLocale(Locale locale)
     Sets the locale associated with this request.
public  voidsetMediaType(String mediaType)
     Set the mediaType.
public  voidsetMimeType(String mimeType)
     Set the Mimetype.
public  voidsetPage(ContentPage page)
    
 voidsetPath(String path)
    

setPath

Allows the manual overriding of path Jetspeed 2 will look to resolves pages and folders.
 voidsetPipeline(Pipeline pipeline)
    
public  voidsetPortalURL(PortalURL portalUrl)
     Sets the Portal URL for the current request.
public  voidsetProfileLocators(Map locators)
    
public  voidsetRequest(HttpServletRequest request)
     Sets the HTTP Servlet Request.
public  voidsetResponse(HttpServletResponse response)
     Sets the HTTP Servlet Response.
 voidsetSessionAttribute(String key, Object value)
     Sets an attribute into the session.
 voidsetSubject(Subject subject)
     Sets the subject associated with the authorized entity.

Field Detail
REQUEST_PORTALENV
final public static String REQUEST_PORTALENV(Code)





Method Detail
getActionWindow
public PortletWindow getActionWindow()(Code)
Get the target Action Window PortletWindow The target portlet action window



getAttribute
Object getAttribute(String key)(Code)
Get a request attribute associated with this single request.
Parameters:
  key - The key of the request attribute The value of the request attribute



getCapabilityMap
public CapabilityMap getCapabilityMap()(Code)
Get the Capability Map



getCharacterEncoding
public String getCharacterEncoding()(Code)
get the character encoding



getConfig
public ServletConfig getConfig()(Code)
Gets the HTTP Servlet Config ServletConfig



getContentDispatcher
public ContentDispatcher getContentDispatcher()(Code)
Gets the content dispatcher for this request ContentDispatcher



getLocale
Locale getLocale()(Code)
Gets the locale associated with this request. The locale associated with this request.



getMediaType
public String getMediaType()(Code)
get the Media Type



getMimeType
public String getMimeType()(Code)
Get the mimeType for the request



getObjects
Map getObjects()(Code)
Return a map of Jetspeed Request Context objects configured via Spring Map a Map of request context objects
since:
   2.1.2



getPage
public ContentPage getPage()(Code)
Gets the target page for this request Page



getParameterMap
Map getParameterMap()(Code)
Use this method to get a map of request parameters on the generalized request, decoupling request parameter manipulation from servlet API. The parameters returned could be on the Http Servlet request, in that case it simply passes through to the servlet request.



getPath
String getPath()(Code)

Returns any extra path information associated with the URL the client sent when it made this request. The extra path information follows the servlet path but precedes the query string. This method returns null if there was no extra path information.

This method should function identically to HttpServletRequest.getPathInfo() except for that it removes ALL portal/portlet navigational state information from the path info string.

the path



getPipeline
Pipeline getPipeline()(Code)
Get the current executing pipeline Pipeline



getPortalURL
public PortalURL getPortalURL()(Code)
Gets the Portal URL for the current request. The Portal URL object for the current request. This method will neverreturn a null value.
throws:
  IllegalStateException - if portalUrlif has not been set.



getPreferedLanguage
Language getPreferedLanguage(PortletDefinition portlet)(Code)

getPreferedLanguage

Returns the Language object for the portlet which most closely matches the prefences of the currently requesting client.
Parameters:
  portlet - Language that matches, as closely as possible, that ofthe requesting client.



getProfileLocators
public Map getProfileLocators()(Code)
Gets the profile locators for this request Profile locators by locator name



getRequest
public HttpServletRequest getRequest()(Code)
Gets the HTTP Servlet Request. This is the Servlet containers raw request object. This request should be wrapped using getPortletRequestForWindow() before being processed by the portlet container. HttpServletRequest



getRequestForWindow
HttpServletRequest getRequestForWindow(PortletWindow window)(Code)

getRequestForWindow

Takes a PortletWindow and generates a HttpServletRequest that accurately represents that PortletWindow's request parameters
Parameters:
  window - PortletWindow that we are build a request for HttpServletRequest that wraps the existing servletcontainer's request that can interpret encoded portlet informationfor this PortletWindow



getRequestParameter
String getRequestParameter(String key)(Code)
Use this method to get a request parameter on the generalized request, decoupling request parameter manipulation from servlet API. This parameter could be on the Http Servlet request, in that case it simply passes through to the servlet request.
Parameters:
  key - The parameter unique key The object associated with the uniqu



getResponse
public HttpServletResponse getResponse()(Code)
Gets the HTTP Servlet Response. This is the Servlet containers raw response object. This response should be wrapped using getPortletResponseForWindow() before being processed by the portlet container. HttpServletResponse



getResponseForWindow
HttpServletResponse getResponseForWindow(PortletWindow window)(Code)

getResponseForWindow

Takes a PortletWindow and generates a HttpServletResponse that accurately represents that PortletWindow's request parameters.
Parameters:
  window - PortletWindow that we are build a response for HttpServletRequest that wraps the existing servletcontainer's request that can interpret encoded portlet informationfor this PortletWindow



getSessionAttribute
Object getSessionAttribute(String key)(Code)
Gets an attribute from the session. This method is decoupled from the servlet api request to facilitate abstractions for testing and other programs not connected to a servlet application.
Parameters:
  key - The key of the attribute The value of the attribute



getSubject
Subject getSubject()(Code)
Gets the subject associated with the authorized entity. This subject can be used to provide credentials and principals. The JAAS subject on this request.



getUserInfoMap
Map getUserInfoMap(ObjectID oid)(Code)
Returns the user info map of user attributes for a given portlet application.


Parameters:
  oid - The portlet application object id. The PortletRequest.USER_INFO map.



getUserPrincipal
Principal getUserPrincipal()(Code)
Gets the Jetspeed primary user principal associated with the authorized entity. The primary principal on this request.



locatePage
ContentPage locatePage(Profiler profiler, String nonProfiledPath)(Code)
Locates a specific page using the profiler and site manager location algorithms from a generalized non-profiled path to the first page matching the path
Parameters:
  profiler - The profiler component to use in the search A Content Page located by the profiler, or null if not found



popActionFailure
Throwable popActionFailure(PortletWindow window)(Code)



setActionFailure
void setActionFailure(PortletWindow window, Throwable actionFailure)(Code)

Parameters:
  actionFailed - The actionFailed to set.



setActionWindow
public void setActionWindow(PortletWindow window)(Code)
Sets the target Portlet Window
Parameters:
  window -



setAttribute
void setAttribute(String key, Object value)(Code)
Sets an attribute into the request. This method is decoupled from the servlet api request to facilitate abstractions for testing and other programs not connected to a servlet application.
Parameters:
  key - The key of the request attribute
Parameters:
  value - The value of the request attribute



setCapabilityMap
public void setCapabilityMap(CapabilityMap map)(Code)
Set the capabilityMap. Used by the CapabilityValve
Parameters:
  capabilityMap -



setCharacterEncoding
public void setCharacterEncoding(String enc)(Code)
set character encoding
Parameters:
  enc -



setContentDispatcher
public void setContentDispatcher(ContentDispatcher dispatcher)(Code)
Sets the content dispatcher for this request
Parameters:
  dispatcher - The ContentDispatcher to use for this request



setLocale
void setLocale(Locale locale)(Code)
Sets the locale associated with this request.
Parameters:
  The - locale associated with this request.



setMediaType
public void setMediaType(String mediaType)(Code)
Set the mediaType. Set by the CapabilityValve
Parameters:
  mediaType -



setMimeType
public void setMimeType(String mimeType)(Code)
Set the Mimetype. Set by the CapabilityValve
Parameters:
  mimeType -



setPage
public void setPage(ContentPage page)(Code)
Sets the target page for this request
Parameters:
  page - The target page



setPath
void setPath(String path)(Code)

setPath

Allows the manual overriding of path Jetspeed 2 will look to resolves pages and folders.
Parameters:
  path -



setPipeline
void setPipeline(Pipeline pipeline)(Code)
Set the current pipeline
Parameters:
  pipeline -



setPortalURL
public void setPortalURL(PortalURL portalUrl)(Code)
Sets the Portal URL for the current request.
throws:
  IllegalStateException - if portalUrlhas been set already.
throws:
  IllegalArgumentException - if a null value is passed in.



setProfileLocators
public void setProfileLocators(Map locators)(Code)
Sets the target page profile locators for this request
Parameters:
  locators - The target profile locators by locator name



setRequest
public void setRequest(HttpServletRequest request)(Code)
Sets the HTTP Servlet Request. This is the Servlet containers raw request object. This request should be wrapped using getPortletRequestForWindow() before being processed by the portlet container. HttpServletRequest



setResponse
public void setResponse(HttpServletResponse response)(Code)
Sets the HTTP Servlet Response. This is the Servlet containers raw response object. This response should be wrapped using getPortletResponseForWindow() before being processed by the portlet container. HttpServletResponse



setSessionAttribute
void setSessionAttribute(String key, Object value)(Code)
Sets an attribute into the session. This method is decoupled from the servlet api request to facilitate abstractions for testing and other programs not connected to a servlet application.
Parameters:
  key - The key of the session attribute
Parameters:
  value - The value of the session attribute



setSubject
void setSubject(Subject subject)(Code)
Sets the subject associated with the authorized entity. This subject can be used to provide credentials and principals.
Parameters:
  subject - The JAAS subject on this request.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.