Java Doc for AutoReadHttpURLConnection.java in  » Testing » jakarta-cactus » org » apache » cactus » internal » client » connector » 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 » Testing » jakarta cactus » org.apache.cactus.internal.client.connector.http 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.net.HttpURLConnection
   org.apache.cactus.internal.client.connector.http.AutoReadHttpURLConnection

AutoReadHttpURLConnection
final class AutoReadHttpURLConnection extends HttpURLConnection (Code)
Wrapper class for the real HttpURLConnection to the test servlet that reads the complete input stream into an internal buffer on the first call to getInputStream(). This is to ensure that the test servlet is not blocked on i/o when the test caller asks for the results.

The wrapper returns the buffered input stream from getInputStream and delegates the rest of the calls.

This class is final so we don't have to provide access to protected instance variables and methods of the wrapped connection.
version:
   $Id: AutoReadHttpURLConnection.java 239010 2004-06-19 15:10:53Z vmassol $




Constructor Summary
 AutoReadHttpURLConnection(HttpURLConnection theConnection)
     Constructs a an AutoReadHttpURLConnection object from an HttpURLConnection.

Method Summary
public  voidconnect()
    
public  voiddisconnect()
    
public  booleangetAllowUserInteraction()
    
public  ObjectgetContent()
    
public  StringgetContentEncoding()
    
public  intgetContentLength()
    
public  StringgetContentType()
    
public  longgetDate()
    
public  booleangetDefaultUseCaches()
    
public  booleangetDoInput()
    
public  booleangetDoOutput()
    
public  InputStreamgetErrorStream()
    
public  longgetExpiration()
    
public  StringgetHeaderField(int thePosition)
    
public  StringgetHeaderField(String theName)
    
public  longgetHeaderFieldDate(String theName, long theDefaultValue)
    
public  intgetHeaderFieldInt(String theName, int theDefaultValue)
    
public  StringgetHeaderFieldKey(int thePosition)
    
public  longgetIfModifiedSince()
    
public synchronized  InputStreamgetInputStream()
    
public  longgetLastModified()
    
public  OutputStreamgetOutputStream()
    
public  PermissiongetPermission()
    
public  StringgetRequestMethod()
    
public  StringgetRequestProperty(String theKey)
    
public  intgetResponseCode()
    
public  StringgetResponseMessage()
    
public  URLgetURL()
    
public  booleangetUseCaches()
    
public  voidsetAllowUserInteraction(boolean hasInteraction)
    
public  voidsetDefaultUseCaches(boolean isUsingDefaultCache)
    
public  voidsetDoInput(boolean isInput)
    
public  voidsetDoOutput(boolean isOutput)
    
public  voidsetIfModifiedSince(long isModifiedSince)
    
public  voidsetRequestMethod(String theMethod)
    
public  voidsetRequestProperty(String theKey, String theValue)
    
public  voidsetUseCaches(boolean isUsingCaches)
    
public  StringtoString()
    
public  booleanusingProxy()
    


Constructor Detail
AutoReadHttpURLConnection
AutoReadHttpURLConnection(HttpURLConnection theConnection)(Code)
Constructs a an AutoReadHttpURLConnection object from an HttpURLConnection.
Parameters:
  theConnection - the original connection to wrap




Method Detail
connect
public void connect() throws IOException(Code)

See Also:   java.net.HttpURLConnection.connect



disconnect
public void disconnect()(Code)

See Also:   java.net.HttpURLConnection.disconnect



getAllowUserInteraction
public boolean getAllowUserInteraction()(Code)

See Also:   java.net.HttpURLConnection.getAllowUserInteraction



getContent
public Object getContent() throws IOException(Code)

See Also:   java.net.HttpURLConnection.getContent



getContentEncoding
public String getContentEncoding()(Code)

See Also:   java.net.HttpURLConnection.getContentEncoding



getContentLength
public int getContentLength()(Code)

See Also:   java.net.HttpURLConnection.getContentLength



getContentType
public String getContentType()(Code)

See Also:   java.net.HttpURLConnection.getContentType



getDate
public long getDate()(Code)

See Also:   java.net.HttpURLConnection.getDate



getDefaultUseCaches
public boolean getDefaultUseCaches()(Code)

See Also:   java.net.HttpURLConnection.getDefaultUseCaches



