ObjFW
Public Member Functions | Static Public Member Functions | Properties
OFURL Class Reference

A class for parsing URLs and accessing parts of it. More...

#include <OFURL.h>

Inheritance diagram for OFURL:
OFObject <OFCopying> <OFObject>

List of all members.

Public Member Functions

id initWithString: (OFString *str)
id initWithString:relativeToURL: (OFString *str,[relativeToURL] OFURL *url)
OFStringscheme ()
void setScheme: (OFString *scheme)
OFStringhost ()
void setHost: (OFString *host)
uint16_t port ()
void setPort: (uint16_t port)
OFStringuser ()
void setUser: (OFString *user)
OFStringpassword ()
void setPassword: (OFString *password)
OFStringpath ()
void setPath: (OFString *path)
OFStringparameters ()
void setParameters: (OFString *parameters)
OFStringquery ()
void setQuery: (OFString *query)
OFStringfragment ()
void setFragment: (OFString *fragment)

Static Public Member Functions

id URLWithString: (OFString *str)
id URLWithString:relativeToURL: (OFString *str,[relativeToURL] OFURL *url)

Properties

OFStringscheme
OFStringhost
uint16_t port
OFStringuser
OFStringpassword
OFStringpath
OFStringparameters
OFStringquery
OFStringfragment

Detailed Description

A class for parsing URLs and accessing parts of it.


Member Function Documentation

OFString* OFURL::fragment ( ) [virtual]
Returns:
The fragment part of the URL
OFString* OFURL::host ( ) [virtual]
Returns:
The host part of the URL
id OFURL::initWithString: ( OFString str) [virtual]

Initializes an already allocated OFURL.

Parameters:
strA string describing a URL
Returns:
An initialized OFURL
id OFURL::initWithString:relativeToURL: ( OFString str,
[relativeToURL] OFURL url 
) [virtual]

Initializes an already allocated OFURL.

Parameters:
strA string describing a URL
urlA URL to which the string is relative
Returns:
An initialized OFURL
OFString* OFURL::parameters ( ) [virtual]
Returns:
The parameters part of the URL
OFString* OFURL::password ( ) [virtual]
Returns:
The password part of the URL
OFString* OFURL::path ( ) [virtual]
Returns:
The path part of the URL
uint16_t OFURL::port ( ) [virtual]
Returns:
The port part of the URL
OFString* OFURL::query ( ) [virtual]
Returns:
The query part of the URL
OFString* OFURL::scheme ( ) [virtual]
Returns:
The scheme part of the URL
void OFURL::setFragment: ( OFString fragment) [virtual]

Set the fragment part of the URL.

Parameters:
fragmentThe fragment part of the URL to set
void OFURL::setHost: ( OFString host) [virtual]

Set the host part of the URL.

Parameters:
hostThe host part of the URL to set
void OFURL::setParameters: ( OFString parameters) [virtual]

Set the parameters part of the URL.

Parameters:
parametersThe parameters part of the URL to set
void OFURL::setPassword: ( OFString password) [virtual]

Set the password part of the URL.

Parameters:
passwordThe password part of the URL to set
void OFURL::setPath: ( OFString path) [virtual]

Set the path part of the URL.

Parameters:
pathThe path part of the URL to set
void OFURL::setPort: ( uint16_t  port) [virtual]

Set the port part of the URL.

Parameters:
portThe port part of the URL to set
void OFURL::setQuery: ( OFString query) [virtual]

Set the query part of the URL.

Parameters:
queryThe query part of the URL to set
void OFURL::setScheme: ( OFString scheme) [virtual]

Set the scheme part of the URL.

Parameters:
schemeThe scheme part of the URL to set
void OFURL::setUser: ( OFString user) [virtual]

Set the user part of the URL.

Parameters:
userThe user part of the URL to set
id OFURL::URLWithString: ( OFString str) [static, virtual]
Parameters:
strA string describing a URL
Returns:
A new, autoreleased OFURL
id OFURL::URLWithString:relativeToURL: ( OFString str,
[relativeToURL] OFURL url 
) [static, virtual]
Parameters:
strA string describing a URL
urlAn URL to which the string is relative
Returns:
A new, autoreleased OFURL
OFString* OFURL::user ( ) [virtual]
Returns:
The user part of the URL

The documentation for this class was generated from the following files:
 All Classes Functions Variables