|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectau.gov.nehta.vendorlibrary.ws.handler.LoggingHandler
public final class LoggingHandler
This SOAP handler logs incoming and outgoing SOAP messages. If a SOAP handler
is specified in the handler chain of a JAX-WS client or service, JAX-WS will
call the SOAP handler before a SOAP message is sent (request) and after a
SOAP message has been received (response).
| Field Summary | |
|---|---|
static java.lang.String |
EMPTY
Constant for empty string. |
static java.lang.String |
ENCODING
Character set encoding to use when serialising the SOAP XML. |
| Constructor Summary | |
|---|---|
LoggingHandler(boolean dump)
Default constructor. |
|
| Method Summary | |
|---|---|
void |
close(javax.xml.ws.handler.MessageContext context)
Does nothing Not utilised for dumping SOAP message. |
java.util.Set<javax.xml.namespace.QName> |
getHeaders()
Ignore processing of SOAP header as the primary intention is just to 'Dump' the SOAP message. |
java.lang.String |
getLastSoapRequest()
Getter for lastSoapRequest. |
java.lang.String |
getLastSoapResponse()
Getter for lastSoapResponse. |
boolean |
handleFault(javax.xml.ws.handler.soap.SOAPMessageContext context)
Logs outgoing and incoming faults. |
boolean |
handleMessage(javax.xml.ws.handler.soap.SOAPMessageContext context)
Logs outgoing and incoming messages. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String EMPTY
public static final java.lang.String ENCODING
| Constructor Detail |
|---|
public LoggingHandler(boolean dump)
dump - whether or not logging is required.| Method Detail |
|---|
public java.lang.String getLastSoapResponse()
public java.lang.String getLastSoapRequest()
public boolean handleMessage(javax.xml.ws.handler.soap.SOAPMessageContext context)
handleMessage in interface javax.xml.ws.handler.Handler<javax.xml.ws.handler.soap.SOAPMessageContext>context - The SOAP Message context.
Boolean.TRUE handle message is successful else return
FALSEHandler.handleMessage(javax.xml.ws.handler.MessageContext)public boolean handleFault(javax.xml.ws.handler.soap.SOAPMessageContext context)
handleFault in interface javax.xml.ws.handler.Handler<javax.xml.ws.handler.soap.SOAPMessageContext>context - the SOAP message context object to provide access to the SOAP message for either RPC request or
response
Boolean.TRUE if handleFault is successful, else returns
Boolean.FALSEHandler.handleFault(javax.xml.ws.handler.MessageContext)public java.util.Set<javax.xml.namespace.QName> getHeaders()
getHeaders in interface javax.xml.ws.handler.soap.SOAPHandler<javax.xml.ws.handler.soap.SOAPMessageContext>SOAPHandler.getHeaders()public void close(javax.xml.ws.handler.MessageContext context)
close in interface javax.xml.ws.handler.Handler<javax.xml.ws.handler.soap.SOAPMessageContext>context - the SOAP Message contextHandler.close(javax.xml.ws.handler.MessageContext)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||