/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.common.mime.ContentTypeHeader
 *  com.l7tech.gateway.common.audit.AuditDetailMessage
 *  com.l7tech.gateway.common.audit.SystemMessages
 *  com.l7tech.util.ExceptionUtils
 *  com.l7tech.util.Functions$Unary
 */
package com.l7tech.server;

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

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

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

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

