activemq-cpp-3.9.0
decaf::internal::net::https::HttpsHandler Class Reference

#include <src/main/decaf/internal/net/https/HttpsHandler.h>

Inheritance diagram for decaf::internal::net::https::HttpsHandler:

Public Member Functions

virtual ~HttpsHandler ()
 
virtual decaf::net::URLConnectionopenConnection (const decaf::net::URL &url)
 Establishes a new connection to the resource specified by the given URL. More...
 
virtual decaf::net::URLConnectionopenConnection (const decaf::net::URL &url, const decaf::net::Proxy *proxy)
 Establishes a new connection to the resource specified by the given URL. More...
 
virtual int getDefaultPort () const
 Returns the default port for a URL parsed by this handler. More...
 
- Public Member Functions inherited from decaf::net::URLStreamHandler
virtual ~URLStreamHandler ()
 

Additional Inherited Members

- 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...
 

Constructor & Destructor Documentation

virtual decaf::internal::net::https::HttpsHandler::~HttpsHandler ( )
virtual

Member Function Documentation

virtual int decaf::internal::net::https::HttpsHandler::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.

virtual decaf::net::URLConnection* decaf::internal::net::https::HttpsHandler::openConnection ( const decaf::net::URL url)
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.

Parameters
urlthe URL to the resource where a connection has to be opened.
Returns
pointer to the opened URLConnection to the specified resource.
Exceptions
IOExceptionif an I/O error occurs during opening the connection.

Implements decaf::net::URLStreamHandler.

virtual decaf::net::URLConnection* decaf::internal::net::https::HttpsHandler::openConnection ( const decaf::net::URL url,
const decaf::net::Proxy proxy 
)
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.

Parameters
urlthe URL to the resource where a connection has to be opened.
proxythe Proxy through which the connection should be made.
Returns
pointer to the opened URLConnection to the specified resource.
Exceptions
IOExceptionif an I/O error occurs during opening the connection.
UnsupportedOperationExceptionif the protocol in use doesn't support this.

Reimplemented from decaf::net::URLStreamHandler.


The documentation for this class was generated from the following file: