Java Doc for HttpURLConnection.java in  » Net » Apache-common-HttpClient » org » apache » commons » httpclient » 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 » Net » Apache common HttpClient » org.apache.commons.httpclient.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.net.HttpURLConnection
   org.apache.commons.httpclient.util.HttpURLConnection

HttpURLConnection
public class HttpURLConnection extends java.net.HttpURLConnection (Code)
Provides a HttpURLConnection wrapper around HttpClient's HttpMethod. This allows existing code to easily switch to HttpClieht without breaking existing interfaces using the JDK HttpURLConnection. Note 1: The current implementations wraps only a connected HttpMethod, ie a method that has alreayd been used to connect to an HTTP server. Note 2: It is a best try effort as different version of the JDK have different behaviours for HttpURLConnection (And I'm not even including the numerous HttpURLConnection bugs!).
author:
   Vincent Massol
author:
   Jeff Dever
author:
   Mike Bowler
since:
   2.0
version:
   $Id: HttpURLConnection.java 480424 2006-11-29 05:56:49Z bayard $



Constructor Summary
public  HttpURLConnection(HttpMethod method, URL url)
     Creates an HttpURLConnection from a HttpMethod.
protected  HttpURLConnection(URL url)
     Create an instance.

Method Summary
public  voidconnect()
     Not available: the data must have already been retrieved.
public  voiddisconnect()
     Not yet implemented.
public  booleangetAllowUserInteraction()
     Not yet implemented.
public  ObjectgetContent()
     Not yet implemented.
public  ObjectgetContent(Class[] classes)
     Not yet implemented.
public  booleangetDefaultUseCaches()
     Not available: the data must have already been retrieved.
public  booleangetDoInput()
     Not yet implemented.
public  booleangetDoOutput()
     Not yet implemented.
public  InputStreamgetErrorStream()
     Not yet implemented.
public  StringgetHeaderField(String name)
    
public  StringgetHeaderField(int position)
    
public  StringgetHeaderFieldKey(int keyPosition)
    
public  longgetIfModifiedSince()
     Not yet implemented.
public  InputStreamgetInputStream()
     Gets an input stream for the HttpMethod response body.
throws:
  IOException - If an IO problem occurs.
public  booleangetInstanceFollowRedirects()
     Not yet implemented.
public  OutputStreamgetOutputStream()
    
public  PermissiongetPermission()
     Not yet implemented.
public  StringgetRequestMethod()
     Return the request method.
public  StringgetRequestProperty(String key)
     Not yet implemented.
public  intgetResponseCode()
     Return the response code.
public  StringgetResponseMessage()
    
public  URLgetURL()
    
public  booleangetUseCaches()
     Not yet implemented.
public  voidsetAllowUserInteraction(boolean isAllowInteraction)
     Not available: the data must have already been retrieved.
public  voidsetDefaultUseCaches(boolean isUsingCaches)
     Not available: the data must have already been retrieved.
public  voidsetDoInput(boolean isInput)
     Not available: the data must have already been retrieved.
public  voidsetDoOutput(boolean isOutput)
     Not available: the data must have already been retrieved.
public  voidsetIfModifiedSince(long modificationDate)
     Not available: the data must have already been retrieved.
public  voidsetInstanceFollowRedirects(boolean isFollowingRedirects)
     Not available: the data must have already been retrieved.
public  voidsetRequestMethod(String method)
     Not available: the data must have already been retrieved.
public  voidsetRequestProperty(String key, String value)
     Not available: the data must have already been retrieved.
public  voidsetUseCaches(boolean isUsingCaches)
     Not available: the data must have already been retrieved.
public  booleanusingProxy()
     Not yet implemented.


Constructor Detail
HttpURLConnection
public HttpURLConnection(HttpMethod method, URL url)(Code)
Creates an HttpURLConnection from a HttpMethod.
Parameters:
  method - the theMethod that was used to connect to the HTTPserver and which contains the returned data.
Parameters:
  url - the URL to which we are connected (includes query string)



HttpURLConnection
protected HttpURLConnection(URL url)(Code)
Create an instance.
Parameters:
  url - The URL.
See Also:   java.net.HttpURLConnection.HttpURLConnection(URL)




Method Detail
connect
public void connect() throws IOException(Code)
Not available: the data must have already been retrieved.
throws:
  IOException - If an IO problem occurs.
See Also:   java.net.HttpURLConnection.connect



disconnect
public void disconnect()(Code)
Not yet implemented.
See Also:   java.net.HttpURLConnection.disconnect



getAllowUserInteraction
public boolean getAllowUserInteraction()(Code)
Not yet implemented.
See Also:   java.net.HttpURLConnection.getAllowUserInteraction



getContent
public Object getContent() throws IOException(Code)
Not yet implemented.
See Also:   java.net.HttpURLConnection.getContent



getContent
public Object getContent(Class[] classes) throws IOException(Code)
Not yet implemented.



