Java Doc for HttpPresentationRequest.java in  » J2EE » Enhydra-Application-Framework » com » lutris » appserver » server » httpPresentation » 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 » J2EE » Enhydra Application Framework » com.lutris.appserver.server.httpPresentation 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.lutris.appserver.server.httpPresentation.HttpPresentationRequest

All known Subclasses:   com.lutris.appserver.server.httpPresentation.servlet.ServletHttpPresentationRequest,
HttpPresentationRequest
public interface HttpPresentationRequest (Code)
Object passed to presentation objects that is used to access HTTP request data.




Method Summary
public  StringgetAppFileURIPath(String file)
     Get the URI path for a file in the application.
public  StringgetApplicationPath()
     Returns the part of the request URI that refers to the application.
public  StringgetAuthType()
     Returns the authentication scheme of the request, or null if none.
public  intgetContentLength()
     Returns the size of the request entity data, or -1 if not known.
public  StringgetContentType()
     Returns the Internet Media Type of the request entity data, or null if not known.
public  Cookie[]getCookies()
     Gets the array of cookies found in this request.
public  longgetDateHeader(String name)
     Returns the value of a date header field, or -1 if not found.
public  StringgetHeader(String name)
     Returns the value of a header field, or null if not known.
public  EnumerationgetHeaderNames()
     Returns an enumeration of strings representing the header names for this request.
public  HttpServletRequestgetHttpServletRequest()
     Returns the original HttpServletRequest.
public  HttpPresentationInputStreamgetInputStream()
     Returns an input stream for reading the request body.
public  intgetIntHeader(String name)
     Returns the value of an integer header field, or -1 if not found.
public  StringgetMethod()
     Returns the method with which the request was made.
public  StringgetParameter(String name)
     Returns a string containing the lone value of the specified query parameter, or null if the parameter does not exist.
public  EnumerationgetParameterNames()
     Returns the parameter names for this request as an enumeration of strings, or an empty enumeration if there are no parameters.
public  String[]getParameterValues(String name)
     Returns the values of the specified query parameter for the request as an array of strings, or a 0 length array if the named parameter does not exist.
public  StringgetPathInfo()
     Returns optional extra path information following the presentation path, but immediately preceding the query string.
public  StringgetPathTranslated()
     Returns extra path information translated to a real path.
public  StringgetPresentationObjectPath()
     Returns the part of the request URI that refers to the presentation object being invoked.
public  StringgetPresentationObjectRelativePath()
     Returns the part of the request URI after the presentation manager servlet, upto and including the presentation object .po, but not any path info.
public  StringgetPresentationPath()
     Returns the part of the request URI that refers to the application object being invoked.
public  StringgetPresentationURI()
     Returns the presentation URI.
public  StringgetProtocol()
     Returns the protocol and version of the request as a string of the form <protocol>/<major version>.<minor version>.
public  StringgetQueryString()
     Returns the query string part of the presentation URI, or null if none.
public  StringgetRemoteAddr()
     Returns the IP address of the agent that sent the request.
public  StringgetRemoteHost()
     Returns the fully qualified host name of the agent that sent the request.
public  StringgetRemoteUser()
     Returns the name of the user making this request, or null if not known.
public  StringgetRequestURI()
     Returns the request URI as a URL.
public  StringgetScheme()
     Returns the scheme of the URL used in this request, for example "http", "https", or "ftp".
public  StringgetServerName()
     Returns the host name of the server that received the request.
public  intgetServerPort()
     Returns the port number on which this request was received.
public  booleanisRequestedSessionIdFromCookie()
    
public  booleanisRequestedSessionIdFromUrl()
    
public  voidsetRequestedSessionIdFromCookie(boolean isFromCookie)
    
public  voidsetRequestedSessionIdFromUrl(boolean isFromUrl)
    



Method Detail
getAppFileURIPath
public String getAppFileURIPath(String file) throws HttpPresentationException(Code)
Get the URI path for a file in the application. This converts a path to the file part of the URL. It adds in the reference to application servlet.
Parameters:
  file - File with in the application. Currently this mustbe a path relative to the presentation prefix. The file path portion of the URL, starting witha /.



getApplicationPath
public String getApplicationPath() throws HttpPresentationException(Code)
Returns the part of the request URI that refers to the application. Analogous to the CGI variable SCRIPT_NAME.



getAuthType
public String getAuthType() throws HttpPresentationException(Code)
Returns the authentication scheme of the request, or null if none. Same as the CGI variable AUTH_TYPE.



getContentLength
public int getContentLength() throws HttpPresentationException(Code)
Returns the size of the request entity data, or -1 if not known. Same as the CGI variable CONTENT_LENGTH.



getContentType
public String getContentType() throws HttpPresentationException(Code)
Returns the Internet Media Type of the request entity data, or null if not known. Same as the CGI variable CONTENT_TYPE.



getCookies
public Cookie[] getCookies() throws HttpPresentationException(Code)
Gets the array of cookies found in this request. The array of cookies found in this request.



getDateHeader
public long getDateHeader(String name) throws HttpPresentationException(Code)
Returns the value of a date header field, or -1 if not found. The case of the header field name is ignored.
Parameters:
  name - the case-insensitive header field name



getHeader
public String getHeader(String name) throws HttpPresentationException(Code)
Returns the value of a header field, or null if not known. The case of the header field name is ignored.
Parameters:
  name - the case-insensitive header field name



