ServiceMode (Java EE 5)

Java EE API


javax.xml.ws Annotation Type ServiceMode


@Target(value=TYPE)
@Retention(value=RUNTIME)
@Inherited
@Documented
public @interface ServiceMode

Implements: Annotation
@Target(value=TYPE)
@Retention(value=RUNTIME)
@Inherited
@Documented

用于指示 Provider 实现是希望使用整个协议消息还是只使用协议消息负载。
英文文档:

Used to indicate whether a Provider implementation wishes to work with entire protocol messages or just with protocol message payloads.

Since:
JAX-WS 2.0

Optional Element Summary
 Service.Mode
 

abstract public Service.Mode value()
服务模式。PAYLOAD 指示 Provider 实现只希望使用协议消息负载。MESSAGE 指示 Provider 实现希望使用整个协议消息。
英文文档:

value

public abstract Service.Mode value
Service mode. PAYLOAD indicates that the Provider implementation wishes to work with protocol message payloads only. MESSAGE indicates that the Provider implementation wishes to work with entire protocol messages.

Default:
PAYLOAD


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!