getDefaultUseCaches
public boolean getDefaultUseCaches()(Code)
Not available: the data must have already been retrieved.
See Also:   java.net.HttpURLConnection.getDefaultUseCaches



getDoInput
public boolean getDoInput()(Code)
Not yet implemented.
See Also:   java.net.HttpURLConnection.getDoInput



getDoOutput
public boolean getDoOutput()(Code)
Not yet implemented.
See Also:   java.net.HttpURLConnection.getDoOutput



getErrorStream
public InputStream getErrorStream()(Code)
Not yet implemented. Return the error stream.
See Also:   java.net.HttpURLConnection.getErrorStream



getHeaderField
public String getHeaderField(String name)(Code)
Return the header field
Parameters:
  name - the name of the header the header field.
See Also:   java.net.HttpURLConnection.getHeaderField(String)
See Also:   org.apache.commons.httpclient.HttpMethod.getResponseHeaders



getHeaderField
public String getHeaderField(int position)(Code)
Return the header field at the specified position
Parameters:
  position - The position The header field.
See Also:   java.net.HttpURLConnection.getHeaderField(int)
See Also:   org.apache.commons.httpclient.HttpMethod.getResponseHeaders



getHeaderFieldKey
public String getHeaderFieldKey(int keyPosition)(Code)
Return the header field key
Parameters:
  keyPosition - The key position The header field key.
See Also:   java.net.HttpURLConnection.getHeaderFieldKey(int)
See Also:   org.apache.commons.httpclient.HttpMethod.getResponseHeaders



getIfModifiedSince
public long getIfModifiedSince()(Code)
Not yet implemented.
See Also:   java.net.HttpURLConnection.getIfModifiedSince



getInputStream
public InputStream getInputStream() throws IOException(Code)
Gets an input stream for the HttpMethod response body.
throws:
  IOException - If an IO problem occurs. The input stream.
See Also:   java.net.HttpURLConnection.getInputStream
See Also:   org.apache.commons.httpclient.HttpMethod.getResponseBodyAsStream



getInstanceFollowRedirects
public boolean getInstanceFollowRedirects()(Code)
Not yet implemented.



getOutputStream
public OutputStream getOutputStream() throws IOException(Code)

See Also:   java.net.HttpURLConnection.getOutputStream



getPermission
public Permission getPermission() throws IOException(Code)
Not yet implemented.
See Also:   java.net.HttpURLConnection.getPermission



getRequestMethod
public String getRequestMethod()(Code)
Return the request method. The request method.
See Also:   java.net.HttpURLConnection.getRequestMethod
See Also:   org.apache.commons.httpclient.HttpMethod.getName



getRequestProperty
public String getRequestProperty(String key)(Code)
Not yet implemented.
See Also:   java.net.HttpURLConnection.getRequestProperty(String)



getResponseCode
public int getResponseCode() throws IOException(Code)
Return the response code. The response code.
throws:
  IOException - If an IO problem occurs.
See Also:   java.net.HttpURLConnection.getResponseCode
See Also:   org.apache.commons.httpclient.HttpMethod.getStatusCode



getResponseMessage
public String getResponseMessage() throws IOException(Code)
Return the response message The response message
throws:
  IOException - If an IO problem occurs.
See Also:   java.net.HttpURLConnection.getResponseMessage
See Also:   org.apache.commons.httpclient.HttpMethod.getStatusText



getURL
public URL getURL()(Code)
Return the URL The URL.
See Also:   java.net.HttpURLConnection.getURL



getUseCaches
public boolean getUseCaches()(Code)
Not yet implemented.
See Also:   java.net.HttpURLConnection.getUseCaches



setAllowUserInteraction
public void setAllowUserInteraction(boolean isAllowInteraction)(Code)
Not available: the data must have already been retrieved.
See Also:   java.net.HttpURLConnection.setAllowUserInteraction(boolean)



setDefaultUseCaches
public void setDefaultUseCaches(boolean isUsingCaches)(Code)
Not available: the data must have already been retrieved.
See Also:   java.net.HttpURLConnection.setDefaultUseCaches(boolean)



setDoInput
public void setDoInput(boolean isInput)(Code)
Not available: the data must have already been retrieved.
See Also:   java.net.HttpURLConnection.setDoInput(boolean)



setDoOutput
public void setDoOutput(boolean isOutput)(Code)
Not available: the data must have already been retrieved.
See Also:   java.net.HttpURLConnection.setDoOutput(boolean)



setIfModifiedSince
public void setIfModifiedSince(long modificationDate)(Code)
Not available: the data must have already been retrieved.
See Also:   java.net.HttpURLConnection.setIfModifiedSince(long)



setInstanceFollowRedirects
public void setInstanceFollowRedirects(boolean isFollowingRedirects)(Code)
Not available: the data must have already been retrieved.



setRequestMethod
public void setRequestMethod(String method) throws ProtocolException(Code)
Not available: the data must have already been retrieved.
See Also:   java.net.HttpURLConnection.setRequestMethod(String)



