public class URLUtility extends Object
EncodingUtility| Modifier and Type | Method and Description |
|---|---|
static String |
encodeURL(String url)
Encode a URL and return the encoded value.
|
public static String encodeURL(String url)
Example 1. For abc.xhtml?attribute1=value1&attribute2=value2,
then value1 and value2 are to be encoded, not other parts of url.
Example 2. For cable-types.xhtml?cableTypeName=1C20RG-58HV+ 2C20,
then 1C20RG-58HV+ 2C20 is to be encoded, not other parts of url.
url - a urlEncodingUtility.ENCODING_SCHEME,
EncodingUtility.encode(String),
EncodingUtility.decode(String)Copyright © 2025 European Spallation Source. All rights reserved.