Java EE 5 SDK

com.sun.appserv.management.ext.wsmgmt
Class MessageTraceImpl

java.lang.Object
  extended by com.sun.appserv.management.base.MapCapableBase
      extended by com.sun.appserv.management.ext.wsmgmt.MessageTraceImpl
All Implemented Interfaces:
MapCapable, MessageTrace

public final class MessageTraceImpl
extends MapCapableBase
implements MessageTrace

Provides details of a SOAP invocation.

Since:
AppServer 9.0

Field Summary
 
Fields inherited from interface com.sun.appserv.management.ext.wsmgmt.MessageTrace
CLASS_NAME
 
Fields inherited from interface com.sun.appserv.management.base.MapCapable
MAP_CAPABLE_CLASS_NAME_KEY
 
Constructor Summary
MessageTraceImpl(Map<String,Serializable> m, String className)
          Constructor
MessageTraceImpl(String id)
          Constructor
MessageTraceImpl(String id, String className)
          Constructor
 
Method Summary
 String getApplicationID()
          Returns the name of the application.
 String getClientHost()
          Returns the IP address or host name of the client machine.
 String getEndpointName()
          Returns the fully qualified name of the webservice endpoint
 String getFaultActor()
          Returns the fault actor.
 String getFaultCode()
          Returns the fault code.
 String getFaultString()
          Returns the fault string.
 String getHTTPRequestHeaders()
          Returns the comma separated list of HTTP request header names and its values.
 String getHTTPResponseHeaders()
          Returns the comma separated list of HTTP response header names and its values.
 String getMessageID()
          Returns the message id.
 String getPrincipalName()
          Returns the caller principal name.
 String getRequestContent()
          Returns the SOAP request content.
 int getRequestSize()
          Returns the total size in bytes of the request content.
 String getResponseContent()
          Returns the SOAP response content.
 int getResponseSize()
          Returns the total size in bytes of the response content.
 long getResponseTime()
          Returns the response time in milli seconds for this web service operation.
 long getTimestamp()
          Returns the time stamp when the SOAP message was received.
 String getTransportType()
          Returns the transport type.
 boolean isCallFlowEnabled()
          Returns if during this web service invocation call flow was enabled or not
 void setApplicationID(String id)
           
 void setCallFlowEnabled(boolean enabled)
          Returns if during this web service invocation call flow was enabled or not
 void setClientHost(String clientHost)
           
 void setEndpointName(String name)
           
 void setFaultActor(String faultActor)
           
 void setFaultCode(String faultCode)
           
 void setFaultString(String faultString)
           
 void setHTTPRequestHeaders(String reqHeaders)
           
 void setHTTPResponseHeaders(String resHeaders)
           
 void setPrincipalName(String principal)
           
 void setRequestContent(String reqContent)
           
 void setRequestSize(int reqSize)
           
 void setResponseContent(String resContent)
           
 void setResponseSize(int resSize)
           
 void setResponseTime(long resTime)
           
 void setTimeStamp(long ts)
          Returns the time stamp when the SOAP message was received.
 void setTransportType(String transport)
           
protected  boolean validate()
          Return true if internal state is valid, false otherwise.
 
Methods inherited from class com.sun.appserv.management.base.MapCapableBase
asMap, asMapHook, checkInJavaUtil, checkLegalObject, checkLegalObject, checkValidType, equals, getboolean, getBoolean, getByte, getField, getFile, getInteger, getMap, getMapClassName, getObject, getString, getStringArray, hashCode, illegalObject, makeImmutable, putAll, putField, putFieldHook, toString, validateNullOrOfType, validateThrow
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.sun.appserv.management.base.MapCapable
asMap, getMapClassName
 

Constructor Detail

MessageTraceImpl

public MessageTraceImpl(Map<String,Serializable> m,
                        String className)
Constructor


MessageTraceImpl

public MessageTraceImpl(String id,
                        String className)
Constructor

Parameters:
id - Message ID

MessageTraceImpl

public MessageTraceImpl(String id)
Constructor

Parameters:
id - Message ID
Method Detail

validate

protected boolean validate()
Description copied from class: MapCapableBase
Return true if internal state is valid, false otherwise.

Specified by:
validate in class MapCapableBase

getRequestSize

public int getRequestSize()
Returns the total size in bytes of the request content. This is SOAP content size including body and headers.

Specified by:
getRequestSize in interface MessageTrace
Returns:
SOAP request content size in bytes

