up: ZUT     index Zimbu documentation

CLASS ZUT.Url EXTENDS ZUT.Base @public

summary

     

A string that is a properly formatted URL.

This is used to ensure proper URL escaping.

$Init() @file 
NEW(safeContent, state) @file  Create a new Url with initial text safeContent, where the context at the end is state.
$add(text) ZUT.Base @public  Add text to the Url, it will be escaped.
$add(url) ZUT.Url @public  Add url to the URL as-is.
$addUNESCAPED(safeContent) ZUT.Base @public  Add safeContent to the section, it will not be escaped.
 
fromSafeString(safeContent) ZUT.Url @public  Create a ZUT.Url object from a string that contains a safe, already escaped Url.
 
Inherited from ZUT.Base:
NEW() @public 
$add(number) ZUT.Base @public  Add number to the item as a string.
$add(number) ZUT.Base @public  Add number to the item as a string.
$ToString() string @public  Return the concatenated result.
 

members (alphabetically)

     

PROC NEW(string safeContent, ZUT.UrlState state) @file

     

Create a new Url with initial text safeContent, where the context at the end is state.

PROC $Init() @file

FUNC $add(string text) ZUT.Base @public

     

Add text to the Url, it will be escaped.

FUNC $add(ZUT.Url url) ZUT.Url @public

     

Add url to the URL as-is.

FUNC $addUNESCAPED(string safeContent) ZUT.Base @replace @public

     

Add safeContent to the section, it will not be escaped.

USE WITH CARE: text that is not properly escaped can create an XSS vulnerability!

shared (alphabetically)

     

FUNC fromSafeString(string safeContent) ZUT.Url @public

     

Create a ZUT.Url object from a string that contains a safe, already escaped Url.

USE WITH CARE: text that is not properly escaped can create an XSS vulnerability!

license

      Copyright 2014 Bram Moolenaar All Rights Reserved.

      Licensed under the Apache License, Version 2.0. See the LICENSE file or obtain a copy at: http://www.apache.org/licenses/LICENSE-2.0