当前位置:网站首页>其他InterSystems %Net工具
其他InterSystems %Net工具
2022-07-04 17:10:00 【用户7741497】
下面是%Net
中其他一些有用类的简短列表:
%Net.URLParser
InterSystems IRIS提供了一个实用程序类%Net.URLParser
,可以使用它将URL字符串解析为其组成部分。例如,当您重定向HTTP请求时,这很有用。
该类包含一个类方法Parse()
,它接受一个包含URL
值的字符串,并通过引用返回一个包含URL
各部分的数组。例如:
/// 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"
返回时,组件将包含此URL各部分的数组:
Element | Value | Description |
---|---|---|
components("fragment") | null | URL的片段(#字符后面) |
components("host") | www.google.com | URL请求的主机 |
components("netloc") | www.google.com | URL的网络地址 |
components("params") | URL中包含的URL参数 | |
components("path") | /search | URL的文件路径 |
components("query") | q=Java+site%3Adocs.intersystems.com&oq=Java+site%3Adocs.intersystems.com | URL中包含的查询字符串 |
components("scheme") | https | 此URL指定的传输方案 |
%Net.Charset
可以使用%Net.Charset
表示InterSystems IRIS内的MIME字符集,并将这些字符集映射到InterSystems IRIS区域设置。此类包括以下类方法:
GetDefaultCharset()
返回当前InterSystems IRIS区域设置的默认字符集。GetTranslateTable()
返回给定输入字符集的InterSystems IRIS转换表的名称。TranslateTableExists()
指示是否已加载给定字符集的转换表。
%Net.TelnetStream
可以使用%Net.TelnetStream
模拟Windows NT Telnet.exe
的握手行为。
%Net Security Classes
%Net
包提供了许多用于身份验证和安全性的类。
边栏推荐
- Li Kou brush question diary /day2/2022.6.24
- Scala基础教程--17--集合
- Halcon template matching
- Scala基础教程--16--泛型
- [system disk back to U disk] record the operation of system disk back to U disk
- Halcon模板匹配
- Detailed explanation of the maturity classification of ITSS operation and maintenance capability | one article clarifies the ITSS certificate
- Pb extended DLL development (super chapter) (VII)
- Scala基础教程--14--隐式转换
- Basic tutorial of scala -- 16 -- generics
猜你喜欢
Crawler (6) - Web page data parsing (2) | the use of beautifulsoup4 in Crawlers
vbs或vbe如何修改图标
Behind the ultra clear image quality of NBA Live Broadcast: an in-depth interpretation of Alibaba cloud video cloud "narrowband HD 2.0" technology
How is the entered query SQL statement executed?
[cloud native] what is the "grid" of service grid?
With the stock price plummeting and the market value shrinking, Naixue launched a virtual stock, which was deeply in dispute
Li Kou brush question diary /day3/2022.6.25
一种将Tree-LSTM的强化学习用于连接顺序选择的方法
同事悄悄告诉我,飞书通知还能这样玩
MXNet对GoogLeNet的实现(并行连结网络)
随机推荐
力扣刷题日记/day2/2022.6.24
android使用SQLiteOpenHelper闪退
TCP两次挥手,你见过吗?那四次握手呢?
Scala基础教程--16--泛型
Li Kou brush question diary /day3/2022.6.25
学习路之PHP--phpstudy创建项目时“hosts文件不存在或被阻止打开”
C language printing exercise
2022年字节跳动日常实习面经(抖音)
Esp32-c3 introductory tutorial questions ⑫ - undefined reference to ROM_ temp_ to_ power, in function phy_ get_ romfunc_ addr
fopen、fread、fwrite、fseek 的文件处理示例
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
李迟2022年6月工作生活总结
Scala basic tutorial -- 13 -- advanced function
MySQL常用增删改查操作(CRUD)
Just today, four experts from HSBC gathered to discuss the problems of bank core system transformation, migration and reconstruction
Scala basic tutorial -- 17 -- Collection
The controversial line of energy replenishment: will fast charging lead to reunification?
力扣刷题日记/day5/2022.6.27
ISO27001 certification process and 2022 subsidy policy summary
Angry bird design based on unity