activemq-cpp-3.9.0
decaf::internal::net::URLStreamHandlerManager Class Reference

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

Public Member Functions

virtual ~URLStreamHandlerManager ()
 
decaf::net::URLStreamHandlergetURLStreamHandler (const decaf::lang::String &protocol)
 Gets a URLStreamHandler for the specified protocol if one is available. More...
 
void setURLStreamHandlerFactory (decaf::net::URLStreamHandlerFactory *factory)
 Sets an application's URLStreamHandlerFactory. More...
 

Static Public Member Functions

static URLStreamHandlerManagergetInstance ()
 Returns the one and only URLStreamHandlerManager instance for this application. More...
 

Constructor & Destructor Documentation

virtual decaf::internal::net::URLStreamHandlerManager::~URLStreamHandlerManager ( )
virtual

Member Function Documentation

static URLStreamHandlerManager* decaf::internal::net::URLStreamHandlerManager::getInstance ( )
static

Returns the one and only URLStreamHandlerManager instance for this application.

The returned pointer should never be deleted by the application.

Returns
a URLStreamHandlerManager instance.
decaf::net::URLStreamHandler* decaf::internal::net::URLStreamHandlerManager::getURLStreamHandler ( const decaf::lang::String protocol)

Gets a URLStreamHandler for the specified protocol if one is available.

Parameters
protocolThe protocol to return a URL Stream Handler instance for.
Returns
a URLStreamHandler instance for the given protocol.
void decaf::internal::net::URLStreamHandlerManager::setURLStreamHandlerFactory ( decaf::net::URLStreamHandlerFactory factory)

Sets an application's URLStreamHandlerFactory.

This method can be called at most once.

The URLStreamHandlerFactory instance is used to construct a stream protocol handler from a protocol name. The provided factory becomes the property of this runtime and will be deleted at shutdown.

Parameters
factorythe desired factory.
Exceptions
Exceptionif there is already a set factory.

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