Application URLs

All application URLs generated by Lycia follow this pattern:

<sheme>://[user[:password]@]<host>[:<port>]/<prefix>/<command>/<appserver instance>/[<path>/]<application_name>[?[<client_variables>&][params=[<parameters>&][<arguments>]]

where

<scheme>

the scheme used to refer to a web resource (with Lycia, it is the Internet protocol - http or https

<host>

the address of the WebServer (e.g., localhost for applications run on the development station)

<port>

the port used by the WebServer (it is 9090 for the noauth port and 9443 for the secure port)

<prefix>

the Lycia client (e.g., LyciaWeb for applications run via LyciaWeb) or contextPath

<command>

tells the webserver what it must do (usually, run but can be some another command like esapi)

<appserver instance>

the AppServer instance selected by default for this program (by default, it can be default or secure)

<application_name>

the name of the application

<path>

the sub-directory in the working directory of the AppServer instance

<client_variables>

a set of parameters and arguments for the Lycia client and qrun (by default, they include console=page, unl=1, cache=check, and timeout=0)

<parameters>

extra parameters for qrun (currently, only one parameter, -d, is used - e.g., -d%20informix for application run with the Informix database driver)

<arguments>

launching arguments specified for the application in its properties or run configurations

For example,

http://localhost:9090/LyciaWeb/run/default/new_program.exe?console=page&unl=1&cache=check&timeout=0&params=-d%20informix%20test

Substitution patterns for URL

Most parts of the application URL are read by a Lycia client and are used by the client to fill its environment variables:

{PROTOCOL}

= <scheme> - the Internet protocol - http or https

{HOST}

= <host> - the address of the webserver (e.g., localhost for applications run on the development station)

{PORT}

= <port> the port used by the webserver (by default, it is 9090 for the noauth port and 9443 for the secure port)

{HOSTPORT}

= <host>:<port> - the combination of the address of the webserver and its port (e.g., localhost:9090)

{CONTEXT}

= <protocol>://<host>:<port> - the combination of the Internet protocol, the address of the WebServer and its port (e.g., http://localhost:9090)

You can learn more about Lycia usage of {CONTEXT} here and here.

{PREFIX}

= <prefix> - the URL path prefix (e.g., LyciaWeb for applications run via LyciaWeb)

{INSTANCE}

= <appserver instance> - the AppServer instance by which the application was run (by default, it can be default or secure)

{PROGPATH}

the path to the application in complex projects with multilevel hierarchy (e.g., /cms_2017 in http://localhost:9090/LyciaWeb/run/default/cms_2017/cmsStock.exe)

Refer here to learn more about using {CONTEXT} when working with public client-side resources.

 

 

Contact Us

Privacy Policy

Copyright © 2024 Querix, (UK) Ltd.