Class ObjectResponseAnnotation


  • public class ObjectResponseAnnotation
    extends java.lang.Object
    Annotation providing details of ObjectResponse.
    Author:
    Daniel Sagenschneider
    • Constructor Summary

      Constructors 
      Constructor Description
      ObjectResponseAnnotation​(int statusCode, java.lang.reflect.Type responseType)
      Instantiate.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.reflect.Type getResponseType()
      Obtains the response type.
      int getStatusCode()
      Obtains the status code.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ObjectResponseAnnotation

        public ObjectResponseAnnotation​(int statusCode,
                                        java.lang.reflect.Type responseType)
        Instantiate.
        Parameters:
        statusCode - Status code for HttpResponse.
        responseType - Response type.
    • Method Detail

      • getStatusCode

        public int getStatusCode()
        Obtains the status code.
        Returns:
        Status code.
      • getResponseType

        public java.lang.reflect.Type getResponseType()
        Obtains the response type.
        Returns:
        Response type.