}
//
/**将请求参数转换为对象。*/
public Object[] toParameters(SerializeFactory serializeFactory) throws Throwable {
String codeName = this.getSerializeType();
Decoder decoder = serializeFactory.getDecoder(codeName);
//
String[] paramTypes = this.getParameterTypes();
Object[] paramObject = new Object[paramTypes.length];
//
if (decoder == null && (paramTypes.length > 0)) {
throw new RsfException(ProtocolStatus.SerializeError,//
"Undefined ‘" + codeName + "’ serialize decoder ");
}
//
for (int i = 0; i < paramTypes.length; i++) {
byte[] paramData = this.paramDatas.get(i);
paramObject[i] = decoder.decode(paramData);
}
return paramObject;
}