001/* 002 * The contents of this file are subject to the terms of the Common Development and 003 * Distribution License (the License). You may not use this file except in compliance with the 004 * License. 005 * 006 * You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the 007 * specific language governing permission and limitations under the License. 008 * 009 * When distributing Covered Software, include this CDDL Header Notice in each file and include 010 * the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL 011 * Header, with the fields enclosed by brackets [] replaced by your own identifying 012 * information: "Portions copyright [year] [name of copyright owner]". 013 * 014 * Copyright 2014-2015 ForgeRock AS. 015 */ 016 017package org.forgerock.openig.audit; 018 019import org.forgerock.http.Filter; 020import org.forgerock.http.Handler; 021 022/** 023 * Static list of standard tags used in audit decorators. 024 * String values not included in this set are considered 'user-defined' tags. 025 * <p> 026 * Notice that, when audit decorator developers are adding new tags, they have to keep this set of values in sync. 027 */ 028@Deprecated 029public enum Tag { 030 031 /** 032 * The event happens before the delegate {@link Filter}/{@link Handler} is called. 033 */ 034 request, 035 036 /** 037 * The event happens after the delegate {@link Filter}/{@link Handler} was called. 038 */ 039 response, 040 041 /** 042 * The event happens when the request has been completely handled <b>successfully</b> 043 * by the processing unit (always complements a {@link #response} tag). 044 */ 045 completed, 046 047 /** 048 * The event happens when the request has been handled with <b>errors</b> 049 * by the processing unit (always complements a {@link #response} tag). Notice that this does not indicate that 050 * the source heap object is the origin of the failure (it may or may not have thrown the exception itself). 051 */ 052 exception 053}