当前位置:网站首页>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 .
边栏推荐
- 【2022年江西省研究生数学建模】冰壶运动 思路分析及代码实现
- [mathematical modeling of graduate students in Jiangxi Province in 2022] analysis and code implementation of haze removal by nucleation of water vapor supersaturation
- 如何提高开发质量
- 力扣刷题日记/day1/2022.6.23
- 一种将Tree-LSTM的强化学习用于连接顺序选择的方法
- Scala基础教程--15--递归
- Android uses sqliteopenhelper to flash back
- Scala basic tutorial -- 15 -- recursion
- [209] go language learning ideas
- Scala基础教程--13--函数进阶
猜你喜欢
输入的查询SQL语句,是如何执行的?
[mathematical modeling of graduate students in Jiangxi Province in 2022] analysis and code implementation of haze removal by nucleation of water vapor supersaturation
How is the entered query SQL statement executed?
力扣刷题日记/day7/6.30
Torchdrug tutorial
Scala basic tutorial -- 20 -- akka
Unity 制作旋转门 推拉门 柜门 抽屉 点击自动开门效果 开关门自动播放音效 (附带编辑器扩展代码)
[cloud native] what is the "grid" of service grid?
Lex and yacc based lexical analyzer + parser
Li Kou brush question diary /day5/2022.6.27
随机推荐
Mxnet implementation of googlenet (parallel connection network)
Rookie post station management system based on C language
2022年字节跳动日常实习面经(抖音)
Scala basic tutorial -- 15 -- recursion
模板_大整数减法_无论大小关系
其他InterSystems %Net工具
Caché WebSocket
爬虫(6) - 网页数据解析(2) | BeautifulSoup4在爬虫中的使用
MXNet对GoogLeNet的实现(并行连结网络)
Machine learning concept drift detection method (Apria)
Li Chi's work and life summary in June 2022
[210] usage of PHP delimiter
Lua EmmyLua 注解详解
How is the entered query SQL statement executed?
NBA赛事直播超清画质背后:阿里云视频云「窄带高清2.0」技术深度解读
力扣刷题日记/day6/6.28
信息学奥赛一本通 1336:【例3-1】找树根和孩子
ThreadLocal原理与使用
fopen、fread、fwrite、fseek 的文件处理示例
Thawte通配符SSL证书提供的类型有哪些