Source Code Cross Referenced for ActionRequest.java in  » Portal » gridsphere » javax » portlet » 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 » gridsphere » javax.portlet 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /**
002:         * Copyright 2003 IBM Corporation and Sun Microsystems, Inc.
003:         * All rights reserved.
004:         * Use is subject to license terms.
005:         */package javax.portlet;
006:
007:        /**
008:         * The <CODE>ActionRequest</CODE> represents the request sent to the portlet
009:         * to handle an action.
010:         * It extends the PortletRequest interface to provide action request
011:         * information to portlets.<br>
012:         * The portlet container creates an <CODE>ActionRequest</CODE> object and
013:         * passes it as argument to the portlet's <CODE>processAction</CODE> method.
014:         * 
015:         * @see PortletRequest
016:         * @see RenderRequest
017:         */
018:        public interface ActionRequest extends PortletRequest {
019:
020:            /**
021:             * Retrieves the body of the HTTP request from client to
022:             * portal as binary data using
023:             * an <CODE>InputStream</CODE>. Either this method or
024:             * {@link #getReader} may be called to read the body, but not both.
025:             * <p/>
026:             * For HTTP POST data of type application/x-www-form-urlencoded
027:             * this method throws an <code>IllegalStateException</code>
028:             * as this data has been already processed by the
029:             * portal/portlet-container and is available as request parameters.
030:             *
031:             * @return an input stream containing the body of the request
032:             * @throws java.lang.IllegalStateException
033:             *                             if getReader was already called, or it is a
034:             *                             HTTP POST data of type application/x-www-form-urlencoded
035:             * @throws java.io.IOException if an input or output exception occurred
036:             */
037:            public java.io.InputStream getPortletInputStream()
038:                    throws java.io.IOException;
039:
040:            /**
041:             * Overrides the name of the character encoding used in the body of this
042:             * request. This method must be called prior to reading input
043:             * using {@link #getReader} or {@link #getPortletInputStream}.
044:             * <p/>
045:             * This method only sets the character set for the Reader that the
046:             * {@link #getReader} method returns.
047:             *
048:             * @param	enc	a <code>String</code> containing the name of
049:             * the chararacter encoding.
050:             * @exception		java.io.UnsupportedEncodingException if this is not a valid encoding
051:             * @exception		java.lang.IllegalStateException if this method is called after
052:             * reading request parameters or reading input using
053:             * <code>getReader()</code>
054:             */
055:
056:            public void setCharacterEncoding(String enc)
057:                    throws java.io.UnsupportedEncodingException;
058:
059:            /**
060:             * Retrieves the body of the HTTP request from the client to the portal
061:             * as character data using
062:             * a <code>BufferedReader</code>.  The reader translates the character
063:             * data according to the character encoding used on the body.
064:             * Either this method or {@link #getPortletInputStream} may be called to read the
065:             * body, not both.
066:             * <p/>
067:             * For HTTP POST data of type application/x-www-form-urlencoded
068:             * this method throws an <code>IllegalStateException</code>
069:             * as this data has been already processed by the
070:             * portal/portlet-container and is available as request parameters.
071:             *
072:             * @throws java.io.UnsupportedEncodingException
073:             *                             if the character set encoding used is
074:             *                             not supported and the text cannot be decoded
075:             * @throws java.lang.IllegalStateException
076:             *                             if {@link #getPortletInputStream} method
077:             *                             has been called on this request,  it is a
078:             *                             HTTP POST data of type application/x-www-form-urlencoded.
079:             * @throws java.io.IOException if an input or output exception occurred
080:             * @return	a <code>BufferedReader</code>
081:             * containing the body of the request
082:             * @see #getPortletInputStream
083:             */
084:
085:            public java.io.BufferedReader getReader()
086:                    throws java.io.UnsupportedEncodingException,
087:                    java.io.IOException;
088:
089:            /**
090:             * Returns the name of the character encoding used in the body of this request.
091:             * This method returns <code>null</code> if the request
092:             * does not specify a character encoding.
093:             *
094:             * @return		a <code>String</code> containing the name of
095:             * the chararacter encoding, or <code>null</code>
096:             * if the request does not specify a character encoding.
097:             */
098:
099:            public java.lang.String getCharacterEncoding();
100:
101:            /**
102:             * Returns the MIME type of the body of the request,
103:             * or null if the type is not known.
104:             *
105:             * @return		a <code>String</code> containing the name
106:             * of the MIME type of the request, or null
107:             * if the type is not known.
108:             */
109:
110:            public java.lang.String getContentType();
111:
112:            /**
113:             * Returns the length, in bytes, of the request body
114:             * which is made available by the input stream, or -1 if the
115:             * length is not known.
116:             *
117:             * @return		an integer containing the length of the
118:             * request body or -1 if the length is not known
119:             */
120:
121:            public int getContentLength();
122:
123:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.