Chinaunix首页 | 论坛 | 博客
  • 博客访问: 128267
  • 博文数量: 69
  • 博客积分: 2895
  • 博客等级: 少校
  • 技术积分: 710
  • 用 户 组: 普通用户
  • 注册时间: 2010-09-03 18:05
文章分类

全部博文(69)

文章存档

2010年(69)

我的朋友

分类:

2010-09-15 23:39:48

 restlet目前支持多种协议。

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

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

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

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

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

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

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

restlet 支持如下协议:

ajp

和 "restlet中使用的协议以及协议的检查规则" 有关的java编程小帖士:

strong>Locale.getShortDateOrder

检取短日期格式顺序。

语法

public int getShortDateOrder ( );

返回值返回一个整数值,此值代表了短日期格式的顺序。

说明

此方法的返回值可以是下面所列出的值之一:

值 意义 
0 Month-Day-Year 
1 Day-Month-Year 
2 Year-Month-Day

请参阅:Locale.DateFormatOrder, getLongDateOrder

   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. 

阅读(1425) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~