setRequestSize

public void setRequestSize(int reqSize)

getResponseSize

public int getResponseSize()
Returns the total size in bytes of the response content. This is SOAP content size including body and headers.

Specified by:
getResponseSize in interface MessageTrace
Returns:
SOAP response content size in bytes

setResponseSize

public void setResponseSize(int resSize)

getRequestContent

public String getRequestContent()
Returns the SOAP request content. This contains SOAP body and headers.

Specified by:
getRequestContent in interface MessageTrace
Returns:
SOAP request content

setRequestContent

public void setRequestContent(String reqContent)

getResponseContent

public String getResponseContent()
Returns the SOAP response content. This contains SOAP body and headers.

Specified by:
getResponseContent in interface MessageTrace
Returns:
SOAP response content

setResponseContent

public void setResponseContent(String resContent)

getTransportType

public String getTransportType()
Returns the transport type. Known types are "HTTP", "JMS" and "SNMP".

Specified by:
getTransportType in interface MessageTrace
Returns:
transport type

setTransportType

public void setTransportType(String transport)

getHTTPRequestHeaders

public String getHTTPRequestHeaders()
Returns the comma separated list of HTTP request header names and its values. Null if transport type is not HTTP.

Specified by:
getHTTPRequestHeaders in interface MessageTrace
Returns:
HTTP request headers

setHTTPRequestHeaders

public void setHTTPRequestHeaders(String reqHeaders)

getHTTPResponseHeaders

public String getHTTPResponseHeaders()
Returns the comma separated list of HTTP response header names and its values. Null if transport type is not HTTP.

Specified by:
getHTTPResponseHeaders in interface MessageTrace
Returns:
HTTP response headers

setHTTPResponseHeaders

public void setHTTPResponseHeaders(String resHeaders)

getClientHost

public String getClientHost()
Returns the IP address or host name of the client machine.

Specified by:
getClientHost in interface MessageTrace
Returns:
IP address or host name of client

setClientHost

public void setClientHost(String clientHost)

getPrincipalName

public String getPrincipalName()
Returns the caller principal name.

Specified by:
getPrincipalName in interface MessageTrace
Returns:
caller principal name

setPrincipalName

public void setPrincipalName(String principal)

getResponseTime

public long getResponseTime()
Returns the response time in milli seconds for this web service operation.

Specified by:
getResponseTime in interface MessageTrace
Returns:
reponse time in milli seconds

setResponseTime

public void setResponseTime(long resTime)

getFaultCode

public String getFaultCode()
Returns the fault code.

Specified by:
getFaultCode in interface MessageTrace
Returns:
fault code for this web service or null

setFaultCode

public void setFaultCode(String faultCode)

getFaultString

public String getFaultString()
Returns the fault string.

Specified by:
getFaultString in interface MessageTrace
Returns:
fault string for this web service or null

setFaultString

public void setFaultString(String faultString)

getFaultActor

public String getFaultActor()
Returns the fault actor.

Specified by:
getFaultActor in interface MessageTrace
Returns:
fault actor for this web service

setFaultActor

public void setFaultActor(String faultActor)

getMessageID

public String getMessageID()
Returns the message id.

Specified by:
getMessageID in interface MessageTrace
Returns:
message id

getApplicationID

public String getApplicationID()
Returns the name of the application.

Specified by:
getApplicationID in interface MessageTrace
Returns:
application name

setApplicationID

public void setApplicationID(String id)

getEndpointName

public String getEndpointName()
Returns the fully qualified name of the webservice endpoint

Specified by:
getEndpointName in interface MessageTrace
Returns:
name of the webservice endpoint

setEndpointName

public void setEndpointName(String name)

getTimestamp

public long getTimestamp()
Returns the time stamp when the SOAP message was received.

Specified by:
getTimestamp in interface MessageTrace
Returns:
the time stamp when the SOAP message was received

isCallFlowEnabled

public boolean isCallFlowEnabled()
Returns if during this web service invocation call flow was enabled or not

Specified by:
isCallFlowEnabled in interface MessageTrace
Returns:
true, if during this web service invocation call flow was enabled otherwise flase.

setCallFlowEnabled

public void setCallFlowEnabled(boolean enabled)
Returns if during this web service invocation call flow was enabled or not


setTimeStamp

public void setTimeStamp(long ts)
Returns the time stamp when the SOAP message was received.

Parameters:
ts - the time stamp when the SOAP message was received

Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.