package com.l7tech.server;

import com.l7tech.common.mime.ContentTypeHeader;
import com.l7tech.gateway.common.audit.SystemMessages;
import com.l7tech.util.ExceptionUtils;
import com.l7tech.util.Functions.Unary;
import java.io.IOException;

class az implements Unary<ContentTypeHeader, String> {
   final SimplePropertyChangeHandler this$0;

   az(SimplePropertyChangeHandler var1) {
      this.this$0 = var1;
   }

   public ContentTypeHeader call(String var1) {
      try {
         return ContentTypeHeader.parseValue(var1);
      } catch (IOException var3) {
         this.this$0
            .g
            .logAndAudit(SystemMessages.INVALID_CONTENT_TYPE, new String[]{var1, ExceptionUtils.getMessage(var3)}, ExceptionUtils.getDebugException(var3));
         return null;
      }
   }
}
