com.smaxe.me.uv.client
Class NetConnection.ListenerAdapter

java.lang.Object
  extended by com.smaxe.me.uv.client.NetConnection.ListenerAdapter
All Implemented Interfaces:
NetConnection.IListener
Enclosing class:
NetConnection

public static class NetConnection.ListenerAdapter
extends java.lang.Object
implements NetConnection.IListener

ListenerAdapter - NetConnection.IListener adapter.


Constructor Summary
NetConnection.ListenerAdapter()
          Constructor.
 
Method Summary
 void onAsyncError(NetConnection source, java.lang.String message, java.lang.Exception e)
          Notifies about an exception that is thrown asynchronously (from native asynchronous code).
 void onIOError(NetConnection source, java.lang.String message)
          Notifies about an input/output error occured that causes a network operation to fail.
 void onNetStatus(NetConnection source, java.util.Hashtable info)
          Notifies about the status info change.
 void onSecurityError(NetConnection source, java.lang.String message)
          Notifies about the attempt to connect to a server outside the caller's security sandbox.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetConnection.ListenerAdapter

public NetConnection.ListenerAdapter()
Constructor.

Method Detail

onAsyncError

public void onAsyncError(NetConnection source,
                         java.lang.String message,
                         java.lang.Exception e)
Description copied from interface: NetConnection.IListener
Notifies about an exception that is thrown asynchronously (from native asynchronous code).

Note: This method is invoked in the Dispatch-Thread. Process it quickly.

Specified by:
onAsyncError in interface NetConnection.IListener
Parameters:
source - async message source
message - async message
e - thrown exception

onIOError

public void onIOError(NetConnection source,
                      java.lang.String message)
Description copied from interface: NetConnection.IListener
Notifies about an input/output error occured that causes a network operation to fail.

Note: This method is invoked in the Dispatch-Thread. Process it quickly.

Specified by:
onIOError in interface NetConnection.IListener
Parameters:
source - I/O error source
message - I/O error message

onNetStatus

public void onNetStatus(NetConnection source,
                        java.util.Hashtable info)
Description copied from interface: NetConnection.IListener
Notifies about the status info change.

Note: This method is invoked in the Dispatch-Thread. Process it quickly.

Specified by:
onNetStatus in interface NetConnection.IListener
Parameters:
source - net status source
info - status info

onSecurityError

public void onSecurityError(NetConnection source,
                            java.lang.String message)
Description copied from interface: NetConnection.IListener
Notifies about the attempt to connect to a server outside the caller's security sandbox.

Note: This method is invoked in the Dispatch-Thread. Process it quickly.

Specified by:
onSecurityError in interface NetConnection.IListener
Parameters:
source - security error source
message - security error message