Gréasán
Íomhánna
Físeáin
Acadúil
Deachtaigh
Mapaí
Tuilleadh
Eitiltí
Nótaleabhar
JAX-RS
Gréasán
参看
Sainmhíniú Gréasáin
1.
参看
GlassFish社区奉献的Java... ... 编码的各类标准 (参看: Fast 方法(
参看
:
JAX-RS
●自动委派恢复( delegated recovery initiation) ...
www.5doc.com
|
Bunaithe ar leathanach amháin
Abairt shamplach
Sainmhíniú:
Gach
Gach
,
参看
参看
Catagóir:
Gach
Gach
,
Béil
Béil
,
Scríofa
Scríofa
,
Teideal
Teideal
,
Teicniúil
Teicniúil
Foinse:
Gach
Gach
,
Foclóir
Foclóir
,
Gréasán
Gréasán
Deacracht:
Gach
Gach
,
Éasca
Éasca
,
Meánach
Meánach
,
Deacair
Deacair
Tuilleadh scagairí abairtí
Folaigh scagairí abairtí
1.
Restlet
includes
a
client
API
that makes it
easy
to
consume
any
remote
HTTP-based
services
,
not
just
JAX
-
RS
services
.
Restlet
包含
一个
客户端
API
,
支持
轻松
使用
任何
基于
HTTP
的
远程
服务
,
而
不仅仅是
JAX-RS
服务
。
Restlet
bāo hán
yī gè
kè hù duān
API
,
zhī chí
qīng sōng
shǐ yòng
rèn hé
jī yú
HTTP
de
yuǎn chéng
fú wù
,
ér
bù jǐn jǐn shì
JAX-RS
fú wù
。
www.ibm.com
2.
Annotation-based
injection
often
used
by
JAX
-
RS
resource
classes
may
not
be
supported
in
the
case
of
a
singleton
instance
.
常
被
JAX-RS
资源
类
使用
的
基于
注释
的
注入
可能
在
一个
单
例
实例
的
情况
内
并不
受
支持
。
cháng
bèi
JAX-RS
zī yuán
lèi
shǐ yòng
de
jī yú
zhù shì
de
zhù rù
kě néng
zài
yī gè
dān
lì
shí lì
de
qíng kuàng
nèi
bìng bù
shòu
zhī chí
。
www.ibm.com
3.
The
last
thing
you
need
to
do
to
complete
the
JAX
-
RS
story
is
show
the
configuration
needed
to wire
all
of
it up
.
要
完成
JAX-RS
需要
做
的
最后
一件
事
是
显示
用于
包装
所有
内容
的
配置
。
yào
wán chéng
JAX-RS
xū yào
zuò
de
zuì hòu
yī jiàn
shì
shì
xiǎn shì
yòng yú
bāo zhuāng
suǒ yǒu
nèi róng
de
pèi zhì
。
www.ibm.com
4.
I
got
involved
with
JAX
-
RS
because
I
thought
it
was
the
least
intrusive
way
to
help
you
write
RESTful
services
.
我
参与
到
JAX-RS
是
因为
我
觉得
它
是
最
不
具
侵入
性
的
一种
帮助
你
编写
RESTful
服务
的
方式
。
wǒ
cān yù
dào
JAX-RS
shì
yīn wèi
wǒ
jué de
tā
shì
zuì
bù
jù
qīn rù
xìng
de
yī zhǒng
bāng zhù
nǐ
biān xiě
RESTful
fú wù
de
fāng shì
。
www.infoq.com
5.
So far
,
all
I
've
talked
about
in
Listing
1
are
the
JAX
-
RS
annotations
that
set
up
the routing
and
data
serialization
for the
service
.
到
这里
,
我
只
阐述
了
清单
1
中
创建
服务
寻址
和
数据
序列化
的
代码
所
用
到
的
JAX-RS
注释
。
dào
zhè lǐ
,
wǒ
zhǐ
chǎn shù
le
qīng dān
yī
zhōng
chuàng jiàn
fú wù
xún zhǐ
hé
shù jù
xù liè huà
de
dài mǎ
suǒ
yòng
dào
de
JAX-RS
zhù shì
。
www.ibm.com
6.
Set
only
one
of
the
media
types, which
corresponds
to the
media
type
produced
in
the
JAX
-
RS
web
service
,
in
the
Accept
header
.
在
Accept
中
只
设置
一种
媒体
类型
,
该
类型
与
JAX-RSWeb
服务
中
生成
的
媒体
类型
对应
。
zài
Accept
zhōng
zhǐ
shè zhì
yī zhǒng
méi tǐ
lèi xíng
,
gāi
lèi xíng
yǔ
JAX-RSWeb
fú wù
zhōng
shēng chéng
de
méi tǐ
lèi xíng
duì yìng
。
www.ibm.com
7.
Finally
,
this
article
helps
you
select
the
right
framework
for
your
needs
by
analyzing
and
reviewing
the
different
JAX
-
RS
implementations
.
最后
,
本文
通过
分析
和
审查
这些
不同
的
JAX-RS
实现
来
帮助
您
选择
适合
自己
需求
的
适当
框架
。
zuì hòu
,
běn wén
tōng guò
fēn xī
hé
shěn chá
zhè xiē
bù tóng
de
JAX-RS
shí xiàn
lái
bāng zhù
nín
xuǎn zé
shì hé
zì jǐ
xū qiú
de
shì dàng
kuàng jià
。
www.ibm.com
8.
As you
can
see
from the
servlet
declaration
,
the
application
is
using
Jersey
,
the
reference
implementation
of
JAX
-
RS
.
我们
可以
看到
servlet
声明
,
应用
使用
了
JAX-RS
的
参考
实现
Jersey
。
wǒ men
kě yǐ
kàn dào
servlet
shēng míng
,
yìng yòng
shǐ yòng
le
JAX-RS
de
cān kǎo
shí xiàn
Jersey
。
www.ibm.com
9.
So
,
what are the
main
areas
used
to
compare
these
different
JAX
-
RS
implementations
?
那么
,
应该
使用
那些
主要
领域
来
比较
这些
不同
的
JAX-RS
实现
呢?
nà me
,
yīng gāi
shǐ yòng
nà xiē
zhǔ yào
lǐng yù
lái
bǐ jiào
zhè xiē
bù tóng
de
JAX-RS
shí xiàn
ne ?
www.ibm.com
10.
Although
the
REST
support
is
not
an
implementation
of
JAX
-
RS
,
it
has
more
features
than
the
specification
defines
.
虽然
,
对
REST
的
支持
并不是
JAX-RS
的
一种
实现
,
但是
它
具有
比
标准
定义
更多
的
特性
。
suī rán
,
duì
REST
de
zhī chí
bìng bú shì
JAX-RS
de
yī zhǒng
shí xiàn
,
dàn shì
tā
jù yǒu
bǐ
biāo zhǔn
dìng yì
gèng duō
de
tè xìng
。
www.ibm.com
1
2
3
4
5
zproxy.org