|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
javax.xml.ws.soap Interface SOAPBinding
- All Superinterfaces:
- Binding
public interface SOAPBinding
- extends Binding
Implements:
Binding
SOAPBinding 接口是 SOAP 绑定的抽象。
| since | JAX-WS 2.0 |
The SOAPBinding interface is an abstraction for
the SOAP binding.
- Since:
- JAX-WS 2.0
| Field Summary | |
|---|---|
static String |
SOAP11HTTP_BINDING
A constant representing the identity of the SOAP 1.1 over HTTP binding. |
static String |
SOAP11HTTP_MTOM_BINDING
A constant representing the identity of the SOAP 1.1 over HTTP binding with MTOM enabled by default. |
static String |
SOAP12HTTP_BINDING
A constant representing the identity of the SOAP 1.2 over HTTP binding. |
static String |
SOAP12HTTP_MTOM_BINDING
A constant representing the identity of the SOAP 1.2 over HTTP binding with MTOM enabled by default. |
| Method Summary | |
|---|---|
MessageFactory |
getMessageFactory()
Gets the SAAJ MessageFactory instance used by this SOAP binding. |
Set<String> |
getRoles()
Gets the roles played by the SOAP binding instance. |
SOAPFactory |
getSOAPFactory()
Gets the SAAJ SOAPFactory instance used by this SOAP binding. |
boolean |
isMTOMEnabled()
Returns true if the use of MTOM is enabled. |
void |
setMTOMEnabled(boolean flag)
Enables or disables use of MTOM. |
void |
setRoles(Set<String> roles)
Sets the roles played by the SOAP binding instance. |
| Methods inherited from interface javax.xml.ws.Binding |
|---|
getHandlerChain, setHandlerChain |
| 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
trueif the use of MTOM is enabled. - Returns:
trueif and only if the use of MTOM is enabled.
public void
setMTOMEnabled(boolean flag)
启用或禁用 MTOM。
| flag |
指定是应该启用 MTOM 还是应该禁用 MTOM 的 boolean。 |
| Throws | WebServiceException: 如果此绑定实例不支持指定的设置。 |
setMTOMEnabled
void setMTOMEnabled(boolean flag)
- Enables or disables use of MTOM.
- Parameters:
flag- Abooleanspecifying 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
SOAPFactoryinstance 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
MessageFactoryinstance used by this SOAP binding. - Returns:
- MessageFactory instance used by this SOAP binding.
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Submit a bug or feature
Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!