@Target(value={TYPE,METHOD,FIELD}) @Retention(value=RUNTIME) @Documented @WebServiceFeatureAnnotation(id="http://www.w3.org/2005/08/addressing/module", bean=AddressingFeature.class) public @interface Addressing
这个注释必须使用与WebService
,结合WebServiceProvider
,和WebServiceRef
注释。当使用一个javax.jws.WebService
注释,该注释只能用于服务端点实现类。当使用一个WebServiceRef
注释,该注释必须使用一个代理实例被创建时。注入的SEI代理端点必须尊重的Addressing
标注值。
这个注释的行为是由相应的特征AddressingFeature
定义。
Modifier and Type | Optional Element and Description |
---|---|
boolean |
enabled
指定此功能是否已启用或禁用。
|
boolean |
required
如果在启用,此属性确定是否需要WS-Addressing端点。
|
AddressingFeature.Responses |
responses
如果启用了寻址,此属性确定端点是否需要使用匿名响应,或非匿名响应,或所有。
|
public abstract boolean enabled
public abstract boolean required
public abstract AddressingFeature.Responses responses
AddressingFeature.Responses.ALL
支持所有反应类型,这是默认值。
AddressingFeature.Responses.ANONYMOUS
要求只能使用匿名的反应。这将导致基于:AnonymousResponses断言为嵌套在指定生成的WSDL 3.1.2 AnonymousResponses Assertion。
AddressingFeature.Responses.NON_ANONYMOUS
要求只能使用非匿名的反应。它将带来方便nonanonymousresponses嵌套的断言在生成的WSDL在 3.1.3 NonAnonymousResponses Assertion指定。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.