public class JaxWSHeaderContextProcessor extends Object implements SOAPHandler<SOAPMessageContext>
Constructor and Description |
---|
JaxWSHeaderContextProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
close(MessageContext messageContext)
Called at the conclusion of a message exchange pattern just prior to
the JAX-WS runtime disptaching a message, fault or exception.
|
Set<QName> |
getHeaders()
Gets the header blocks that can be processed by this Handler instance.
|
boolean |
handleFault(SOAPMessageContext messageContext)
Tidy up the Transaction/Thread association before faults are thrown back to the client.
|
protected boolean |
handleInbound(SOAPMessageContext msgContext)
Process the tx context header that is attached to the received message.
|
protected boolean |
handleInboundMessage(SOAPMessage soapMessage)
Handle the request.
|
protected boolean |
handleInboundMessage(SOAPMessage soapMessage,
boolean installSubordinateTx)
Handle the request.
|
boolean |
handleMessage(SOAPMessageContext msgContext)
Process a message.
|
protected boolean |
handleOutbound(SOAPMessageContext messageContext)
Tidy up the Transaction/Thread association before response is returned to the client.
|
void |
setHeaders(Set headers)
Sets the header blocks that can be processed by this Handler instance.
|
protected void |
suspendTransaction()
Suspend the current transaction.
|
public boolean handleMessage(SOAPMessageContext msgContext)
handleMessage
in interface Handler<SOAPMessageContext>
msgContext
- public boolean handleFault(SOAPMessageContext messageContext)
handleFault
in interface Handler<SOAPMessageContext>
messageContext
- public void close(MessageContext messageContext)
Handler
close
in interface Handler<SOAPMessageContext>
messageContext
- the message contextpublic Set<QName> getHeaders()
getHeaders
in interface SOAPHandler<SOAPMessageContext>
QNames
of header blocks processed by this
handler instance. QName
is the qualified
name of the outermost element of the Header block.public void setHeaders(Set headers)
protected boolean handleInbound(SOAPMessageContext msgContext)
msgContext
- protected boolean handleOutbound(SOAPMessageContext messageContext)
messageContext
- The current message context.protected boolean handleInboundMessage(SOAPMessage soapMessage)
soapMessage
- The current message context.protected boolean handleInboundMessage(SOAPMessage soapMessage, boolean installSubordinateTx)
soapMessage
- The current message context.installSubordinateTx
- true if a subordinate transaction should be interposed and false
if the handler should just resume the incoming transaction. currently only works for AT
transactions but will eventually be extended to work for BA transactions too.protected void suspendTransaction()
Copyright © 2017 JBoss by Red Hat. All rights reserved.