MotechURL

public class MotechURL

A MOTECH class representing URL using “protocol://host” pattern.

Fields

URL_PATTERN

public static final String URL_PATTERN

Constructors

MotechURL

public MotechURL(String url)

Constructor.

Parameters:
  • url – the URL to be stored, if it doesn’t include protocol, “http://” will be added in front

Methods

getHost

public String getHost()

Returns host of the stored URL.

Returns:the host of stored URL

toString

public String toString()