Represents a communications link between the application and a URL.
Instances of this class can be used
both to read from and to write to the resource referenced by the URL.
Methods
Connects to target, if not yet connected.
| Throws |
IOError -
If an IO error occured
|
Returns the value of the content-encoding header field.
Returns the value of the content-length header field.
Returns the value of the content-type header field.
Returns the value of the date header field.
Returns the value of input flag.
Returns the value of output flag.
Returns error stream if connection failed but the server sent useful
data nonetheless.
Returns input stream for reading from this connection.
| Throws |
IOError -
If an IO error occured
|
Returns the value of the ast-modified field.
Returns output stream for writing to this connection.
| Throws |
IOError -
If an IO error occured
|
Returns the HTTP request method.
Returns the HTTP response code
| Throws |
IOError -
If an IO error occured
|
Returns the HTTP response message.
| Throws |
IOError -
If an IO error occured
|
Returns the URL into which this connection points to.
Sets the input flag.
Sets the output flag.