/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.gateway.common.audit.AuditRecord
 *  com.l7tech.gateway.common.audit.MessageSummaryAuditRecord
 */
package com.l7tech.server.policy.variable;

import com.l7tech.gateway.common.audit.AuditRecord;
import com.l7tech.gateway.common.audit.MessageSummaryAuditRecord;
import com.l7tech.server.policy.variable.AuditRecordSelector;
import com.l7tech.server.policy.variable.ExpandVariables;
import com.l7tech.server.policy.variable.aq;

class p
implements aq<AuditRecord> {
    p() {
    }

    @Override
    public ExpandVariables.Selector.Selection getFieldValue(AuditRecord auditRecord, String string) {
        if (auditRecord instanceof MessageSummaryAuditRecord) {
            MessageSummaryAuditRecord messageSummaryAuditRecord = (MessageSummaryAuditRecord)auditRecord;
            return new ExpandVariables.Selector.Selection(messageSummaryAuditRecord.getRequestXml() == null ? new byte[]{} : AuditRecordSelector.a(messageSummaryAuditRecord.getRequestXml()));
        }
        return new ExpandVariables.Selector.Selection(new byte[0]);
    }
}

