1 23 package com.sun.appserv.management.client.handler; 24 25 import java.lang.reflect.Method ; 26 27 import java.io.Serializable ; 28 import java.io.IOException ; 29 30 import java.util.Map ; 31 32 import javax.management.ObjectName ; 33 34 import com.sun.appserv.management.client.ConnectionSource; 35 36 import com.sun.appserv.management.util.misc.TypeCast; 37 38 import com.sun.appserv.management.ext.wsmgmt.WebServiceSupport; 39 import com.sun.appserv.management.ext.wsmgmt.WebServiceEndpointInfo; 40 41 42 45 final class WebServiceMgrConverterHandler extends ConverterHandler 46 { 47 public 48 WebServiceMgrConverterHandler( 49 final ConnectionSource connectionSource, 50 final ObjectName proxiedMBeanObjectName ) 51 throws IOException 52 { 53 super( connectionSource, proxiedMBeanObjectName ); 54 } 55 56 59 protected Object 60 convertResult( 61 final Method method, 62 final Object resultIn ) 63 { 64 Object resultOut = resultIn; 65 66 if ( method.getName().equals( "getWebServiceEndpointInfo" ) ) 67 { 68 final Map <String ,Serializable > m = TypeCast.asMap( resultIn ); 69 70 final WebServiceEndpointInfo info = 71 WebServiceSupport.mapToWebServiceEndpointInfo( m ); 72 resultOut = info; 73 } 74 75 return resultOut; 76 } 77 } 78 79 80 81 82 83 | Popular Tags |