Class Command<X>


  • public class Command<X>
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Command​(java.lang.String method, java.util.Map<java.lang.String,​java.lang.Object> params)  
      Command​(java.lang.String method, java.util.Map<java.lang.String,​java.lang.Object> params, java.lang.reflect.Type typeOfX)  
      Command​(java.lang.String method, java.util.Map<java.lang.String,​java.lang.Object> params, java.util.function.Function<JsonInput,​X> mapper)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Command<X> doesNotSendResponse()
      Some CDP commands do not appear to send responses, and so are really hard to deal with.
      java.lang.String getMethod()  
      java.util.Map<java.lang.String,​java.lang.Object> getParams()  
      boolean getSendsResponse()  
      • Methods inherited from class java.lang.Object

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

      • Command

        public Command​(java.lang.String method,
                       java.util.Map<java.lang.String,​java.lang.Object> params)
      • Command

        public Command​(java.lang.String method,
                       java.util.Map<java.lang.String,​java.lang.Object> params,
                       java.lang.reflect.Type typeOfX)
      • Command

        public Command​(java.lang.String method,
                       java.util.Map<java.lang.String,​java.lang.Object> params,
                       java.util.function.Function<JsonInput,​X> mapper)
    • Method Detail

      • getMethod

        public java.lang.String getMethod()
      • getParams

        public java.util.Map<java.lang.String,​java.lang.Object> getParams()
      • getSendsResponse

        public boolean getSendsResponse()
      • doesNotSendResponse

        public Command<X> doesNotSendResponse()
        Some CDP commands do not appear to send responses, and so are really hard to deal with. Work around that by flagging those commands.