de.esprit.netsuite.netdata.agent

## Class AgentResultPrinter

- java.lang.Object
- - de.esprit.netsuite.netdata.agent.AgentResultPrinter

- All Implemented Interfaces:
    GenericEvent.Listener, NetResponseEvent.Listener, AgentMessageListener

      public class AgentResultPrinter
      extends java.lang.Object
      implements AgentMessageListener, NetResponseEvent.Listener

  This class dumps the content of a `PrintableAgent` to the given console. A `PrintableInResponse` agent is printed if it was received in a response. A `PrintableInMessage` agent is printed if it was received in a message.
  Author:
    Rainer Buesch

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `AgentResultPrinter(ClientContext ctx, TextPrintable console)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `agentMessageReceived(AsyncAgent agent)`
    `void` | `responseReceived(NetResponseEvent e)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### AgentResultPrinter

          public AgentResultPrinter(ClientContext ctx,
                            TextPrintable console)

  - ### Method Detail

    - #### agentMessageReceived

          public void agentMessageReceived(AsyncAgent agent)

      Specified by:
        `agentMessageReceived` in interface `AgentMessageListener`

    - #### responseReceived

          public void responseReceived(NetResponseEvent e)

      Specified by:
        `responseReceived` in interface `NetResponseEvent.Listener`

Copyright © 2014 EsprIT-Systems. All Rights Reserved.