@urlAlias::setTarget

Specifies the target of the short URL.

Syntax:

@urlAlias::setTarget(String url)

Parameters:

(String) url: the target IP address of the URL to be encoded.

Returns:

None

Example:

 

@person = @event::getRecipient($recipient.owner)

  $hasMobileAccess = $person.hasMobileAccess

  $accessibleServices = @person::getAccessibleIntegrationServices($event.domain)  

  $hasAccessToSample = $accessibleServices::contains("sample")  

 

  IF ($hasMobileAccess && $hasAccessToSample)

    @urlAlias = @event::createURLAlias()  

    @urlAlias::setTarget("http://localhost:8888/mg/jsp/sample/executePing.jsp")

    @urlAlias::setHost("http://localhost:8888")

    @urlAlias::setTimeout(3600)

    @urlAlias::setParameter("username", $person.targetName)

    @urlAlias::setParameter("command", "dir")

    $alias = @urlAlias::activate()  

    $content.message = $content.message & " Link: " & $alias  

  ENDIF