Public Member Functions | Static Public Member Functions | Properties

OFURL Class Reference

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

#import <OFURL.h>

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

List of all members.

Public Member Functions

(id) - initWithString:
(id) - initWithString:relativeToURL:
(OFString *) - scheme
(void) - setScheme:
(OFString *) - host
(void) - setHost:
(uint16_t) - port
(void) - setPort:
(OFString *) - user
(void) - setUser:
(OFString *) - password
(void) - setPassword:
(OFString *) - path
(void) - setPath:
(OFString *) - parameters
(void) - setParameters:
(OFString *) - query
(void) - setQuery:
(OFString *) - fragment
(void) - setFragment:

Static Public Member Functions

(id) + URLWithString:
(id) + URLWithString:relativeToURL:

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*) fragment  
Returns:
The fragment part of the URL
- (OFString*) host  
Returns:
The host part of the URL
- (id) initWithString: (OFString*)  str  

Initializes an already allocated OFURL.

Parameters:
str A string describing a URL
Returns:
An initialized OFURL
- (id) initWithString: (OFString*)  str
relativeToURL: (OFURL*)  url 

Initializes an already allocated OFURL.

Parameters:
str A string describing a URL
url A URL to which the string is relative
Returns:
An initialized OFURL
- (OFString*) parameters  
Returns:
The parameters part of the URL
- (OFString*) password  
Returns:
The password part of the URL
- (OFString*) path  
Returns:
The path part of the URL
- (uint16_t) port  
Returns:
The port part of the URL
- (OFString*) query  
Returns:
The query part of the URL
- (OFString*) scheme  
Returns:
The scheme part of the URL
- (void) setFragment: (OFString*)  fragment  

Set the fragment part of the URL.

Parameters:
fragment The fragment part of the URL to set
- (void) setHost: (OFString*)  host  

Set the host part of the URL.

Parameters:
host The host part of the URL to set
- (void) setParameters: (OFString*)  parameters  

Set the parameters part of the URL.

Parameters:
parameters The parameters part of the URL to set
- (void) setPassword: (OFString*)  password  

Set the password part of the URL.

Parameters:
password The password part of the URL to set
- (void) setPath: (OFString*)  path  

Set the path part of the URL.

Parameters:
path The path part of the URL to set
- (void) setPort: (uint16_t)  port  

Set the port part of the URL.

Parameters:
port The port part of the URL to set
- (void) setQuery: (OFString*)  query  

Set the query part of the URL.

Parameters:
query The query part of the URL to set
- (void) setScheme: (OFString*)  scheme  

Set the scheme part of the URL.

Parameters:
scheme The scheme part of the URL to set
- (void) setUser: (OFString*)  user  

Set the user part of the URL.

Parameters:
user The user part of the URL to set
+ (id) URLWithString: (OFString*)  str  
Parameters:
str A string describing a URL
Returns:
A new, autoreleased OFURL
+ (id) URLWithString: (OFString*)  str
relativeToURL: (OFURL*)  url 
Parameters:
str A string describing a URL
url An URL to which the string is relative
Returns:
A new, autoreleased OFURL
- (OFString*) user  
Returns:
The user part of the URL

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