getDoInput
public boolean getDoInput()(Code)

See Also:   java.net.HttpURLConnection.getDoInput



getDoOutput
public boolean getDoOutput()(Code)

See Also:   java.net.HttpURLConnection.getDoOutput



getErrorStream
public InputStream getErrorStream()(Code)

See Also:   java.net.HttpURLConnection.getErrorStream



getExpiration
public long getExpiration()(Code)

See Also:   java.net.HttpURLConnection.getExpiration



getHeaderField
public String getHeaderField(int thePosition)(Code)

See Also:   java.net.HttpURLConnection.getHeaderField(int)



getHeaderField
public String getHeaderField(String theName)(Code)

See Also:   java.net.HttpURLConnection.getHeaderField(String)



getHeaderFieldDate
public long getHeaderFieldDate(String theName, long theDefaultValue)(Code)

See Also:   java.net.HttpURLConnection.getHeaderFieldDate(Stringlong)



getHeaderFieldInt
public int getHeaderFieldInt(String theName, int theDefaultValue)(Code)

See Also:   java.net.HttpURLConnection.getHeaderFieldInt(Stringint)



getHeaderFieldKey
public String getHeaderFieldKey(int thePosition)(Code)

See Also:   java.net.HttpURLConnection.getHeaderFieldKey(int)



getIfModifiedSince
public long getIfModifiedSince()(Code)

See Also:   java.net.HttpURLConnection.getIfModifiedSince



getInputStream
public synchronized InputStream getInputStream() throws IOException(Code)
Returns an input stream containing the fully read contents of the wrapped connection's input stream the input stream
exception:
  IOException - if an error occurs when reading the input stream



getLastModified
public long getLastModified()(Code)

See Also:   java.net.HttpURLConnection.getLastModified



getOutputStream
public OutputStream getOutputStream() throws IOException(Code)

See Also:   java.net.HttpURLConnection.getOutputStream



getPermission
public Permission getPermission() throws IOException(Code)

See Also:   java.net.HttpURLConnection.getPermission



getRequestMethod
public String getRequestMethod()(Code)

See Also:   java.net.HttpURLConnection.getRequestMethod



getRequestProperty
public String getRequestProperty(String theKey)(Code)

See Also:   java.net.HttpURLConnection.getRequestProperty(String)



getResponseCode
public int getResponseCode() throws IOException(Code)

See Also:   java.net.HttpURLConnection.getResponseCode



getResponseMessage
public String getResponseMessage() throws IOException(Code)

See Also:   java.net.HttpURLConnection.getResponseMessage



getURL
public URL getURL()(Code)

See Also:   java.net.HttpURLConnection.getURL



getUseCaches
public boolean getUseCaches()(Code)

See Also:   java.net.HttpURLConnection.getUseCaches



setAllowUserInteraction
public void setAllowUserInteraction(boolean hasInteraction)(Code)

See Also:   java.net.HttpURLConnection.setAllowUserInteraction(boolean)



setDefaultUseCaches
public void setDefaultUseCaches(boolean isUsingDefaultCache)(Code)

See Also:   java.net.HttpURLConnection.setDefaultUseCaches(boolean)



setDoInput
public void setDoInput(boolean isInput)(Code)

See Also:   java.net.HttpURLConnection.setDoInput(boolean)



setDoOutput
public void setDoOutput(boolean isOutput)(Code)

See Also:   java.net.HttpURLConnection.setDoOutput(boolean)



setIfModifiedSince
public void setIfModifiedSince(long isModifiedSince)(Code)

See Also:   java.net.HttpURLConnection.setIfModifiedSince(long)



setRequestMethod
public void setRequestMethod(String theMethod) throws ProtocolException(Code)

See Also:   java.net.HttpURLConnection.setRequestMethod(String)



setRequestProperty
public void setRequestProperty(String theKey, String theValue)(Code)

See Also:   java.net.HttpURLConnection.setRequestProperty(StringString)



setUseCaches
public void setUseCaches(boolean isUsingCaches)(Code)

See Also:   java.net.HttpURLConnection.setUseCaches(boolean)



toString
public String toString()(Code)

See Also:   java.net.HttpURLConnection.toString



usingProxy
public boolean usingProxy()(Code)

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.