struct URL in module com::sun::star::util::

(Global Index)

Syntax

struct URL;

Description

represents the original and the parsed structure of a Uniform Resource Locator.

It is not necessary to set all of the fields; either URL::Complete or (some of) the others are set. Additionally, most of the other fields, like URL::User , URL::Password , or URL::Mark , are optional.

Field Summary

Complete contains the unparsed original URL, for example, http://me:pass @www.sun.de:8080/pub/test/foo.txt?a=b#xyz

Main contains the URL without a mark and without arguments, for example, http://me:pass @www.sun.de:8080/pub/test/foo.txt

Protocol contains the protocol (scheme) of the URL, for example, "http"

User contains the user-identifier of the URL, for example, "me"

Password contains the users password of the URL, for example, "pass"

Server contains the server part of the URL, for example, "www.sun.de"

Port contains the port at the server of the URL, for example, "8080"

Path contains the path part of the URL without the filename, for example, "/pub/test"

Name contains the filename part of the URL, for example, "foo.txt"

Arguments contains the arguments part of the URL, for example, "a=b"

Mark contains the mark part of the URL, for example, "xyz"

Field Details



Complete

Syntax

string Complete;

Description

contains the unparsed original URL, for example, http://me:pass @www.sun.de:8080/pub/test/foo.txt?a=b#xyz


Main

Syntax

string Main;

Description

contains the URL without a mark and without arguments, for example, http://me:pass @www.sun.de:8080/pub/test/foo.txt


Protocol

Syntax

string Protocol;

Description

contains the protocol (scheme) of the URL, for example, "http"


User

Syntax

string User;

Description

contains the user-identifier of the URL, for example, "me"


Password

Syntax

string Password;

Description

contains the users password of the URL, for example, "pass"


Server

Syntax

string Server;

Description

contains the server part of the URL, for example, "www.sun.de"


Port

Syntax

short Port;

Description

contains the port at the server of the URL, for example, "8080"


Path

Syntax

string Path;

Description

contains the path part of the URL without the filename, for example, "/pub/test"


Name

Syntax

string Name;

Description

contains the filename part of the URL, for example, "foo.txt"


Arguments

Syntax

string Arguments;

Description

contains the arguments part of the URL, for example, "a=b"


Mark

Syntax

string Mark;

Description

contains the mark part of the URL, for example, "xyz"

Top of Page