-
- All Known Subinterfaces:
- LogicalHandler<C>, SOAPHandler<T>
public interface Handler<C extends MessageContext>
TheHandler
interface is the base interface for JAX-WS handlers.- Since:
- JAX-WS 2.0
-
-
Method Summary
Methods Modifier and Type Method and Description 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)
ThehandleFault
method is invoked for fault message processing.boolean
handleMessage(C context)
ThehandleMessage
method is invoked for normal processing of inbound and outbound messages.
-
-
-
Method Detail
-
handleMessage
boolean handleMessage(C context)
ThehandleMessage
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.- Parameters:
context
- the message context.- Returns:
- An indication of whether handler processing should continue for
the current message
- Return
true
to continue processing. - Return
false
to block processing.
- Return
- Throws:
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)
ThehandleFault
method is invoked for fault message processing. Refer to the description of the handler framework in the JAX-WS specification for full details.- Parameters:
context
- the message context- Returns:
- An indication of whether handler fault processing should continue
for the current message
- Return
true
to continue processing. - Return
false
to block processing.
- Return
- Throws:
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.- Parameters:
context
- the message context
-
-
Document created the 11/06/2005, last modified the 04/03/2020
Source of the printed document:https://www.gaudry.be/en/java-api-rf-javax/xml/ws/handler/Handler.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.