Arduino DLNA Server
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
tiny_dlna::Url Class Reference

URL parser which breaks a full url string up into its individual parts. More...

#include <Url.h>

Collaboration diagram for tiny_dlna::Url:
Collaboration graph
[legend]

Public Member Functions

 Url ()
 
 ~Url ()
 
 Url (const char *url)
 
 Url (Url &url)
 
const char * url ()
 
const char * path ()
 
const char * host ()
 
const char * protocol ()
 
const char * urlRoot ()
 
int port ()
 
void setUrl (const char *url)
 
 operator bool ()
 

Protected Member Functions

void parse ()
 

Protected Attributes

Str pathStr = Str(40)
 
Str hostStr = Str(20)
 
Str protocolStr = Str(6)
 
Str urlRootStr = Str(40)
 
Str urlStr = Str(40)
 
int portInt
 

Detailed Description

URL parser which breaks a full url string up into its individual parts.

http://pschatzmann.ch:80/path1/path2 -> protocol: http -> host: pschatzmann.ch -> port: 80 -> url: http://pschatzmann.ch:80/path1/path2 -> root: http://pschatzmann.ch:80

Constructor & Destructor Documentation

◆ Url() [1/3]

tiny_dlna::Url::Url ( )
inline

◆ ~Url()

tiny_dlna::Url::~Url ( )
inline

◆ Url() [2/3]

tiny_dlna::Url::Url ( const char *  url)
inline

◆ Url() [3/3]

tiny_dlna::Url::Url ( Url url)
inline

Member Function Documentation

◆ host()

const char* tiny_dlna::Url::host ( )
inline

◆ operator bool()

tiny_dlna::Url::operator bool ( )
inline

◆ parse()

void tiny_dlna::Url::parse ( )
inlineprotected

◆ path()

const char* tiny_dlna::Url::path ( )
inline

◆ port()

int tiny_dlna::Url::port ( )
inline

◆ protocol()

const char* tiny_dlna::Url::protocol ( )
inline

◆ setUrl()

void tiny_dlna::Url::setUrl ( const char *  url)
inline

◆ url()

const char* tiny_dlna::Url::url ( )
inline

◆ urlRoot()

const char* tiny_dlna::Url::urlRoot ( )
inline

Member Data Documentation

◆ hostStr

Str tiny_dlna::Url::hostStr = Str(20)
protected

◆ pathStr

Str tiny_dlna::Url::pathStr = Str(40)
protected

◆ portInt

int tiny_dlna::Url::portInt
protected

◆ protocolStr

Str tiny_dlna::Url::protocolStr = Str(6)
protected

◆ urlRootStr

Str tiny_dlna::Url::urlRootStr = Str(40)
protected

◆ urlStr

Str tiny_dlna::Url::urlStr = Str(40)
protected

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