Java Doc for HttpRequest.java in  » J2EE » openejb3 » org » apache » openejb » server » httpd » 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 » openejb3 » org.apache.openejb.server.httpd 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.openejb.server.httpd.HttpRequest

All known Subclasses:   org.apache.openejb.server.httpd.ServletRequestAdapter,  org.apache.openejb.server.httpd.HttpRequestImpl,  org.apache.openejb.server.axis2.Axis2Request,  org.apache.openejb.server.axis.AxisRequest,
HttpRequest
public interface HttpRequest extends java.io.Serializable(Code)
An interface to take care of HTTP Requests. It parses headers, content, form and url parameters.

Inner Class :public static enum Method

Field Summary
final public static  StringHEADER_ACCEPT
    
final public static  StringHEADER_ACCEPT_ENCODING
    
final public static  StringHEADER_ACCEPT_LANGUAGE
    
final public static  StringHEADER_CACHE_CONTROL
    
final public static  StringHEADER_CONNECTION
    
final public static  StringHEADER_CONTENT_LENGTH
    
final public static  StringHEADER_CONTENT_TYPE
    
final public static  StringHEADER_COOKIE
    
final public static  StringHEADER_HOST
    
final public static  StringHEADER_SET_COOKIE
    
final public static  StringHEADER_USER_AGENT
    
final public static  StringSERVLET_CONTEXT
     If the https server implementation is based on Servlets, the real ServletContext will be registered in the request attributes using this name.
final public static  StringSERVLET_REQUEST
     If the https server implementation is based on Servlets, the real HttpServletRequest will be registered in the request attributes using this name.
final public static  StringSERVLET_RESPONSE
     If the https server implementation is based on Servlets, the real HttpServletResponse will be registered in the request attributes using this name.


Method Summary
public  ObjectgetAttribute(String name)
    
 intgetContentLength()
    
 StringgetContentType()
    
public  StringgetHeader(String name)
     Gets a header based the header name passed in.
 InputStreamgetInputStream()
    
public  MethodgetMethod()
     Gets an integer value of the request method.
 StringgetParameter(String name)
     Gets a form or URL query parameter based on the name passed in.
 MapgetParameters()
    
 StringgetRemoteAddr()
    
public  HttpSessiongetSession(boolean create)
     Returns the current HttpSession associated with this request or, if there is no current session and create is true, returns a new session.
public  HttpSessiongetSession()
     Returns the current session associated with this request, or if the request does not have a session, creates one.
public  java.net.URIgetURI()
     Gets the URI for the current URL page.
public  voidsetAttribute(String name, Object value)
    

Field Detail
HEADER_ACCEPT
final public static String HEADER_ACCEPT(Code)
the Accept header



HEADER_ACCEPT_ENCODING
final public static String HEADER_ACCEPT_ENCODING(Code)
the Accept-Encoding header



HEADER_ACCEPT_LANGUAGE
final public static String HEADER_ACCEPT_LANGUAGE(Code)
the Accept-Language header



HEADER_CACHE_CONTROL
final public static String HEADER_CACHE_CONTROL(Code)
the Cache-Control header



HEADER_CONNECTION
final public static String HEADER_CONNECTION(Code)
the Connection header



HEADER_CONTENT_LENGTH
final public static String HEADER_CONTENT_LENGTH(Code)
the Content-Length header



HEADER_CONTENT_TYPE
final public static String HEADER_CONTENT_TYPE(Code)
the Content-Type header



HEADER_COOKIE
final public static String HEADER_COOKIE(Code)
the Cookie header



HEADER_HOST
final public static String HEADER_HOST(Code)
the Host header



HEADER_SET_COOKIE
final public static String HEADER_SET_COOKIE(Code)
the Set-Cookie header



HEADER_USER_AGENT
final public static String HEADER_USER_AGENT(Code)
the User-Agent header



SERVLET_CONTEXT
final public static String SERVLET_CONTEXT(Code)
If the https server implementation is based on Servlets, the real ServletContext will be registered in the request attributes using this name. Note: a ServletContext may not be registered even if HttpServletRequest and HttpServletResponse objects are registered.



SERVLET_REQUEST
final public static String SERVLET_REQUEST(Code)
If the https server implementation is based on Servlets, the real HttpServletRequest will be registered in the request attributes using this name.



SERVLET_RESPONSE
final public static String SERVLET_RESPONSE(Code)
If the https server implementation is based on Servlets, the real HttpServletResponse will be registered in the request attributes using this name.





Method Detail
getAttribute
public Object getAttribute(String name)(Code)



getContentLength
int getContentLength()(Code)



getContentType
String getContentType()(Code)



getHeader
public String getHeader(String name)(Code)
Gets a header based the header name passed in.
Parameters:
  name - The name of the header to get The value of the header



getInputStream
InputStream getInputStream() throws IOException(Code)



getMethod
public Method getMethod()(Code)
Gets an integer value of the request method. The integer value of the method



getParameter
String getParameter(String name)(Code)
Gets a form or URL query parameter based on the name passed in.
Parameters:
  name -



getParameters
Map getParameters()(Code)
Gets all the form and URL query parameters All the form and URL query parameters



getRemoteAddr
String getRemoteAddr()(Code)



getSession
public HttpSession getSession(boolean create)(Code)
Returns the current HttpSession associated with this request or, if there is no current session and create is true, returns a new session.

If create is false and the request has no valid HttpSession, this method returns null.
Parameters:
  create - true to create a new session for this requestif necessary; false to return null if there'sno current session the HttpSession associated with this request ornull if create is false and therequest has no valid session
See Also:   HttpRequest.getSession()




getSession
public HttpSession getSession()(Code)
Returns the current session associated with this request, or if the request does not have a session, creates one. the HttpSession associated with this request
See Also:   HttpRequest.getSession(boolean)



getURI
public java.net.URI getURI()(Code)
Gets the URI for the current URL page. The URI



setAttribute
public void setAttribute(String name, Object value)(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.