|
activemq-cpp-3.9.5
|
#include <src/main/decaf/internal/net/http/HttpHandler.h>

Public Member Functions | |
| virtual | ~HttpHandler () |
| virtual decaf::net::URLConnection * | openConnection (const decaf::net::URL &url) |
| Establishes a new connection to the resource specified by the given URL. | |
| virtual decaf::net::URLConnection * | openConnection (const decaf::net::URL &url, const decaf::net::Proxy *proxy) |
| Establishes a new connection to the resource specified by the given URL. | |
| virtual int | getDefaultPort () const |
| Returns the default port for a URL parsed by this handler. | |
Public Member Functions inherited from decaf::net::URLStreamHandler | |
| virtual | ~URLStreamHandler () |
Additional Inherited Members | |
Protected Member Functions inherited from decaf::net::URLStreamHandler | |
| virtual URLConnection * | openConnection (const URL &url)=0 |
| Establishes a new connection to the resource specified by the given URL. | |
| virtual URLConnection * | openConnection (const URL &url, const Proxy *proxy) |
| Establishes a new connection to the resource specified by the given URL. | |
| virtual bool | equals (const URL &source, const URL &other) const |
| Provides the default equals calculation. | |
| virtual int | hashCode (const URL &url) const |
| Provides the default hashCode calculation. | |
| virtual bool | hostsEqual (const URL &source, const URL &other) const |
| Compares the host components of two URLs. | |
| 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. | |
| virtual decaf::lang::String | toExternalForm (const URL &url) const |
| Converts the URL into a string representation. | |
| virtual InetAddress | getHostAddress (const URL &url) const |
| Attempts to get the IP address of the host. | |
| virtual int | getDefaultPort () const |
| Returns the default port for a URL parsed by this handler. | |
| 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. | |
| 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. | |
|
virtual |
|
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.
Reimplemented from decaf::net::URLStreamHandler.
|
virtual |
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.
| url | the URL to the resource where a connection has to be opened. |
| IOException | if an I/O error occurs during opening the connection. |
Implements decaf::net::URLStreamHandler.
|
virtual |
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.
| url | the URL to the resource where a connection has to be opened. |
| proxy | the Proxy through which the connection should be made. |
| 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.