- Learning Alfresco Web Scripts
- Ramesh Chauhan
- 271字
- 2021-08-05 17:28:04
Understanding the web script URI
It is important to understand the web script URI. The way the web script URI can be represented in a generic form is http[s]://<host>:<port>/[<contextPath>/]/<servicePath>[/<scriptPath>][?<scriptArgs>]
The terms used in the web script URI are explained as follows:
http[s]
: This is the protocol to invoke the web script. This could be eitherhttp
orhttps
.host
: This is the name or address of the server where the web script is deployed.port
: This is the port where the web script is exposed on the server hosting the web scripts.contextPath
: This is the path where the application is deployed to. For data web scripts, this would generally be/alfresco
.servicePath
: This is the path where the web script service is mapped with. Generally, this would be/service
.scriptPath
: This is the path to the web script as defined in the web script descriptor document*.desc.xml
under the<url>
tag.scriptArgs
: These are the arguments to be passed to the web script as generally defined in the web script descriptor document*.desc.xml
under the<url>
tag. Arguments can be specified after the web scriptscriptPath
just after?
.
Now you understand the different terms that make up the web script URI, now you can easily understand the URI of our first web script by mapping our web script URI to the generic form of the web script URI. Note that we were not having arguments added to our first web script, hence, you would not be able to map the scriptArgs
part. Let's now take a look at what needs to be done to add the arguments to a web script.
推薦閱讀
- Flask Web全棧開發(fā)實戰(zhàn)
- HTML5+CSS3+JavaScript從入門到精通:上冊(微課精編版·第2版)
- Mastering NetBeans
- SQL學習指南(第3版)
- PyTorch自動駕駛視覺感知算法實戰(zhàn)
- 體驗設(shè)計原理:行為、情感和細節(jié)
- 程序員面試算法寶典
- Java Web開發(fā)之道
- Python高效開發(fā)實戰(zhàn):Django、Tornado、Flask、Twisted(第2版)
- Extending Puppet(Second Edition)
- Mastering Unity 2D Game Development(Second Edition)
- C/C++數(shù)據(jù)結(jié)構(gòu)與算法速學速用大辭典
- Java Web從入門到精通(第2版)
- Java程序設(shè)計基礎(chǔ)(第6版)
- Microsoft Exchange Server 2016 PowerShell Cookbook(Fourth Edition)