getHeaderNames
public Enumeration getHeaderNames() throws HttpPresentationException(Code)
Returns an enumeration of strings representing the header names for this request. Some server implementations do not allow headers to be accessed in this way, in which case this method will return null.



getHttpServletRequest
public HttpServletRequest getHttpServletRequest()(Code)
Returns the original HttpServletRequest.



getInputStream
public HttpPresentationInputStream getInputStream() throws HttpPresentationException(Code)
Returns an input stream for reading the request body.



getIntHeader
public int getIntHeader(String name) throws HttpPresentationException(Code)
Returns the value of an integer header field, or -1 if not found. The case of the header field name is ignored.
Parameters:
  name - the case-insensitive header field name



getMethod
public String getMethod() throws HttpPresentationException(Code)
Returns the method with which the request was made. The returned value can be "GET", "HEAD", "POST", or an extension method. Same as the CGI variable REQUEST_METHOD.



getParameter
public String getParameter(String name) throws HttpPresentationException(Code)
Returns a string containing the lone value of the specified query parameter, or null if the parameter does not exist. Presentation writers should use this method only when they are sure that there is only one value for the parameter. If the parameter has (or could have) multiple values, then use getParameterValues. If a multiple valued parameter name is passed as an argument, the return value is implementation dependent.
Parameters:
  name - the name of the parameter whose value is required.
See Also:   HttpPresentationRequest.getParameterValues



getParameterNames
public Enumeration getParameterNames() throws HttpPresentationException(Code)
Returns the parameter names for this request as an enumeration of strings, or an empty enumeration if there are no parameters.



getParameterValues
public String[] getParameterValues(String name) throws HttpPresentationException(Code)
Returns the values of the specified query parameter for the request as an array of strings, or a 0 length array if the named parameter does not exist.
Parameters:
  name - the name of the parameter whose value is required.



getPathInfo
public String getPathInfo() throws HttpPresentationException(Code)
Returns optional extra path information following the presentation path, but immediately preceding the query string. Returns null if not specified. Same as the CGI variable PATH_INFO.



getPathTranslated
public String getPathTranslated() throws HttpPresentationException(Code)
Returns extra path information translated to a real path. Returns null if no extra path information specified. Same as the CGI variable PATH_TRANSLATED.



getPresentationObjectPath
public String getPresentationObjectPath() throws HttpPresentationException(Code)
Returns the part of the request URI that refers to the presentation object being invoked.



getPresentationObjectRelativePath
public String getPresentationObjectRelativePath() throws HttpPresentationException(Code)
Returns the part of the request URI after the presentation manager servlet, upto and including the presentation object .po, but not any path info.



getPresentationPath
public String getPresentationPath() throws HttpPresentationException(Code)
Returns the part of the request URI that refers to the application object being invoked. Analogous to the CGI variable SCRIPT_NAME.



getPresentationURI
public String getPresentationURI() throws HttpPresentationException(Code)
Returns the presentation URI.



getProtocol
public String getProtocol() throws HttpPresentationException(Code)
Returns the protocol and version of the request as a string of the form <protocol>/<major version>.<minor version>. Same as the CGI variable SERVER_PROTOCOL.



getQueryString
public String getQueryString() throws HttpPresentationException(Code)
Returns the query string part of the presentation URI, or null if none. Same as the CGI variable QUERY_STRING.



getRemoteAddr
public String getRemoteAddr() throws HttpPresentationException(Code)
Returns the IP address of the agent that sent the request. Same as the CGI variable REMOTE_ADDR.



getRemoteHost
public String getRemoteHost() throws HttpPresentationException(Code)
Returns the fully qualified host name of the agent that sent the request. Same as the CGI variable REMOTE_HOST.



getRemoteUser
public String getRemoteUser() throws HttpPresentationException(Code)
Returns the name of the user making this request, or null if not known. The user name is set with HTTP authentication. Whether the user name will continue to be sent with each subsequent communication is browser-dependent. Same as the CGI variable REMOTE_USER.



getRequestURI
public String getRequestURI() throws HttpPresentationException(Code)
Returns the request URI as a URL.



getScheme
public String getScheme()(Code)
Returns the scheme of the URL used in this request, for example "http", "https", or "ftp". Different schemes have different rules for constructing URLs, as noted in RFC 1738. The URL used to create a request may be reconstructed using this scheme, the server name and port, and additional information such as URIs.



getServerName
public String getServerName()(Code)
Returns the host name of the server that received the request. Same as the CGI variable SERVER_NAME.



getServerPort
public int getServerPort()(Code)
Returns the port number on which this request was received. Same as the CGI variable SERVER_PORT.



isRequestedSessionIdFromCookie
public boolean isRequestedSessionIdFromCookie() throws HttpPresentationException(Code)
Indicates whether client submitted their session id through a cookie true if client submitted their sessionId via a cookie, false otherwise



isRequestedSessionIdFromUrl
public boolean isRequestedSessionIdFromUrl() throws HttpPresentationException(Code)
Indicates whether client submitted their sessionId through a rewritten url true if client submitted their sessionId via a rewritten url, false otherwise



setRequestedSessionIdFromCookie
public void setRequestedSessionIdFromCookie(boolean isFromCookie) throws HttpPresentationException(Code)



setRequestedSessionIdFromUrl
public void setRequestedSessionIdFromUrl(boolean isFromUrl) throws HttpPresentationException(Code)



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