FileDocCategorySizeDatePackage
WebServiceEndpointConverterHandler.javaAPI DocGlassfish v2 API3587Fri May 04 22:30:32 BST 2007com.sun.appserv.management.client.handler

WebServiceEndpointConverterHandler

public final class WebServiceEndpointConverterHandler extends ConverterHandler
Specialized handler for {@link com.sun.appserv.management.ext.logging.Logging}.

Fields Summary
Constructors Summary
public WebServiceEndpointConverterHandler(com.sun.appserv.management.client.ConnectionSource connectionSource, ObjectName proxiedMBeanObjectName)

		super( connectionSource, proxiedMBeanObjectName );
	
Methods Summary
protected java.lang.ObjectconvertResult(java.lang.reflect.Method method, java.lang.Object resultIn)
Optionally, transform any result.

        Object  resultOut   = resultIn;
        
        if ( method.getName().equals( "getMessagesInHistory" ) )
        {
            final Map<String,Serializable>[]  maps  = TypeCast.asArray( resultIn );
            
            final MessageTrace[]    traces  = new MessageTrace[ maps.length ];
            for( int i = 0; i < traces.length; ++i )
            {
                traces[ i ] = WebServiceSupport.mapToMessageTrace( maps[i] );
            }
            
            resultOut   = traces;
        }
        
        return resultOut;