Source Code Cross Referenced for ActionRequest.java in  » Portal » Open-Portal » 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 » Open Portal » 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:             *
033:             * @exception java.lang.IllegalStateException
034:             *                   if getReader was already called, or it is a 
035:             *                   HTTP POST data of type application/x-www-form-urlencoded
036:             * @exception java.io.IOException
037:             *                   if an input or output exception occurred
038:             */
039:            public java.io.InputStream getPortletInputStream()
040:                    throws java.io.IOException;
041:
042:            /**
043:             * Overrides the name of the character encoding used in the body of this
044:             * request. This method must be called prior to reading input 
045:             * using {@link #getReader} or {@link #getPortletInputStream}.
046:             * <p>
047:             * This method only sets the character set for the Reader that the
048:             * {@link #getReader} method returns.
049:             *
050:             * @param	enc	a <code>String</code> containing the name of 
051:             *			the chararacter encoding.
052:             *
053:             * @exception		java.io.UnsupportedEncodingException if this is not a valid encoding
054:             * @exception		java.lang.IllegalStateException      if this method is called after 
055:             *                                   reading request parameters or reading input using 
056:             *                                   <code>getReader()</code>
057:             */
058:
059:            public void setCharacterEncoding(String enc)
060:                    throws java.io.UnsupportedEncodingException;
061:
062:            /**
063:             * Retrieves the body of the HTTP request from the client to the portal
064:             * as character data using
065:             * a <code>BufferedReader</code>.  The reader translates the character
066:             * data according to the character encoding used on the body.
067:             * Either this method or {@link #getPortletInputStream} may be called to read the
068:             * body, not both.
069:             * <p>
070:             * For HTTP POST data of type application/x-www-form-urlencoded
071:             * this method throws an <code>IllegalStateException</code>
072:             * as this data has been already processed by the 
073:             * portal/portlet-container and is available as request parameters.
074:             *
075:             * @return	a <code>BufferedReader</code>
076:             *		containing the body of the request	
077:             *
078:             * @exception  java.io.UnsupportedEncodingException 	
079:             *                 if the character set encoding used is 
080:             * 		     not supported and the text cannot be decoded
081:             * @exception  java.lang.IllegalStateException   	
082:             *                 if {@link #getPortletInputStream} method
083:             * 		     has been called on this request,  it is a 
084:             *                   HTTP POST data of type application/x-www-form-urlencoded.
085:             * @exception  java.io.IOException
086:             *                 if an input or output exception occurred
087:             *
088:             * @see #getPortletInputStream
089:             */
090:
091:            public java.io.BufferedReader getReader()
092:                    throws java.io.UnsupportedEncodingException,
093:                    java.io.IOException;
094:
095:            /**
096:             * Returns the name of the character encoding used in the body of this request.
097:             * This method returns <code>null</code> if the request
098:             * does not specify a character encoding.
099:             *
100:             * @return		a <code>String</code> containing the name of 
101:             *			the chararacter encoding, or <code>null</code>
102:             *			if the request does not specify a character encoding.
103:             */
104:
105:            public java.lang.String getCharacterEncoding();
106:
107:            /**
108:             * Returns the MIME type of the body of the request, 
109:             * or null if the type is not known.
110:             *
111:             * @return		a <code>String</code> containing the name 
112:             *			of the MIME type of the request, or null 
113:             *                    if the type is not known.
114:             */
115:
116:            public java.lang.String getContentType();
117:
118:            /**
119:             * Returns the length, in bytes, of the request body 
120:             * which is made available by the input stream, or -1 if the
121:             * length is not known. 
122:             *
123:             *
124:             * @return		an integer containing the length of the 
125:             * 			request body or -1 if the length is not known
126:             *
127:             */
128:
129:            public int getContentLength();
130:
131:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.