Skip to content

Overview

Concepts and Principles

Development

Overview

IDEs

API Explorer

Releases

Release Notes

TORO Integrate

Coder Studio

Coder Cloud

Bug Reports

Search

UrlMethods

UrlMethods contain utilitiy one-liners for manipulating URLs. To view the javadocs go here

These are the different ways of using UrlMethods:

Using Gloovy Step url method gloovy step

Using Invoke Code Step url method invoke step

Using Gloovy Step coder url method gloovy step

Using Invoke Code Step coder url method invoke step

1
2
3
4
5
6
7
    public String filenameFromUrlSample() {
        return "http://example.org/index.jsp".filenameFromUrl() //simply returns the filename which in this case is *index.jsp*
    }

    public String extractRemainderSample() {
        return "bambi".extractRemainder("http://example.org/bambi/deer") //returns the remainder of the url starting with the from parameter
    }