setRequestProperty
public void setRequestProperty(String key, String value)(Code)
Not available: the data must have already been retrieved.
See Also:   java.net.HttpURLConnection.setRequestProperty(StringString)



setUseCaches
public void setUseCaches(boolean isUsingCaches)(Code)
Not available: the data must have already been retrieved.
See Also:   java.net.HttpURLConnection.setUseCaches(boolean)



usingProxy
public boolean usingProxy()(Code)
Not yet implemented. true if we are using a proxy.
See Also:   java.net.HttpURLConnection.usingProxy



Fields inherited from java.net.HttpURLConnection
final public static int HTTP_ACCEPTED(Code)(Java Doc)
final public static int HTTP_BAD_GATEWAY(Code)(Java Doc)
final public static int HTTP_BAD_METHOD(Code)(Java Doc)
final public static int HTTP_BAD_REQUEST(Code)(Java Doc)
final public static int HTTP_CLIENT_TIMEOUT(Code)(Java Doc)
final public static int HTTP_CONFLICT(Code)(Java Doc)
final public static int HTTP_CREATED(Code)(Java Doc)
final public static int HTTP_ENTITY_TOO_LARGE(Code)(Java Doc)
final public static int HTTP_FORBIDDEN(Code)(Java Doc)
final public static int HTTP_GATEWAY_TIMEOUT(Code)(Java Doc)
final public static int HTTP_GONE(Code)(Java Doc)
final public static int HTTP_INTERNAL_ERROR(Code)(Java Doc)
final public static int HTTP_LENGTH_REQUIRED(Code)(Java Doc)
final public static int HTTP_MOVED_PERM(Code)(Java Doc)
final public static int HTTP_MOVED_TEMP(Code)(Java Doc)
final public static int HTTP_MULT_CHOICE(Code)(Java Doc)
final public static int HTTP_NOT_ACCEPTABLE(Code)(Java Doc)
final public static int HTTP_NOT_AUTHORITATIVE(Code)(Java Doc)
final public static int HTTP_NOT_FOUND(Code)(Java Doc)
final public static int HTTP_NOT_IMPLEMENTED(Code)(Java Doc)
final public static int HTTP_NOT_MODIFIED(Code)(Java Doc)
final public static int HTTP_NO_CONTENT(Code)(Java Doc)
final public static int HTTP_OK(Code)(Java Doc)
final public static int HTTP_PARTIAL(Code)(Java Doc)
final public static int HTTP_PAYMENT_REQUIRED(Code)(Java Doc)
final public static int HTTP_PRECON_FAILED(Code)(Java Doc)
final public static int HTTP_PROXY_AUTH(Code)(Java Doc)
final public static int HTTP_REQ_TOO_LONG(Code)(Java Doc)
final public static int HTTP_RESET(Code)(Java Doc)
final public static int HTTP_SEE_OTHER(Code)(Java Doc)
final public static int HTTP_SERVER_ERROR(Code)(Java Doc)
final public static int HTTP_UNAUTHORIZED(Code)(Java Doc)
final public static int HTTP_UNAVAILABLE(Code)(Java Doc)
final public static int HTTP_UNSUPPORTED_TYPE(Code)(Java Doc)
final public static int HTTP_USE_PROXY(Code)(Java Doc)
final public static int HTTP_VERSION(Code)(Java Doc)
protected int chunkLength(Code)(Java Doc)
protected int fixedContentLength(Code)(Java Doc)
protected boolean instanceFollowRedirects(Code)(Java Doc)
protected String method(Code)(Java Doc)
protected int responseCode(Code)(Java Doc)
protected String responseMessage(Code)(Java Doc)

Methods inherited from java.net.HttpURLConnection
abstract public void disconnect()(Code)(Java Doc)
public InputStream getErrorStream()(Code)(Java Doc)
public static boolean getFollowRedirects()(Code)(Java Doc)
public String getHeaderField(int n)(Code)(Java Doc)
public long getHeaderFieldDate(String name, long Default)(Code)(Java Doc)
public String getHeaderFieldKey(int n)(Code)(Java Doc)
public boolean getInstanceFollowRedirects()(Code)(Java Doc)
public Permission getPermission() throws IOException(Code)(Java Doc)
public String getRequestMethod()(Code)(Java Doc)
public int getResponseCode() throws IOException(Code)(Java Doc)
public String getResponseMessage() throws IOException(Code)(Java Doc)
public void setChunkedStreamingMode(int chunklen)(Code)(Java Doc)
public void setFixedLengthStreamingMode(int contentLength)(Code)(Java Doc)
public static void setFollowRedirects(boolean set)(Code)(Java Doc)
public void setInstanceFollowRedirects(boolean followRedirects)(Code)(Java Doc)
public void setRequestMethod(String method) throws ProtocolException(Code)(Java Doc)
abstract public boolean usingProxy()(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.