A URLHandlerImpl is base class for URL protocol-specific handlers
![]() | ~URLHandlerImpl () Destroys this object |
![]() | parseURL (URL& url, const string& spec) const Parses the string spec to set the fields in the URL |
![]() | initURL (URL& url, const string& host, int port, const string& file) const Initializes the URL with the host, port and name of file |
![]() | toExternalForm (const URL& url) const Formats the URL to an external string |
![]() | getURLConnection (const URL& url) const Returns the URL connection given the URL |
![]() | URLHandlerImpl () Constructs this object |
![]() | setHost (URL& url, const string& host) const Sets the host in the URL |
![]() | setPort (URL &url, int port) const Sets the port in the URL |
![]() | setFile (URL& url, const string& file) const Sets the file in the URL |
A URLHandlerImpl is base class for URL protocol-specific handlers. It provides methods such parsing the URL string representation, initializing the URL from a given string, returning the external format for the URL, and returning the default port for its protocol. In general this base class implments methods for the http protocol, which thus need to be overridden by the subclasses for file and ldap. URLHandlerImpls are created by the URLHandlerFactoryImpl which defines one URLHandlerImpl for each of the supported protocols: http, file or ldap.
virtual void parseURL(URL& url, const string& spec) const
MalformedURLException if reading port failed
spec - string to be parsed
StringTokenizer(const string& source, ... ) virtual void initURL(URL& url, const string& host, int port, const string& file) const
host - name of the host
port - port number
file - the name of the file
setPort(URL &url, int port)
setFile(URL& url, const string& file) virtual string toExternalForm(const URL& url) const
virtual URLConnection getURLConnection(const URL& url) const
URLHandlerImpl()
void setHost(URL& url, const string& host) const
host - the name of the host
void setPort(URL &url, int port) const
port - the port number
void setFile(URL& url, const string& file) const
file - string the name of the file
alphabetic index hierarchy of classes
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de