#include <src/main/decaf/internal/net/file/FileHandler.h>
|
Protected Member Functions inherited from decaf::net::URLStreamHandler |
virtual bool | equals (const URL &source, const URL &other) const |
| Provides the default equals calculation. More...
|
|
virtual int | hashCode (const URL &url) const |
| Provides the default hashCode calculation. More...
|
|
virtual bool | hostsEqual (const URL &source, const URL &other) const |
| Compares the host components of two URLs. More...
|
|
virtual bool | sameFile (const URL &source, const URL &other) const |
| Compare two URLs to see whether they refer to the same file, i.e., having the same protocol, host, port, and path. More...
|
|
virtual decaf::lang::String | toExternalForm (const URL &url) const |
| Converts the URL into a string representation. More...
|
|
virtual InetAddress | getHostAddress (const URL &url) const |
| Attempts to get the IP address of the host. More...
|
|
virtual void | parseURL (URL &url, const decaf::lang::String &spec, int start, int limit) |
| Parses the clear text URL in spec into a URL object. More...
|
|
void | setURL (URL &url, const decaf::lang::String &protocol, const decaf::lang::String &host, int port, const decaf::lang::String &authority, const decaf::lang::String &userInfo, const decaf::lang::String &path, const decaf::lang::String &query, const decaf::lang::String &ref) |
| Sets the fields of the URL This method is only intended to be used by subclasses of URLStreamHandler so it is kept protected. More...
|
|
virtual decaf::internal::net::file::FileHandler::~FileHandler |
( |
| ) |
|
|
virtual |
virtual int decaf::internal::net::file::FileHandler::getDefaultPort |
( |
| ) |
const |
|
virtual |
Returns the default port for a URL parsed by this handler.
This method should be overidden by handlers with knowledge of the default port numbers as the default implementation simply returns -1.
- Returns
- the default port number for this URL's protocol.
Reimplemented from decaf::net::URLStreamHandler.
Establishes a new connection to the resource specified by the given URL.
Since different protocols also have unique ways of connecting, it must be overridden by the subclass.
- Parameters
-
url | the URL to the resource where a connection has to be opened. |
- Returns
- pointer to the opened URLConnection to the specified resource.
- Exceptions
-
IOException | if an I/O error occurs during opening the connection. |
Implements decaf::net::URLStreamHandler.
Establishes a new connection to the resource specified by the given URL.
The version uses a Proxy to establish the connection if proxying is supported by the URLConnection implementation in use, otherwise the proxy is ignored.
- Parameters
-
url | the URL to the resource where a connection has to be opened. |
proxy | the Proxy through which the connection should be made. |
- Returns
- pointer to the opened URLConnection to the specified resource.
- Exceptions
-
IOException | if an I/O error occurs during opening the connection. |
UnsupportedOperationException | if the protocol in use doesn't support this. |
Reimplemented from decaf::net::URLStreamHandler.
The documentation for this class was generated from the following file: