Package org.restlet.engine.resource
Class ThrowableAnnotationInfo
java.lang.Object
org.restlet.engine.resource.AnnotationInfo
org.restlet.engine.resource.ThrowableAnnotationInfo
Descriptor for status annotations.
- Author:
- Jerome Louvel
-
Field Summary
Fields inherited from class org.restlet.engine.resource.AnnotationInfo
annotationValue, javaClass, javaMethod, javaMethodImpl -
Constructor Summary
ConstructorsConstructorDescriptionThrowableAnnotationInfo(Class<?> throwableClass, int annotationValue, boolean serializable) Constructor. -
Method Summary
Methods inherited from class org.restlet.engine.resource.AnnotationInfo
getAnnotationValue, getJavaActualType, getJavaActualType, getJavaActualType, getJavaClass, getJavaMethod, getTypeClass
-
Constructor Details
-
ThrowableAnnotationInfo
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 Details
-
equals
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
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
- Overrides:
toStringin classAnnotationInfo
-