Class ThrowableAnnotationInfo

java.lang.Object
org.restlet.engine.resource.AnnotationInfo
org.restlet.engine.resource.ThrowableAnnotationInfo

public class ThrowableAnnotationInfo extends AnnotationInfo
Descriptor for status annotations.
Author:
Jerome Louvel
  • Constructor Details

    • ThrowableAnnotationInfo

      public ThrowableAnnotationInfo(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 the Throwable should be serialized.
  • Method Details

    • equals

      public boolean equals(Object other)
      Indicates if the current object is equal to the given object.
      Overrides:
      equals in class AnnotationInfo
      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:
      hashCode in class AnnotationInfo
    • isSerializable

      public boolean isSerializable()
      Returns the serialize indicator parsed from the annotation value.
      Returns:
      the serialize indicator parsed from the annotation value.
    • toString

      public String toString()
      Overrides:
      toString in class AnnotationInfo