JdwpAgent

public abstract class JdwpAgent
extends Object

java.lang.Object
   ↳ com.android.tradefed.device.server.jdwp.JdwpAgent


Summary

Public constructors

JdwpAgent(JdwpProtocol protocol)

Public methods

void addJdwpInterceptor(JdwpInterceptor interceptor)
void clear()
JdwpProtocol getJdwpProtocol()
void incoming(JdwpPacket packet, JdwpAgent target)
void removeJdwpInterceptor(JdwpInterceptor interceptor)
void send(JdwpPacket packet, JdwpInterceptor interceptor)

Protected methods

void addReplyInterceptor(int id, JdwpInterceptor interceptor)

Adds an interceptor for a specific reply id.

void removeReplyInterceptor(int id)

Removes, if present, the interceptor to handle a reply with the given id.

abstract void send(JdwpPacket packet)

Public constructors

JdwpAgent

public JdwpAgent (JdwpProtocol protocol)

Parameters
protocol JdwpProtocol

Public methods

addJdwpInterceptor

public void addJdwpInterceptor (JdwpInterceptor interceptor)

Parameters
interceptor JdwpInterceptor

clear

public void clear ()

getJdwpProtocol

public JdwpProtocol getJdwpProtocol ()

Returns
JdwpProtocol

incoming

public void incoming (JdwpPacket packet, 
                JdwpAgent target)

Parameters
packet JdwpPacket

target JdwpAgent

removeJdwpInterceptor

public void removeJdwpInterceptor (JdwpInterceptor interceptor)

Parameters
interceptor JdwpInterceptor

send

public void send (JdwpPacket packet, 
                JdwpInterceptor interceptor)

Parameters
packet JdwpPacket

interceptor JdwpInterceptor

Protected methods

addReplyInterceptor

protected void addReplyInterceptor (int id, 
                JdwpInterceptor interceptor)

Adds an interceptor for a specific reply id. Once this interceptor handles the response, it will be removed.

Parameters
id int

interceptor JdwpInterceptor

removeReplyInterceptor

protected void removeReplyInterceptor (int id)

Removes, if present, the interceptor to handle a reply with the given id.

Parameters
id int

send

protected abstract void send (JdwpPacket packet)

Parameters
packet JdwpPacket