org.glassfish.webservices.monitoring
Class MessageTraceImpl

java.lang.Object
  extended by org.glassfish.webservices.monitoring.MessageTraceImpl
All Implemented Interfaces:
MessageTrace

public class MessageTraceImpl
extends java.lang.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
MessageTraceImpl()
          Creates a new instance of InvocationTrace
 
Method Summary
 Endpoint getEndpoint()
          Return the endpoint where this message originated from
 java.lang.String getMessage(boolean includeHeaders)
          Return the SOAPMessage as a string including the SOAPHeaders or not
 java.lang.String getMessageID()
           
 TransportInfo getTransportInfo()
          Returns the transport dependent information
 void setEndpoint(Endpoint source)
           
 void setMessageContext(com.sun.xml.rpc.spi.runtime.SOAPMessageContext soapMessageCtx)
           
 void setMessageContext(SOAPMessageContext soapMessageCtx)
           
 void setTransportInfo(TransportInfo info)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageTraceImpl

public MessageTraceImpl()
Creates a new instance of InvocationTrace

Method Detail

getMessage

public java.lang.String getMessage(boolean includeHeaders)
Return the SOAPMessage as a string including the SOAPHeaders or not

Specified by:
getMessage in interface MessageTrace
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 interface MessageTrace

setMessageContext

public void setMessageContext(com.sun.xml.rpc.spi.runtime.SOAPMessageContext soapMessageCtx)

setMessageContext

public void setMessageContext(SOAPMessageContext soapMessageCtx)

getMessageID

public java.lang.String getMessageID()

setEndpoint

public void setEndpoint(Endpoint source)

getTransportInfo

public TransportInfo getTransportInfo()
Description copied from interface: MessageTrace
Returns the transport dependent information

Specified by:
getTransportInfo in interface MessageTrace

setTransportInfo

public void setTransportInfo(TransportInfo info)


Copyright © 2012 GlassFish Community. All Rights Reserved.