`
iamweiming
  • 浏览: 39624 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
社区版块
存档分类
最新评论

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. 

 

转自:http://blog.csdn.net/teamlet/article/details/3392254

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics