Java Doc for Http.java in  » Portal » liferay-portal-4.4.2 » com » liferay » util » 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 » Portal » liferay portal 4.4.2 » com.liferay.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.liferay.util.Http

Http
public class Http (Code)
View Source
author:
   Brian Wing Shun Chan


Field Summary
final public static  StringHTTP
    
final public static  StringHTTPS
    
final public static  intHTTPS_PORT
    
final public static  StringHTTPS_WITH_SLASH
    
final public static  intHTTP_PORT
    
final public static  StringHTTP_WITH_SLASH
    
final public static  StringLIFERAY_PROXY_HOST
    
final public static  intLIFERAY_PROXY_PORT
    
final public static  StringNON_PROXY_HOSTS
    
final public static  StringPROXY_AUTH_TYPE
    
final public static  StringPROXY_HOST
    
final public static  StringPROXY_NTLM_DOMAIN
    
final public static  StringPROXY_NTLM_HOST
    
final public static  StringPROXY_PASSWORD
    
final public static  intPROXY_PORT
    
final public static  StringPROXY_USERNAME
    
final public static  intTIMEOUT
    


Method Summary
public static  byte[]URLtoByteArray(String location)
    
public static  byte[]URLtoByteArray(String location, Cookie[] cookies)
    
public static  byte[]URLtoByteArray(String location, boolean post)
    
public static  byte[]URLtoByteArray(String location, Cookie[] cookies, boolean post)
    
public static  byte[]URLtoByteArray(String location, Cookie[] cookies, Map parts, boolean post)
    
public static  StringURLtoString(String location)
    
public static  StringURLtoString(String location, Cookie[] cookies)
    
public static  StringURLtoString(String location, boolean post)
    
public static  StringURLtoString(String location, Cookie[] cookies, boolean post)
    
public static  StringURLtoString(String location, Cookie[] cookies, Map parts, boolean post)
    
public static  StringURLtoString(URL url)
     This method only uses the default Commons HttpClient implementation when the URL object represents a HTTP resource.
public static  StringaddParameter(String url, String name, boolean value)
    
public static  StringaddParameter(String url, String name, double value)
    
public static  StringaddParameter(String url, String name, int value)
    
public static  StringaddParameter(String url, String name, long value)
    
public static  StringaddParameter(String url, String name, short value)
    
public static  StringaddParameter(String url, String name, String value)
    
public static  StringdecodeURL(String url)
    
public static  StringencodeURL(String url)
    
public static  HttpClientgetClient(HostConfiguration hostConfig)
    
public static  StringgetCompleteURL(HttpServletRequest req)
    
public static  HostConfigurationgetHostConfig(String location)
    
public static  StringgetParameter(String url, String name)
    
public static  StringgetParameter(String url, String name, boolean escaped)
    
public static  MapgetParameterMap(String queryString)
    
public static  StringgetProtocol(boolean secure)
    
public static  StringgetProtocol(HttpServletRequest req)
    
public static  StringgetProtocol(ActionRequest req)
    
public static  StringgetProtocol(RenderRequest req)
    
public static  StringgetQueryString(String url)
    
public static  StringgetRequestURL(HttpServletRequest req)
    
public static  booleanhasProxyConfig()
    
public static  booleanisNonProxyHost(String host)
    
public static  booleanisProxyHost(String host)
    
public static  StringparameterMapToString(Map parameterMap)
    
public static  StringparameterMapToString(Map parameterMap, boolean addQuestion)
    
public static  Stringprotocolize(String url, boolean secure)
    
public static  Stringprotocolize(String url, HttpServletRequest req)
    
public static  Stringprotocolize(String url, ActionRequest req)
    
public static  Stringprotocolize(String url, RenderRequest req)
    
public static  voidproxifyState(HttpState state, HostConfiguration hostConfig)
    
public static  StringremoveParameter(String url, String name)
    
public static  StringremoveProtocol(String url)
    
public static  voidsubmit(String location)
    
public static  voidsubmit(String location, Cookie[] cookies)
    
public static  voidsubmit(String location, boolean post)
    
public static  voidsubmit(String location, Cookie[] cookies, boolean post)
    
public static  voidsubmit(String location, Cookie[] cookies, Map parts, boolean post)
    

Field Detail
HTTP
final public static String HTTP(Code)



HTTPS
final public static String HTTPS(Code)



HTTPS_PORT
final public static int HTTPS_PORT(Code)



HTTPS_WITH_SLASH
final public static String HTTPS_WITH_SLASH(Code)



HTTP_PORT
final public static int HTTP_PORT(Code)



HTTP_WITH_SLASH
final public static String HTTP_WITH_SLASH(Code)



LIFERAY_PROXY_HOST
final public static String LIFERAY_PROXY_HOST(Code)



LIFERAY_PROXY_PORT
final public static int LIFERAY_PROXY_PORT(Code)



