|
OpenTop 1.3 | |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | Cross-Platform C++ | ||||
SUMMARY: CONSTRUCTOR | METHOD | DETAIL: CONSTRUCTOR | METHOD |
#include "ot/net/URLStreamHandler.h"
Method Summary | |
protected virtual int |
getDefaultPort() const Returns the default port number which servers for the protocol usually listen on. |
protected virtual bool |
hostsEqual(const URL& first, const URL& second) const Compares the hosts from two URLs for equality. |
protected virtual RefPtr< URLConnection > |
openConnection(const URL& url) const=0 Opens a URLConnection to the resource identified by a URL. |
protected virtual String |
parsePath(const String& context, const String& path) const Protected helper function called by ParseURL() to process the path name of a URL. |
protected virtual void |
parseURL(URL& urlRet, const String& spec) const Extracts the component parts of the URL from the passed string and sets the values in urlRet accordingly. |
protected virtual bool |
sameFile(const URL& first, const URL& second) const Compares two URLs to see if they relate to the same file. |
protected void |
setURL(URL& url, const String& protocol, const String& host, int port, const String& authority, const String& userInfo, const String& path, const String& query, const String& ref) const Protected helper function which provides update access to the individual components of a URL. |
protected virtual String |
toExternalForm(const URL& url) const Converts a URL into a valid string representation. |
Methods inherited from class ot::ManagedObject |
addRef, getRefCount, onFinalRelease, operator=, release |
Method Detail |
protected virtual int getDefaultPort() const
protected virtual bool hostsEqual(const URL& first, const URL& second) const
first
- second
- protected virtual RefPtr< URLConnection > openConnection(const URL& url) const=0
url
- IOException
- protected virtual String parsePath(const String& context, const String& path) const
context
- path
- protected virtual void parseURL(URL& urlRet, const String& spec) const
The caller (URL constructor) will already have stripped the protocol and ref parts from the specification string.
protected virtual bool sameFile(const URL& first, const URL& second) const
Host names are compared by the hostsEqual() method. Port numbers are considered equal when they have the same value, or when one isn't specified and the other has the default port number specified.
first
- second
- protected void setURL(URL& url, const String& protocol, const String& host, int port, const String& authority, const String& userInfo, const String& path, const String& query, const String& ref) const
protected virtual String toExternalForm(const URL& url) const
url
-
|
OpenTop 1.3 | |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | Cross-Platform C++ | ||||
SUMMARY: CONSTRUCTOR | METHOD | DETAIL: CONSTRUCTOR | METHOD |