Package org.restlet.engine.resource
Class ThrowableAnnotationInfo
- java.lang.Object
-
- org.restlet.engine.resource.AnnotationInfo
-
- org.restlet.engine.resource.ThrowableAnnotationInfo
-
public class ThrowableAnnotationInfo extends AnnotationInfo
Descriptor for status annotations.
-
-
Field Summary
Fields Modifier and Type Field Description private booleanserializableIndicates if theStatus.getThrowable()should be serialized.private StatusstatusThe status parsed from the annotation value.-
Fields inherited from class org.restlet.engine.resource.AnnotationInfo
annotationValue, javaClass, javaMethod, javaMethodImpl
-
-
Constructor Summary
Constructors Constructor Description ThrowableAnnotationInfo(java.lang.Class<?> throwableClass, int annotationValue, boolean serializable)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)Indicates if the current object is equal to the given object.StatusgetStatus()Returns the status parsed from the annotation value.inthashCode()booleanisSerializable()Returns the serialize indicator parsed from the annotation value.java.lang.StringtoString()-
Methods inherited from class org.restlet.engine.resource.AnnotationInfo
getAnnotationValue, getJavaActualType, getJavaActualType, getJavaActualType, getJavaClass, getJavaMethod, getTypeClass
-
-
-
-
Field Detail
-
serializable
private final boolean serializable
Indicates if theStatus.getThrowable()should be serialized.
-
status
private final Status status
The status parsed from the annotation value.
-
-
Constructor Detail
-
ThrowableAnnotationInfo
public ThrowableAnnotationInfo(java.lang.Class<?> throwableClass, int annotationValue, boolean serializable)Constructor.- Parameters:
throwableClass- The class or interface that hosts the annotated Java method.annotationValue- The annotation value containing the HTTP error code.serializable- Indicates if theThrowableshould be serialized.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
Indicates if the current object is equal to the given object.- Overrides:
equalsin classAnnotationInfo- Parameters:
other- The other object.- Returns:
- True if the current object includes the other.
-
getStatus
public Status getStatus()
Returns the status parsed from the annotation value.- Returns:
- The status parsed from the annotation value.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAnnotationInfo
-
isSerializable
public boolean isSerializable()
Returns the serialize indicator parsed from the annotation value.- Returns:
- the serialize indicator parsed from the annotation value.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classAnnotationInfo
-
-