Class MessageTraceImpl
- java.lang.Object
-
- org.glassfish.webservices.monitoring.MessageTraceImpl
-
- All Implemented Interfaces:
MessageTrace
public class MessageTraceImpl extends Object implements MessageTrace
An invocation trace contains the timestamp os a particular message invocation, the stringified SOAP request and response or the SOAP Faults if the invocation resulted in one.NOT THREAD SAFE: mutable instance variables
- Author:
- Jerome Dochez
-
-
Constructor Summary
Constructors Constructor Description MessageTraceImpl()
Creates a new instance of InvocationTrace
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Endpoint
getEndpoint()
Return the endpoint where this message originated fromString
getMessage(boolean includeHeaders)
Return the SOAPMessage as a string including the SOAPHeaders or notTransportInfo
getTransportInfo()
Returns the transport dependent informationvoid
setEndpoint(Endpoint source)
void
setMessageContext(SOAPMessageContext soapMessageCtx)
void
setTransportInfo(TransportInfo info)
-
-
-
Method Detail
-
getMessage
public String getMessage(boolean includeHeaders)
Return the SOAPMessage as a string including the SOAPHeaders or not- Specified by:
getMessage
in interfaceMessageTrace
- Parameters:
includeHeaders
- the soap headers.- Returns:
- the soap message
-
getEndpoint
public Endpoint getEndpoint()
Return the endpoint where this message originated from- Specified by:
getEndpoint
in interfaceMessageTrace
-
setMessageContext
public void setMessageContext(SOAPMessageContext soapMessageCtx)
-
setEndpoint
public void setEndpoint(Endpoint source)
-
getTransportInfo
public TransportInfo getTransportInfo()
Description copied from interface:MessageTrace
Returns the transport dependent information- Specified by:
getTransportInfo
in interfaceMessageTrace
-
setTransportInfo
public void setTransportInfo(TransportInfo info)
-
-