|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
javax.xml.ws.handler Interface Handler<C extends MessageContext>
- 所有已知子接口:
- LogicalHandler<C>, SOAPHandler<T>
public interface Handler<C extends MessageContext>
The Handler
interface
is the base interface for JAX-WS handlers.
- 从以下版本开始:
- JAX-WS 2.0
方法摘要 | |
---|---|
void |
close(MessageContext context)
Called at the conclusion of a message exchange pattern just prior to the JAX-WS runtime disptaching a message, fault or exception. |
boolean |
handleFault(C context)
The handleFault method is invoked for fault message
processing. |
boolean |
handleMessage(C context)
The handleMessage method is invoked for normal processing
of inbound and outbound messages. |
方法详细信息 |
---|
handleMessage
boolean handleMessage(C context)
- The
handleMessage
method is invoked for normal processing of inbound and outbound messages. Refer to the description of the handler framework in the JAX-WS specification for full details. - 参数:
context
- the message context.- 返回:
- An indication of whether handler processing should continue for
the current message
- Return
true
to continue processing. - Return
false
to block processing.
- Return
- 抛出异常:
RuntimeException
- Causes the JAX-WS runtime to cease handler processing and generate a fault.ProtocolException
- Causes the JAX-WS runtime to switch to fault message processing.
handleFault
boolean handleFault(C context)
- The
handleFault
method is invoked for fault message processing. Refer to the description of the handler framework in the JAX-WS specification for full details. - 参数:
context
- the message context- 返回:
- An indication of whether handler fault processing should continue
for the current message
- Return
true
to continue processing. - Return
false
to block processing.
- Return
- 抛出异常:
RuntimeException
- Causes the JAX-WS runtime to cease handler fault processing and dispatch the fault.ProtocolException
- Causes the JAX-WS runtime to cease handler fault processing and dispatch the fault.
close
void close(MessageContext context)
- Called at the conclusion of a message exchange pattern just prior to
the JAX-WS runtime disptaching a message, fault or exception. Refer to
the description of the handler
framework in the JAX-WS specification for full details.
- 参数:
context
- the message context
|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
提交错误或意见
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.