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


org.apache.openejb.webadmin.HttpRequest

All known Subclasses:   org.apache.openejb.webadmin.httpd.HttpRequestImpl,
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.
author:
   David Blevins


Field Summary
final public static  intCONNECT
    
final public static  intDELETE
    
final public static  intGET
    
final public static  intHEAD
    
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  intOPTIONS
    
final public static  intPOST
    
final public static  intPUT
    
final public static  intTRACE
    
final public static  intUNSUPPORTED
    


Method Summary
public  StringgetFormParameter(String name)
     Gets a form parameter based on the name passed in.
public  String[][]getFormParameters()
    
public  StringgetHeader(String name)
     Gets a header based the header name passed in.
public  intgetMethod()
     Gets an integer value of the request method.
public  StringgetQueryParameter(String name)
     Gets a URL (or query) parameter based on the name passed in.
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.URLgetURI()
     Gets the URI for the current URL page.

Field Detail
CONNECT
final public static int CONNECT(Code)
the HTTP CONNECT type



DELETE
final public static int DELETE(Code)
the HTTP DELETE type



GET
final public static int GET(Code)
the HTTP GET type



HEAD
final public static int HEAD(Code)
the HTTP HEAD type



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



OPTIONS
final public static int OPTIONS(Code)
the HTTP OPTIONS type



POST
final public static int POST(Code)
the HTTP POST type



PUT
final public static int PUT(Code)
the HTTP PUT type



TRACE
final public static int TRACE(Code)
the HTTP TRACE type



UNSUPPORTED
final public static int UNSUPPORTED(Code)
the HTTP UNSUPPORTED type





Method Detail
getFormParameter
public String getFormParameter(String name)(Code)
Gets a form parameter based on the name passed in.
Parameters:
  name - The name of the form parameter to get The value of the parameter



getFormParameters
public String[][] getFormParameters()(Code)
Gets all the form parameters in the form of a two-dimentional array The second dimention has two indexes which contain the key and value for example: for(int i=0; i All values are strings All the form parameters



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



getMethod
public int getMethod()(Code)
Gets an integer value of the request method. These values are: OPTIONS = 0 GET = 1 HEAD = 2 POST = 3 PUT = 4 DELETE = 5 TRACE = 6 CONNECT = 7 UNSUPPORTED = 8 The integer value of the method



getQueryParameter
public String getQueryParameter(String name)(Code)
Gets a URL (or query) parameter based on the name passed in.
Parameters:
  name - The name of the URL (or query) parameter The value of the URL (or query) parameter



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.URL getURI()(Code)
Gets the URI for the current URL page. The URI



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