@Override public ConfigurationInformation handleResponse ( final GetConfigurationResponse result ) { return result.getConfiguration (); } };
@Override public IoBuffer encodeMessage ( final BinaryContext context, final Object objectMessage ) throws Exception { final org.eclipse.scada.ca.data.message.GetConfigurationResponse value = (org.eclipse.scada.ca.data.message.GetConfigurationResponse)objectMessage; final IoBuffer data = IoBuffer.allocate ( 64 ); data.setAutoExpand ( true ); // encode message base data.putInt ( MESSAGE_CODE ); // number of fields data.put ( (byte)2 ); // encode attributes org.eclipse.scada.core.protocol.ngp.codec.Structures.encodeResponse ( context, data, (byte)1, value.getResponse () ); org.eclipse.scada.ca.protocol.ngp.codec.Structures.encodeConfigurationInformation ( context, data, (byte)2, value.getConfiguration () ); data.flip (); return data; }
@Override protected ResponseMessage handle ( final Response response, final Configuration result ) { return new GetConfigurationResponse ( new Response ( message.getRequest () ), convertConfiguration ( result ) ); } };
@Override public IoBuffer encodeMessage ( final BinaryContext context, final Object objectMessage ) throws Exception { final org.eclipse.scada.ca.data.message.GetConfigurationResponse value = (org.eclipse.scada.ca.data.message.GetConfigurationResponse)objectMessage; final IoBuffer data = IoBuffer.allocate ( 64 ); data.setAutoExpand ( true ); // encode message base data.putInt ( MESSAGE_CODE ); // number of fields data.put ( (byte)2 ); // encode attributes org.eclipse.scada.core.protocol.ngp.codec.Structures.encodeResponse ( context, data, (byte)1, value.getResponse () ); org.eclipse.scada.ca.protocol.ngp.codec.Structures.encodeConfigurationInformation ( context, data, (byte)2, value.getConfiguration () ); data.flip (); return data; }
@Override protected ResponseMessage handle ( final Response response, final Configuration result ) { return new GetConfigurationResponse ( new Response ( message.getRequest () ), convertConfiguration ( result ) ); } };
return new org.eclipse.scada.ca.data.message.GetConfigurationResponse ( response, configuration );
@Override public ConfigurationInformation handleResponse ( final GetConfigurationResponse result ) { return result.getConfiguration (); } };
return new org.eclipse.scada.ca.data.message.GetConfigurationResponse ( response, configuration );