当前位置:网站首页>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 .
边栏推荐
- 字节跳动Dev Better技术沙龙成功举办,携手华泰分享Web研发效能提升经验
- Scala basic tutorial -- 17 -- Collection
- 一、C语言入门基础
- Li Kou brush question diary /day4/6.26
- Li Kou brush question diary /day3/2022.6.25
- Wanghongru research group of Institute of genomics, Chinese Academy of Agricultural Sciences is cordially invited to join
- 【Go语言刷题篇】Go完结篇|函数、结构体、接口、错误入门学习
- 2022-07-04:以下go语言代码输出什么?A:true;B:false;C:编译错误。 package main import 'fmt' func
- 被忽视的问题:测试环境配置管理
- Angry bird design based on unity
猜你喜欢
Imitation of numpy 2
How to modify icons in VBS or VBE
2022年字节跳动日常实习面经(抖音)
ThreadLocal原理与使用
Neglected problem: test environment configuration management
Nature microbiology | viral genomes in six deep-sea sediments that can infect Archaea asgardii
Scala basic tutorial -- 20 -- akka
Wireshark抓包TLS协议栏显示版本不一致问题
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
MXNet对GoogLeNet的实现(并行连结网络)
随机推荐
[cloud native] what is the "grid" of service grid?
TCP waves twice, have you seen it? What about four handshakes?
Scala basic tutorial -- 18 -- set (2)
基于C语言的菜鸟驿站管理系统
TorchDrug教程
Improve the accuracy of 3D reconstruction of complex scenes | segmentation of UAV Remote Sensing Images Based on paddleseg
基于NCF的多模块协同实例
Blue bridge: sympodial plant
2022 ByteDance daily practice experience (Tiktok)
Deleting nodes in binary search tree
Scala基础教程--13--函数进阶
[210] usage of PHP delimiter
Lua emmylua annotation details
Uni app and uviewui realize the imitation of Xiaomi mall app (with source code)
Neglected problem: test environment configuration management
Li Kou brush question diary /day2/2022.6.24
资料下载 丨首届腾讯技术开放日课程精华!
输入的查询SQL语句,是如何执行的?
Pb extended DLL development (super chapter) (VII)
Scala basic tutorial -- 19 -- actor