Package overit.geocall.ui
Class GetUrl
java.lang.Object
overit.geocall.ui.GetUrl
- All Implemented Interfaces:
SingleUseComponent
This component extends
This Url can be an attachment in the
SingleUseComponent and must be used to add the script that launches an Url
to the SetupScript. This Url can be an attachment in the
ResourceServlet
and can be passed directly as a parameter or extracted from the Gate.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInstance of the GetUrl that receives the url as parameter and prepares the string that launches the url to be added to theSetupScript.Instance of the GetUrl that extracts the url from theGateand prepares the string that launches the url to be added to theSetupScript. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd the script that launches the url to theSetupScript.org.apache.ecs.ElementReturn an element null.
-
Field Details
-
_url
-
_launch
-
-
Constructor Details
-
GetUrl
Instance of the GetUrl that extracts the url from theGateand prepares the string that launches the url to be added to theSetupScript.- Parameters:
g-Gatefrom which to extract the url.ua- Not used.
-
GetUrl
Instance of the GetUrl that receives the url as parameter and prepares the string that launches the url to be added to theSetupScript.- Parameters:
url- Url to launch.ua-UserAgentthat identifies which device you are using. Used to check if you are with a mobile device (seeTAG_MOBILE).
-
-
Method Details
-
buildSetupScript
Add the script that launches the url to theSetupScript.- Specified by:
buildSetupScriptin interfaceSingleUseComponent- Parameters:
sb-StringBuilderused in theSetupScript.
-
getHtml
Return an element null.- Specified by:
getHtmlin interfaceSingleUseComponent- Parameters:
es- Not usedw- Not used- Returns:
Component.ELEMENT_NULL
-