NON_PROXY_HOSTS
final public static String NON_PROXY_HOSTS(Code)



PROXY_AUTH_TYPE
final public static String PROXY_AUTH_TYPE(Code)



PROXY_HOST
final public static String PROXY_HOST(Code)



PROXY_NTLM_DOMAIN
final public static String PROXY_NTLM_DOMAIN(Code)



PROXY_NTLM_HOST
final public static String PROXY_NTLM_HOST(Code)



PROXY_PASSWORD
final public static String PROXY_PASSWORD(Code)



PROXY_PORT
final public static int PROXY_PORT(Code)



PROXY_USERNAME
final public static String PROXY_USERNAME(Code)



TIMEOUT
final public static int TIMEOUT(Code)





Method Detail
URLtoByteArray
public static byte[] URLtoByteArray(String location) throws IOException(Code)



URLtoByteArray
public static byte[] URLtoByteArray(String location, Cookie[] cookies) throws IOException(Code)



URLtoByteArray
public static byte[] URLtoByteArray(String location, boolean post) throws IOException(Code)



URLtoByteArray
public static byte[] URLtoByteArray(String location, Cookie[] cookies, boolean post) throws IOException(Code)



URLtoByteArray
public static byte[] URLtoByteArray(String location, Cookie[] cookies, Map parts, boolean post) throws IOException(Code)



URLtoString
public static String URLtoString(String location) throws IOException(Code)



URLtoString
public static String URLtoString(String location, Cookie[] cookies) throws IOException(Code)



URLtoString
public static String URLtoString(String location, boolean post) throws IOException(Code)



URLtoString
public static String URLtoString(String location, Cookie[] cookies, boolean post) throws IOException(Code)



URLtoString
public static String URLtoString(String location, Cookie[] cookies, Map parts, boolean post) throws IOException(Code)



URLtoString
public static String URLtoString(URL url) throws IOException(Code)
This method only uses the default Commons HttpClient implementation when the URL object represents a HTTP resource. The URL object could also represent a file or some JNDI resource. In that case, the default Java implementation is used.
Parameters:
  url - URL object A string representation of the resource referenced by theURL object
throws:
  IOException -



addParameter
public static String addParameter(String url, String name, boolean value)(Code)



addParameter
public static String addParameter(String url, String name, double value)(Code)



addParameter
public static String addParameter(String url, String name, int value)(Code)



addParameter
public static String addParameter(String url, String name, long value)(Code)



addParameter
public static String addParameter(String url, String name, short value)(Code)



addParameter
public static String addParameter(String url, String name, String value)(Code)



decodeURL
public static String decodeURL(String url)(Code)



encodeURL
public static String encodeURL(String url)(Code)



getClient
public static HttpClient getClient(HostConfiguration hostConfig) throws IOException(Code)



getCompleteURL
public static String getCompleteURL(HttpServletRequest req)(Code)



getHostConfig
public static HostConfiguration getHostConfig(String location) throws IOException(Code)



getParameter
public static String getParameter(String url, String name)(Code)



getParameter
public static String getParameter(String url, String name, boolean escaped)(Code)



getParameterMap
public static Map getParameterMap(String queryString)(Code)



getProtocol
public static String getProtocol(boolean secure)(Code)



getProtocol
public static String getProtocol(HttpServletRequest req)(Code)



getProtocol
public static String getProtocol(ActionRequest req)(Code)



getProtocol
public static String getProtocol(RenderRequest req)(Code)



getQueryString
public static String getQueryString(String url)(Code)



getRequestURL
public static String getRequestURL(HttpServletRequest req)(Code)



hasProxyConfig
public static boolean hasProxyConfig()(Code)



isNonProxyHost
public static boolean isNonProxyHost(String host)(Code)



isProxyHost
public static boolean isProxyHost(String host)(Code)



parameterMapToString
public static String parameterMapToString(Map parameterMap)(Code)



parameterMapToString
public static String parameterMapToString(Map parameterMap, boolean addQuestion)(Code)



protocolize
public static String protocolize(String url, boolean secure)(Code)



protocolize
public static String protocolize(String url, HttpServletRequest req)(Code)



protocolize
public static String protocolize(String url, ActionRequest req)(Code)



protocolize
public static String protocolize(String url, RenderRequest req)(Code)



proxifyState
public static void proxifyState(HttpState state, HostConfiguration hostConfig)(Code)



removeParameter
public static String removeParameter(String url, String name)(Code)



removeProtocol
public static String removeProtocol(String url)(Code)



submit
public static void submit(String location) throws IOException(Code)



submit
public static void submit(String location, Cookie[] cookies) throws IOException(Code)



submit
public static void submit(String location, boolean post) throws IOException(Code)



submit
public static void submit(String location, Cookie[] cookies, boolean post) throws IOException(Code)



submit
public static void submit(String location, Cookie[] cookies, Map parts, boolean post) throws IOException(Code)



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.