1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
22 module com
{ module sun
{ module star
{ module util
{
25 /** represents the structure of a Uniform Resource Locator.
28 If the structure represents a valid URL or not depends on prior usage of
29 the functions of XURLTransformer. Only after one of the functions
30 returned `TRUE` this can be assumed.<br>
31 It is not necessary to set all of the fields; either URL::Complete
32 or (some of) the others are set. Additionally, most of the other
33 fields, like URL::Host, URL::Port,
34 URL::User, URL::Password,
35 or URL::Mark, are optional.
43 /** contains the string representation of the complete URL, for example,
44 http://www.sun.de:8080/pub/test/foo.txt?a=b#xyz
47 It is used as a central input/output or input parameter for the interfaces of
48 XURLTransformer. The usage of one of the XURLTransformer
49 function is mandatory to validate the URL. It cannot be assumed that
50 URL::Complete represents always a valid URL!
55 /** contains the URL without a mark and without arguments, for example,
56 http://www.sun.de:8080/pub/test/foo.txt
60 /** contains the protocol (scheme) of the URL, for example, "http"
64 /** contains the user-identifier of the URL, for example, "me"
68 /** contains the users password of the URL, for example, "pass"
72 /** contains the server part of the URL, for example, "www.sun.de"
76 /** contains the port at the server of the URL, for example, "8080"
80 /** contains all segments but the last one of the hierarchical path of the URL, for example, "/pub/test/"
84 /** contains the last segment of the hierarchical path of the URL, for the above example, "foo.txt"
86 <strong>Attention:</strong>A service implementing the XURLTransformer interface
87 will normally not detect if the last segment is a folder or a file. So it is possible that
88 the last segment describes a folder. If you want to be sure that a file URL that references
89 a folder will be correctly put into the URL fields you should append a "/" at the end of the
95 /** contains the arguments part of the URL, for example, "a=b"
99 /** contains the mark part of the URL, for example, "xyz"
108 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */