Enum MsgTraceEvent
- java.lang.Object
-
- java.lang.Enum<MsgTraceEvent>
-
- org.glassfish.jersey.message.internal.MsgTraceEvent
-
- All Implemented Interfaces:
Serializable,Comparable<MsgTraceEvent>,TracingLogger.Event
public enum MsgTraceEvent extends Enum<MsgTraceEvent> implements TracingLogger.Event
Common tracing events.- Since:
- 2.3
- Author:
- Libor Kramolis
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MBR_FINDMessageBodyReaderlookup.MBR_NOT_READABLEMBR_READ_FROMMBR_SELECTEDMessageBodyReaderselected.MBR_SKIPPEDMessageBodyReaderskipped as higher-priority reader has been selected already.MBW_FINDMessageBodyWriterlookup.MBW_NOT_WRITEABLEMBW_SELECTEDMBW_SKIPPEDMessageBodyWriterskipped as higher-priority writer has been selected already.MBW_WRITE_TORI_AFTERReaderInterceptorinvocation after a call tocontext.proceed().RI_BEFOREReaderInterceptorinvocation before a call tocontext.proceed().RI_SUMMARYReaderInterceptorinvocation summary.WI_AFTERWriterInterceptorinvocation after a call tocontext.proceed().WI_BEFOREWriterInterceptorinvocation before a call tocontext.proceed().WI_SUMMARYReaderInterceptorinvocation summary.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringcategory()Category of event, more events share same category.TracingLogger.Levellevel()Level of event.StringmessageFormat()Message format.static MsgTraceEventvalueOf(String name)Returns the enum constant of this type with the specified name.static MsgTraceEvent[]values()Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface org.glassfish.jersey.message.internal.TracingLogger.Event
name
-
-
-
-
Enum Constant Detail
-
RI_BEFORE
public static final MsgTraceEvent RI_BEFORE
ReaderInterceptorinvocation before a call tocontext.proceed().
-
RI_AFTER
public static final MsgTraceEvent RI_AFTER
ReaderInterceptorinvocation after a call tocontext.proceed().
-
RI_SUMMARY
public static final MsgTraceEvent RI_SUMMARY
ReaderInterceptorinvocation summary.
-
MBR_FIND
public static final MsgTraceEvent MBR_FIND
MessageBodyReaderlookup.
-
MBR_NOT_READABLE
public static final MsgTraceEvent MBR_NOT_READABLE
-
MBR_SELECTED
public static final MsgTraceEvent MBR_SELECTED
MessageBodyReaderselected.
-
MBR_SKIPPED
public static final MsgTraceEvent MBR_SKIPPED
MessageBodyReaderskipped as higher-priority reader has been selected already.
-
MBR_READ_FROM
public static final MsgTraceEvent MBR_READ_FROM
-
MBW_FIND
public static final MsgTraceEvent MBW_FIND
MessageBodyWriterlookup.
-
MBW_NOT_WRITEABLE
public static final MsgTraceEvent MBW_NOT_WRITEABLE
-
MBW_SELECTED
public static final MsgTraceEvent MBW_SELECTED
-
MBW_SKIPPED
public static final MsgTraceEvent MBW_SKIPPED
MessageBodyWriterskipped as higher-priority writer has been selected already.
-
MBW_WRITE_TO
public static final MsgTraceEvent MBW_WRITE_TO
-
WI_BEFORE
public static final MsgTraceEvent WI_BEFORE
WriterInterceptorinvocation before a call tocontext.proceed().
-
WI_AFTER
public static final MsgTraceEvent WI_AFTER
WriterInterceptorinvocation after a call tocontext.proceed().
-
WI_SUMMARY
public static final MsgTraceEvent WI_SUMMARY
ReaderInterceptorinvocation summary.
-
-
Method Detail
-
values
public static MsgTraceEvent[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MsgTraceEvent c : MsgTraceEvent.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MsgTraceEvent valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
category
public String category()
Description copied from interface:TracingLogger.EventCategory of event, more events share same category. Is used to format response HTTP header.- Specified by:
categoryin interfaceTracingLogger.Event- Returns:
- event category.
-
level
public TracingLogger.Level level()
Description copied from interface:TracingLogger.EventLevel of event. Is used to check if the event is logged according to application/request settings.- Specified by:
levelin interfaceTracingLogger.Event- Returns:
- event trace level.
-
messageFormat
public String messageFormat()
Description copied from interface:TracingLogger.EventMessage format. UseString.format(String, Object...)format. Can be null. In that case message arguments are separated by space.- Specified by:
messageFormatin interfaceTracingLogger.Event- Returns:
- message format
-
-