public interface Connection
Modifier and Type | Method and Description |
---|---|
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.
|
java.lang.String |
getRefusalDescription()
A string providing information about the condition that led to the refusal.
|
java.lang.String |
getRefusalReason()
A string representing the reason for the connection refusal.
|
void |
refuse(java.lang.String reason,
java.lang.String description)
Refuse the Connection.
|
Gateway getGateway()
java.lang.String getAddress()
void refuse(java.lang.String reason, java.lang.String description)
reason
- - reason argument is a code that indicates why the client connection was refused (eg. BANNED)description
- - explains the cause of the refusaljava.lang.String getRefusalReason()
java.lang.String getRefusalDescription()