25 lines
753 B
Java
25 lines
753 B
Java
package com.kbstar.eai.flowcontrol.action;
|
|
|
|
import com.eactive.eai.flowcontrol.action.RouteActionException;
|
|
import com.eactive.eai.flowcontrol.action.RouteActionSupport;
|
|
import com.eactive.eai.transformer.function.util.CodeConversion;
|
|
|
|
public class RCMSDSRouteAction extends RouteActionSupport {
|
|
|
|
public String[] getRouteKeys(byte[] message) throws Exception {
|
|
|
|
String[] keys = new String[1];
|
|
int keyIndex = 0;
|
|
try {
|
|
keys[0] = strncpy(CodeConversion.seToAsc(message), 9, 4);
|
|
} catch(Exception e) {
|
|
throw new RouteActionException(this.getClass().getName() +" Error Extract Key("+keyIndex+"): " +e.getMessage());
|
|
}
|
|
return keys;
|
|
}
|
|
|
|
public String getDescription() {
|
|
return "키추출방식 : 전문 [9,4]";
|
|
}
|
|
}
|