blob: 062cb271621eb6898d30b53f40281e6b8af1e454 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
package org.onap.aai.interceptors;
import java.util.UUID;
import org.onap.aai.util.FormatDate;
public abstract class AAIContainerFilter {
protected String genDate() {
FormatDate fd = new FormatDate("YYMMdd-HH:mm:ss:SSS");
return fd.getDateTime();
}
protected boolean isValidUUID(String transId) {
try {
UUID.fromString(transId);
} catch (IllegalArgumentException e) {
return false;
}
return true;
}
}
|