Skip to content

Commit

Permalink
Updated content types, validation & logging message in GENERIC
Browse files Browse the repository at this point in the history
  • Loading branch information
VolkerVoss committed Aug 13, 2024
1 parent e6a088c commit 45d4ccb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Binary file modified SEDAPExpress/dist/SEDAPExpress-v1.0.0.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,19 @@ public GENERIC(Iterator<String> message) {
"Optional field \"contentType\" is empty!");
} else {
this.contentType = value;
if (!("SEDAP".equals(this.contentType) ||
"ASCII".equals(this.contentType) ||
"NMEA".equals(this.contentType) ||
"XML".equals(this.contentType) ||
"JSON".equals(this.contentType) ||
"BINARY".equals(this.contentType))) {
SEDAPExpressMessage.logger
.logp(
Level.INFO,
"GENERIC",
"GENERIC(Iterator<String> message)",
"Optional field \"contentType\" has an invalid value > " + this.contentType);
}
}
} else {
SEDAPExpressMessage.logger
Expand Down

0 comments on commit 45d4ccb

Please sign in to comment.