com.android.ddmlib.jdwp
Class JdwpAgent

java.lang.Object
  extended by com.android.ddmlib.jdwp.JdwpAgent
Direct Known Subclasses:
Client, Debugger

public abstract class JdwpAgent
extends java.lang.Object


Constructor Summary
JdwpAgent(JdwpProtocol protocol)
           
 
Method Summary
 void addJdwpInterceptor(JdwpInterceptor interceptor)
           
protected  void addReplyInterceptor(int id, JdwpInterceptor interceptor)
          Adds an interceptor for a specific reply id.
 void clear()
           
 JdwpProtocol getJdwpProtocol()
           
 void incoming(JdwpPacket packet, JdwpAgent target)
           
protected  void removeReplyInterceptor(int id)
          Removes, if present, the interceptor to handle a reply with the given id.
protected abstract  void send(JdwpPacket packet)
           
 void send(JdwpPacket packet, JdwpInterceptor interceptor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdwpAgent

public JdwpAgent(@NonNull
                 JdwpProtocol protocol)
Method Detail

addReplyInterceptor

protected void addReplyInterceptor(int id,
                                   @NonNull
                                   JdwpInterceptor interceptor)
Adds an interceptor for a specific reply id. Once this interceptor handles the response, it will be removed.


removeReplyInterceptor

protected void removeReplyInterceptor(int id)
Removes, if present, the interceptor to handle a reply with the given id.


clear

public void clear()

addJdwpInterceptor

public void addJdwpInterceptor(@NonNull
                               JdwpInterceptor interceptor)

incoming

public void incoming(@NonNull
                     JdwpPacket packet,
                     @Nullable
                     JdwpAgent target)
              throws java.io.IOException
Throws:
java.io.IOException

send

public void send(@NonNull
                 JdwpPacket packet,
                 @NonNull
                 JdwpInterceptor interceptor)
          throws java.io.IOException
Throws:
java.io.IOException

send

protected abstract void send(@NonNull
                             JdwpPacket packet)
                      throws java.io.IOException
Throws:
java.io.IOException

getJdwpProtocol

@NonNull
public JdwpProtocol getJdwpProtocol()