net.user1.union.core.connection
Interface Connection


public interface Connection

Represents a Connection to Union. ClientSetup will use this Object when creating the server side LocalClient.


Method Summary
 ClientIO createClientIO()
          Returns the ClientIO that will be used to communicate with this Client.
 java.lang.String getAddress()
          Return the address that will be used to identify this Connection (eg.
 Gateway getGateway()
          Returns the Gateway to which this Connection connected.
 boolean isTrusted()
          Returns true if this Connection is trusted.
 void reject(UPCMessage message)
          Rejects the Connection with the following message.
 

Method Detail

getGateway

Gateway getGateway()
Returns the Gateway to which this Connection connected.


createClientIO

ClientIO createClientIO()
                        throws java.lang.Exception
Returns the ClientIO that will be used to communicate with this Client.

Throws:
java.lang.Exception

getAddress

java.lang.String getAddress()
Return the address that will be used to identify this Connection (eg. IP). Connections with the same address will be considered from the same source for the purposes of security such as banning an address.


isTrusted

boolean isTrusted()
Returns true if this Connection is trusted. Trusted connections are not scrutinised for activities such as anti-flooding.


reject

void reject(UPCMessage message)
Rejects the Connection with the following message.



Copyright USER1 Subsystems Corporation - Sun Oct 16 2011, 10:38 PM -0400