Java Doc for Request.java in  » Library » Tapestry » org » apache » tapestry » services » 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 » Library » Tapestry » org.apache.tapestry.services 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.tapestry.services.Request

All known Subclasses:   org.apache.tapestry.internal.services.RequestImpl,
Request
public interface Request (Code)
Generic version of javax.servlet.http.HttpServletRequest , used to encapsulate the Servlet API version, and to help bridge the differences between Servlet API and Porlet API.




Method Summary
 StringgetContextPath()
     Returns the context path.
 longgetDateHeader(String name)
     Returns the value of the specified request header as a long value that represents a Date object.
 StringgetHeader(String name)
     Returns the named header as a string, or null if not found.
 List<String>getHeaderNames()
     Returns the names of all headers in the request.
 LocalegetLocale()
     Returns the locale of the client as determined from the request headers.
 StringgetParameter(String name)
     Returns the query parameter value for the given name.
 List<String>getParameterNames()
     Returns a list of query parameter names, in alphabetical order.
 String[]getParameters(String name)
     Returns the parameter values for the given name.
 StringgetPath()
     Returns the path portion of the request, which starts with a "/" and contains everything up to the start of the query parameters.
 SessiongetSession(boolean create)
     Gets the Session .
 voidsetEncoding(String requestEncoding)
     Sets the encoding of the request, which must occur before any parameters for the request are read.



Method Detail
getContextPath
String getContextPath()(Code)
Returns the context path. This always starts with a "/" character and does not end with one, with the exception of servlets in the root context, which return the empty string.



getDateHeader
long getDateHeader(String name)(Code)
Returns the value of the specified request header as a long value that represents a Date object. Use this method with headers that contain dates, such as If-Modified-Since.

The date is returned as the number of milliseconds since January 1, 1970 GMT. The header name is case insensitive.

If the request did not have a header of the specified name, this method returns -1. If the header can't be converted to a date, the method throws an IllegalArgumentException.
Parameters:
  name - a String specifying the name of the header a long value representing the date specified in the header expressedas the number of milliseconds since January 1, 1970 GMT, or -1 if the named headerwas not included with the reqest
exception:
  IllegalArgumentException - If the header value can't be converted to a date




getHeader
String getHeader(String name)(Code)
Returns the named header as a string, or null if not found.



getHeaderNames
List<String> getHeaderNames()(Code)
Returns the names of all headers in the request.



getLocale
Locale getLocale()(Code)
Returns the locale of the client as determined from the request headers.



getParameter
String getParameter(String name)(Code)
Returns the query parameter value for the given name. Returns null if no such parameter is in the request. For a multi-valued parameter, returns just the first value.



getParameterNames
List<String> getParameterNames()(Code)
Returns a list of query parameter names, in alphabetical order.



getParameters
String[] getParameters(String name)(Code)
Returns the parameter values for the given name. Returns null if no such parameter is in the request.

TODO: Shouldn't this move to FormParameterLookup ?




getPath
String getPath()(Code)
Returns the path portion of the request, which starts with a "/" and contains everything up to the start of the query parameters. It doesn't include the context path.



getSession
Session getSession(boolean create)(Code)
Gets the Session . If create is false and the session has not be created previously, returns null.
Parameters:
  create - true to force the creation of the session the session (or null if create is false the session has not been previously created)



setEncoding
void setEncoding(String requestEncoding)(Code)
Sets the encoding of the request, which must occur before any parameters for the request are read.
Parameters:
  requestEncoding - charset used when parsing parameters



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