FileDocCategorySizeDatePackage
MessageTraceImpl.javaAPI DocGlassfish v2 API10866Fri May 04 22:30:50 BST 2007com.sun.appserv.management.ext.wsmgmt

MessageTraceImpl

public final class MessageTraceImpl extends com.sun.appserv.management.base.MapCapableBase implements MessageTrace
Provides details of a SOAP invocation.
since
AppServer 9.0

Fields Summary
static final String
REQUEST_SIZE
Request Size
static final String
RESPONSE_SIZE
Response Size
static final String
RESPONSE_CONTENT
Response Content
static final String
REQUEST_CONTENT
Request Content
static final String
TRANSPORT_TYPE
Transport Type
static final String
HTTP_REQUEST_HEADERS
HTTP Request Headers
static final String
HTTP_RESPONSE_HEADERS
HTTP Response Headers
static final String
CLIENT_HOST
Client Host
static final String
PRINCIPAL_NAME
Principal Name
static final String
RESPONSE_TIME
Response Time
static final String
FAULT_CODE
Fault Code
static final String
FAULT_STRING
Fault String
static final String
FAULT_ACTOR
Fault Actor
static final String
MESSAGE_ID
Message ID
static final String
APPLICATION_ID
Application ID
static final String
ENDPOINT_NAME
Endpoint Name
static final String
TIME_STAMP
Time Stamp
static final String
CALL_FLOW_ENABLED
CallFlow Enabled
Constructors Summary
public MessageTraceImpl(Map m, String className)
Constructor

        super(m, className);
    
public MessageTraceImpl(String id, String className)
Constructor

param
id Message ID

        super(null, className);
        putField(MESSAGE_ID,id );
    
public MessageTraceImpl(String id)
Constructor

param
id Message ID

        super( null, MessageTrace.CLASS_NAME);
        putField(MESSAGE_ID,id );
    
Methods Summary
public java.lang.StringgetApplicationID()
Returns the name of the application.

return
application name

        return getString(APPLICATION_ID);
    
public java.lang.StringgetClientHost()
Returns the IP address or host name of the client machine.

return
IP address or host name of client

         return getString(CLIENT_HOST);
    
public java.lang.StringgetEndpointName()
Returns the fully qualified name of the webservice endpoint

        return getString(ENDPOINT_NAME);
    
public java.lang.StringgetFaultActor()
Returns the fault actor.

return
fault actor for this web service

        return getString(FAULT_ACTOR);
    
public java.lang.StringgetFaultCode()
Returns the fault code.

return
fault code for this web service or null

        return getString(FAULT_CODE);
    
public java.lang.StringgetFaultString()
Returns the fault string.

return
fault string for this web service or null

        return getString(FAULT_STRING);
    
public java.lang.StringgetHTTPRequestHeaders()
Returns the comma separated list of HTTP request header names and its values. Null if transport type is not HTTP.

return
HTTP request headers

         return getString(HTTP_REQUEST_HEADERS);
    
public java.lang.StringgetHTTPResponseHeaders()
Returns the comma separated list of HTTP response header names and its values. Null if transport type is not HTTP.

return
HTTP response headers

         return getString(HTTP_RESPONSE_HEADERS);
    
public java.lang.StringgetMessageID()
Returns the message id.

return
message id

        return getString(MESSAGE_ID);
    
public java.lang.StringgetPrincipalName()
Returns the caller principal name.

return
caller principal name

         return getString(PRINCIPAL_NAME);
    
public java.lang.StringgetRequestContent()
Returns the SOAP request content. This contains SOAP body and headers.

return
SOAP request content

         return getString(REQUEST_CONTENT);
    
public intgetRequestSize()
Returns the total size in bytes of the request content. This is SOAP content size including body and headers.

return
SOAP request content size in bytes

         return getInteger(REQUEST_SIZE).intValue();
    
public java.lang.StringgetResponseContent()
Returns the SOAP response content. This contains SOAP body and headers.

return
SOAP response content

         return getString(RESPONSE_CONTENT);
    
public intgetResponseSize()
Returns the total size in bytes of the response content. This is SOAP content size including body and headers.

return
SOAP response content size in bytes

         return getInteger(RESPONSE_SIZE).intValue();
    
public longgetResponseTime()
Returns the response time in milli seconds for this web service operation.

return
reponse time in milli seconds

         return new Long(getString(RESPONSE_TIME)).longValue();
    
public longgetTimestamp()
Returns the time stamp when the SOAP message was received.

return
the time stamp when the SOAP message was received

         return new Long(getString(TIME_STAMP)).longValue();
    
public java.lang.StringgetTransportType()
Returns the transport type. Known types are "HTTP", "JMS" and "SNMP".

return
transport type

         return getString(TRANSPORT_TYPE);
    
public booleanisCallFlowEnabled()
Returns if during this web service invocation call flow was enabled or not

return
true, if during this web service invocation call flow was enabled otherwise flase.

        return new Boolean(getString(CALL_FLOW_ENABLED)).booleanValue();
    
public voidsetApplicationID(java.lang.String id)

        putField(APPLICATION_ID,id );
    
public voidsetCallFlowEnabled(boolean enabled)
Returns if during this web service invocation call flow was enabled or not

        putField(CALL_FLOW_ENABLED, new Boolean(enabled).toString());
    
public voidsetClientHost(java.lang.String clientHost)

         putField(CLIENT_HOST,clientHost );
    
public voidsetEndpointName(java.lang.String name)

         putField(ENDPOINT_NAME, name);
    
public voidsetFaultActor(java.lang.String faultActor)

        putField(FAULT_ACTOR,faultActor );
    
public voidsetFaultCode(java.lang.String faultCode)

        putField(FAULT_CODE, faultCode);
    
public voidsetFaultString(java.lang.String faultString)

        putField(FAULT_STRING, faultString);
    
public voidsetHTTPRequestHeaders(java.lang.String reqHeaders)

         putField(HTTP_REQUEST_HEADERS, reqHeaders);
    
public voidsetHTTPResponseHeaders(java.lang.String resHeaders)

         putField(HTTP_RESPONSE_HEADERS, resHeaders);
    
public voidsetPrincipalName(java.lang.String principal)

        putField(PRINCIPAL_NAME, principal);
    
public voidsetRequestContent(java.lang.String reqContent)

        putField(REQUEST_CONTENT, reqContent);
    
public voidsetRequestSize(int reqSize)

        putField(REQUEST_SIZE, new Integer(reqSize));
    
public voidsetResponseContent(java.lang.String resContent)

        putField(RESPONSE_CONTENT, resContent);
    
public voidsetResponseSize(int resSize)

        putField(RESPONSE_SIZE, new Integer(resSize));
    
public voidsetResponseTime(long resTime)

        putField(RESPONSE_TIME, new Long(resTime).toString());
    
public voidsetTimeStamp(long ts)
Returns the time stamp when the SOAP message was received.

param
ts the time stamp when the SOAP message was received

         putField(TIME_STAMP, new Long(ts).toString());
    
public voidsetTransportType(java.lang.String transport)

        putField(TRANSPORT_TYPE, transport);
    
protected booleanvalidate()

        return (true);