X4 Produktdokumentation

URL Encoding Converter

This adapter converts a URL or a string into a URL or vice versa.

Properties

Operation

Operation executed by the adapter

Possible values:

  • Encode: Encrypts the specified URL

  • Decode: Decodes the specified URL

  • EncodePlain: Encrypts the specified text

  • DecodePlain: Decodes the specified text

Parameters

Adapter

Main class of the adapter (do not change!)

Possible values: en.softproject.integration.adapter.url.UrlEncodingConverter: Main class (default)

Status values

1

The operation was executed successfully.

-1

The operation could not be executed.

Input

The adapter expects an XML file with the string or URL to be converted as input.

  • Operation Encode:

    XML
    <?xml version="1.0" encoding="UTF-8" ?>
    <URL>http://www.softproject.de/search?q=Hellö Wörld@X4$</URL>
    


  • Operation Decode:

    XML
    <?xml version="1.0" encoding="UTF-8" ?>
    <URL>http://www.softproject.de/search?q=Hell%C3%B6%20W%C3%B6rld@X4$</URL
    


  • Operation EncodePlain:

    XML
    <?xml version="1.0" encoding="UTF-8"?>
    <Text>Hellö Wörld@X4$</Text>
    


  • Operation DecodePlain:

    XML
    <?xml version="1.0" encoding="UTF-8"?>
    <Text>Hell%C3%B6%20W%C3%B6rld@X4$</Text>
    


Output

The adapter outputs an XML document with the converted URL.

  • Operation Encode

    XML
    <?xml version="1.0" encoding="UTF-8" ?>
    <URL>http://www.softproject.de/search?q=Hell%C3%B6%20W%C3%B6rld@X4$</URL
    


  • Operation Decode

    XML
    <?xml version="1.0" encoding="UTF-8" ?>
    <URL>http://www.softproject.de/search?q=Hellö Wörld@X4$</URL>
    


  • Operation EncodePlain:

    XML
    <?xml version="1.0" encoding="UTF-8"?>
    <Text>Hell%C3%B6%20W%C3%B6rld@X4$</Text>
    


  • Operation DecodePlain:

    XML
    <?xml version="1.0" encoding="UTF-8"?>
    <Text>Hellö Wörld@X4$</Text>