当前位置:网站首页>Other InterSystems%net tools
Other InterSystems%net tools
2022-07-04 19:00:00 【User 7741497】
Here is %Net
A short list of some other useful classes in :
%Net.URLParser
InterSystems IRIS Provides a utility class %Net.URLParser
, You can use it to URL The string is parsed into its components . for example , When you redirect HTTP When asked , It's very useful .
This class contains a class method Parse()
, It accepts a containing URL
String of values , And return a containing by reference URL
An array of parts . for example :
/// w ##class(PHA.TEST.HTTP).URLParser()
ClassMethod URLParser()
{
Set url = "https://www.google.com/search?q=Java+site%3Adocs.intersystems.com&oq=Java+site%3Adocs.intersystems.com"
Do ##class(%Net.URLParser).Parse(url,.components)
zw components
}
DHC-APP>w ##class(PHA.TEST.HTTP).URLParser()
components("fragment")=""
components("host")="www.google.com"
components("netloc")="www.google.com"
components("params")=""
components("path")="/search"
components("query")="q=Java+site%3Adocs.intersystems.com&oq=Java+site%3Adocs.intersystems.com"
components("scheme")="https"
return , The component will contain this URL An array of parts :
Element | Value | Description |
---|---|---|
components("fragment") | null | URL Fragments of (# After the character ) |
components("host") | www.google.com | URL Requested host |
components("netloc") | www.google.com | URL Network address of |
components("params") | URL It contains URL Parameters | |
components("path") | /search | URL File path |
components("query") | q=Java+site%3Adocs.intersystems.com&oq=Java+site%3Adocs.intersystems.com | URL The query string contained in |
components("scheme") | https | this URL Specified transmission scheme |
%Net.Charset
have access to %Net.Charset
Express InterSystems IRIS Internal MIME Character set , And map these character sets to InterSystems IRIS Zone setup . This class includes the following class methods :
GetDefaultCharset()
Returns the current InterSystems IRIS Default character set for locale .GetTranslateTable()
Returns the... Of the given input character set InterSystems IRIS Name of conversion table .TranslateTableExists()
Indicates whether the conversion table for the given character set has been loaded .
%Net.TelnetStream
have access to %Net.TelnetStream
simulation Windows NT Telnet.exe
Handshake behavior of .
%Net Security Classes
%Net
Packages provide many classes for authentication and security .
边栏推荐
- Li Kou brush question diary /day2/2022.6.24
- Scala基础教程--19--Actor
- . Net ORM framework hisql practice - Chapter 2 - using hisql to realize menu management (add, delete, modify and check)
- What types of Thawte wildcard SSL certificates provide
- Scala基础教程--15--递归
- 中国农科院基因组所汪鸿儒课题组诚邀加入
- Digital "new" operation and maintenance of energy industry
- Pb extended DLL development (super chapter) (VII)
- 爬虫(6) - 网页数据解析(2) | BeautifulSoup4在爬虫中的使用
- 使用SSH
猜你喜欢
I always thought that excel and PPT could only be used for making statements until I saw this set of templates (attached)
Digital "new" operation and maintenance of energy industry
Li Kou brush question diary /day8/7.1
谷粒商城(一)
物联网应用技术的就业前景和现状
ByteDance dev better technology salon was successfully held, and we joined hands with Huatai to share our experience in improving the efficiency of web research and development
字节跳动Dev Better技术沙龙成功举办,携手华泰分享Web研发效能提升经验
Angry bird design based on unity
Scala basic tutorial -- 18 -- set (2)
一种将Tree-LSTM的强化学习用于连接顺序选择的方法
随机推荐
神经网络物联网应用技术学什么
Journal des problèmes de brosse à boutons de force / day6 / 6.28
6.26cf simulation match B: solution to array reduction problem
Imitation of numpy 2
Caché JSON 使用JSON适配器
输入的查询SQL语句,是如何执行的?
1、 Introduction to C language
2022-07-04:以下go语言代码输出什么?A:true;B:false;C:编译错误。 package main import 'fmt' func
[211] go handles the detailed documents of Excel library
能源行业的数字化“新”运维
力扣刷题日记/day2/2022.6.24
【2022年江西省研究生数学建模】水汽过饱和的核化除霾 思路分析及代码实现
Reptile elementary learning
Wanghongru research group of Institute of genomics, Chinese Academy of Agricultural Sciences is cordially invited to join
C语言打印练习
Thawte通配符SSL证书提供的类型有哪些
Crawler (6) - Web page data parsing (2) | the use of beautifulsoup4 in Crawlers
发送和接收IBM WebSphere MQ消息
物联网应用技术的就业前景和现状
Machine learning concept drift detection method (Apria)