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


java.lang.Object
   com.lutris.http.HttpUtils

HttpUtils
public class HttpUtils (Code)
Utility methods useful to for HTTP.




Method Summary
public static  StringBuffergetRequestURL(HttpPresentationRequest req)
     Obtains the URL used by the client to make the current request, without the query parameters.
public static  HashtableparsePostData(int len, InputStream in)
     Parses FORM data posted by a client using the HTTP POST method and the application/x-www-form-urlencoded MIME type.
public static  HashtableparseQueryString(String s)
     Decodes a query string in the format specified by the MIME type "application/x-www-form-urlencoded".
public static  StringtrimQueryString(String s)
     Trims the left-hand side of a URL until the character '?' is reached.



Method Detail
getRequestURL
public static StringBuffer getRequestURL(HttpPresentationRequest req) throws HttpPresentationException(Code)
Obtains the URL used by the client to make the current request, without the query parameters. Returns a StringBuffer object that can be appended to, if the query string must be appended.
Parameters:
  req - presentation request object from whichto extract the URL. A string buffer object containing the extractedURL.
exception:
  HttpPresentationException - If an exception is generatedby the req object.



parsePostData
public static Hashtable parsePostData(int len, InputStream in) throws IllegalArgumentException, IOException(Code)
Parses FORM data posted by a client using the HTTP POST method and the application/x-www-form-urlencoded MIME type.
Parameters:
  len - The maximum number of bytes to read from the inputstream.
Parameters:
  in - The input stream from which to read the form data. A Hashtable containing the values indexed bytheir corresponding keys.
exception:
  IllegalArgumentException - If the query string is not formatted correctly.
exception:
  IOException - If an I/O error occurs while reading theinput stream.



parseQueryString
public static Hashtable parseQueryString(String s)(Code)
Decodes a query string in the format specified by the MIME type "application/x-www-form-urlencoded". Such a string consists of encoded key/value pairs in the form key=value. A hash table is returned with each value indexed by its corresponding key. If a key appears once in the query string, then the value will be of type String. If the key appears more than once, then the value will be an array of type String.
Parameters:
  s - The string to parse. A Hashtable containing the values indexed bytheir corresponding keys.



trimQueryString
public static String trimQueryString(String s)(Code)
Trims the left-hand side of a URL until the character '?' is reached. This is useful for raw URLs that need to be parsed as query strings.
Parameters:
  s - The string to trim. The trimmed string.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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