The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Apache::Sling::URL - Functions for handling urls to be passed from/to an Apache Sling instance.

ABSTRACT

useful utility functions for manipulating URLs.

METHODS

add_leading_slash

Function to add a leading slash to a string if one does not exist.

strip_leading_slash

Function to remove any leading slashes from a string.

properties_array_to_string

Function to convert an array of a property values to a suitable string representation.

urlencode

Function to encode a string so it is suitable for use in urls.

url_input_sanitize

Sanitizes input url by removing trailing slashes and adding a protocol if missing.

USAGE

use Apache::Sling::URL;

DESCRIPTION

Utility library providing useful URL functions for general Rest functionality.

REQUIRED ARGUMENTS

None required.

OPTIONS

n/a

DIAGNOSTICS

n/a

EXIT STATUS

0 on success.

CONFIGURATION

None required.

DEPENDENCIES

INCOMPATIBILITIES

None known.

BUGS AND LIMITATIONS

None known.

AUTHOR

Daniel David Parry <perl@ddp.me.uk>

LICENSE AND COPYRIGHT

LICENSE: http://dev.perl.org/licenses/artistic.html

COPYRIGHT: (c) 2010 Daniel David Parry <perl@ddp.me.uk>