com.android.ddmlib.jdwp
Class JdwpAgent
java.lang.Object
com.android.ddmlib.jdwp.JdwpAgent
- Direct Known Subclasses:
- Client, Debugger
public abstract class JdwpAgent
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JdwpAgent
public JdwpAgent(@NonNull
JdwpProtocol protocol)
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()