Class AbstractReply

java.lang.Object
me.cadox8.xenapi.reply.AbstractReply
Direct Known Subclasses:
ActionsReply, AddonReply, AddonsReply, AlertsReply, AuthenticateReply, AvatarReply, CreateAlertReply, CreatePostReply, CreateThreadReply, EditUserReply, GroupReply, LoginReply, LogoutReply, NodeReply, NodesReply, PostReply, PostsReply, RegisterReply

public abstract class AbstractReply
extends java.lang.Object
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected int error  
    protected java.lang.String message  
  • Constructor Summary

    Constructors 
    Constructor Description
    AbstractReply()  
  • Method Summary

    Modifier and Type Method Description
    void checkError()
    Check if you miss any args in the request
    abstract RequestType getRequestType()
    Gets the type of requests to getResponse the Reply Class

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • error

      protected int error
    • message

      protected java.lang.String message
  • Constructor Details

  • Method Details

    • getRequestType

      public abstract RequestType getRequestType()
      Gets the type of requests to getResponse the Reply Class
      Returns:
      Returns the type of Request
      See Also:
      RequestType, RequestType#getReplyClass()
    • checkError

      public void checkError() throws ArgsErrorException
      Check if you miss any args in the request
      Throws:
      ArgsErrorException(Integer, String, RequestType) - Error thrown when you choose wrong arguments
      ArgsErrorException