SOAPBinding (Java EE 5)

Java EE API


javax.xml.ws.soap Interface SOAPBinding

All Superinterfaces:
Binding

public interface SOAPBinding
extends Binding

Implements: Binding

SOAPBinding 接口是 SOAP 绑定的抽象。
英文文档:

The SOAPBinding interface is an abstraction for the SOAP binding.

Since:
JAX-WS 2.0

Field Summary
static String
static String
static String
static String
 
Method Summary
 MessageFactory
 Set<String>
 SOAPFactory
 boolean
 void
 void
 
Methods inherited from interface javax.xml.ws.Binding
 

Field Detail

英文文档:

SOAP11HTTP_BINDING

static final String SOAP11HTTP_BINDING
A constant representing the identity of the SOAP 1.1 over HTTP binding.

See Also:
Constant Field Values


英文文档:

SOAP12HTTP_BINDING

static final String SOAP12HTTP_BINDING
A constant representing the identity of the SOAP 1.2 over HTTP binding.

See Also:
Constant Field Values


英文文档:

SOAP11HTTP_MTOM_BINDING

static final String SOAP11HTTP_MTOM_BINDING
A constant representing the identity of the SOAP 1.1 over HTTP binding with MTOM enabled by default.

See Also:
Constant Field Values


英文文档:

SOAP12HTTP_MTOM_BINDING

static final String SOAP12HTTP_MTOM_BINDING
A constant representing the identity of the SOAP 1.2 over HTTP binding with MTOM enabled by default.

See Also:
Constant Field Values

Method Detail

public java.util.Set<E> getRoles()
获取 SOAP 绑定实例所扮演的角色。
return Set 绑定实例所扮演的角色的集合。
英文文档:

getRoles

Set<String> getRoles()
Gets the roles played by the SOAP binding instance.

Returns:
Set The set of roles played by the binding instance.

英文文档:

setRoles

void setRoles(Set<String> roles)
Sets the roles played by the SOAP binding instance.

Parameters:
roles - The set of roles played by the binding instance.
Throws:
WebServiceException - On an error in the configuration of the list of roles.

public boolean isMTOMEnabled()
如果启用了 MTOM,则返回 true
return 当且仅当启用 MTOM 时,返回 true
英文文档:

isMTOMEnabled

boolean isMTOMEnabled()
Returns true if the use of MTOM is enabled.

Returns:
true if and only if the use of MTOM is enabled.

public void setMTOMEnabled(boolean flag)
启用或禁用 MTOM。
flag 指定是应该启用 MTOM 还是应该禁用 MTOM 的 boolean
ThrowsWebServiceException: 如果此绑定实例不支持指定的设置。
英文文档:

setMTOMEnabled

void setMTOMEnabled(boolean flag)
Enables or disables use of MTOM.

Parameters:
flag - A boolean specifying whether the use of MTOM should be enabled or disabled.
Throws:
WebServiceException - If the specified setting is not supported by this binding instance.

public SOAPFactory getSOAPFactory()
获取此 SOAP 绑定使用的 SAAJ SOAPFactory 实例。
return 此 SOAP 绑定使用的 SOAPFactory 实例。
英文文档:

getSOAPFactory

SOAPFactory getSOAPFactory()
Gets the SAAJ SOAPFactory instance used by this SOAP binding.

Returns:
SOAPFactory instance used by this SOAP binding.

public MessageFactory getMessageFactory()
获取此 SOAP 绑定使用的 SAAJ MessageFactory 实例。
return 此 SOAP 绑定使用的 MessageFactory 实例。
英文文档:

getMessageFactory

MessageFactory getMessageFactory()
Gets the SAAJ MessageFactory instance used by this SOAP binding.

Returns:
MessageFactory instance used by this SOAP binding.


Submit a bug or feature

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

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

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