de.esprit.netsuite.client.netch.io

## Class IOClientMessageConnection

- java.lang.Object
- - de.esprit.common.util.DumpableObject
  - - de.esprit.common.log.SimpleLogSupportAdapter
    - - de.esprit.netsuite.client.netch.io.IOClientMessageConnection

- All Implemented Interfaces:
    SimpleLogSupport, Dumpable, ClientMessageConnection

      public class IOClientMessageConnection
      extends SimpleLogSupportAdapter
      implements ClientMessageConnection

  This is the Socket-IO specific implementation of the `ClientMessageConnection`. Note that a message connection can only be established with a valid `SessionId`.
  Author:
    Rainer Buesch

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `IOClientMessageConnection(LogChannel logCh, ServerHost host, StreamWrapper streamWrapper)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `connect(SessionId sessionId)`
    `boolean` | `isConnected()`
    `java.lang.Object` | `readNextMessage()` Reads the next message for the network.
    `void` | `shutdown()`

    - ### Methods inherited from class de.esprit.common.log.SimpleLogSupportAdapter

      `getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannel`

    - ### Methods inherited from class de.esprit.common.util.DumpableObject

      `configureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toDumpString, toString, toString`

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

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

- - ### Constructor Detail

    - #### IOClientMessageConnection

          public IOClientMessageConnection(LogChannel logCh,
                                   ServerHost host,
                                   StreamWrapper streamWrapper)

  - ### Method Detail

    - #### connect

          public void connect(SessionId sessionId)
                       throws java.lang.Exception

      Specified by:
        `connect` in interface `ClientMessageConnection`
      Throws:
        `java.lang.Exception`

    - #### readNextMessage

          public java.lang.Object readNextMessage()
                                           throws java.lang.Exception

      Description copied from interface: `ClientMessageConnection`
      Reads the next message for the network. Note that we may receive `NetResponse` or `NetMessage` objects here.
      Specified by:
        `readNextMessage` in interface `ClientMessageConnection`
      Throws:
        `java.lang.Exception`

    - #### isConnected

          public boolean isConnected()

      Specified by:
        `isConnected` in interface `ClientMessageConnection`

    - #### shutdown

          public void shutdown()

      Specified by:
        `shutdown` in interface `ClientMessageConnection`

Copyright © 2014 EsprIT-Systems. All Rights Reserved.