Restlet中使用的协议以及协议的检查规则

Restlet目前支持多种协议。

协议在Restlet中被客户端和服务端的connector使用,connector可以使实现了标准协议的组件之间进行通迅。

在ConnectorService中保存了client和server使用的protocol的列表。

在Restlet启动,即Component组件start(启动)的时候,ComponentHelper会检查当前应用允许使用哪些协议。

需要注意的是,默认这些protocol列表是空的,含义是支持所有的协议。
就是说,这个列表保存的是不允许使用协议的列表。
如果应用限制某些协议的使用,要把协议的内容保存到这个列表中。

在不同的help构造的时候,会加入相应的协议。

检查的时候,如果protocol列表中有协议存在,则从help中取出协议与protocol列表中的协议进行匹配,如果匹配了就告警。

否则,无需检查直接启动应用。

Restlet 支持如下协议:

AJP
AJP 1.3 protocol to communicate with Apache HTTP server or Microsoft IIS.

CLAP
CLAP (ClassLoader Access Protocol) is a custom scheme to access to representations via classloaders.

FILE
FILE is a standard scheme to access to representations stored in the file system (locally most of the time).

FTP
FTP protocol.

HTTP
HTTP protocol.

HTTPS
HTTPS protocol (via SSL socket).

JAR
JAR (Java ARchive) is a common scheme to access to representations inside archive files.

JDBC
JDBC protocol.

POP
POP protocol.

POPS
POPS protocol (via SSL/TLS socket)..

RIAP
RIAP (Restlet Internal Access Protocol) is a custom scheme to access representations via internal calls to virtual hosts/components.

SMTP
SMTP protocol.

SMTPS
SMTPS protocol (via SSL/TLS socket).

WAR
Local Web Archive access protocol.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值