|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmadkit.netcomm.ProtocolInformationImpl
public class ProtocolInformationImpl
Constructor Summary | |
---|---|
ProtocolInformationImpl()
Creates a ProtcolInformationImpl with all the KnownProtocols |
|
ProtocolInformationImpl(java.util.Collection protocolsToUse)
Creates a ProtcolInformationImpl with protos as the set of acceptable protocols. |
|
ProtocolInformationImpl(java.lang.String reason)
Creates a ProtcolInformationImpl with refuse set to true. |
Method Summary | |
---|---|
java.lang.String |
getBestProtocol(Protocollnformation info)
Searches for the best protocol to use from the receivers point of view. |
java.util.Collection |
getExtraParameters()
Returns a Collection of parameters to further configure a the protocols |
java.util.Collection |
getProtocols()
Gets the known protocols. |
java.lang.String |
getVersion()
Returns the version of the the Protocol information |
boolean |
refused()
Is the Connection refused?? |
java.lang.String |
refuseReason()
Reason of the distant Kernel to refuse the connection. |
void |
setExtraParameters(java.util.Collection ep)
Sets the extra Parameters. |
void |
setRefuse(boolean r)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProtocolInformationImpl()
public ProtocolInformationImpl(java.lang.String reason)
reason
- public ProtocolInformationImpl(java.util.Collection protocolsToUse)
protos
as the set of acceptable protocols.
protos
- Method Detail |
---|
public java.lang.String getBestProtocol(Protocollnformation info)
Protocollnformation
info
. If found this is the protocol
that will be used.
getBestProtocol
in interface Protocollnformation
info
- distant kernel known protocols
public java.util.Collection getProtocols()
Protocollnformation
getProtocols
in interface Protocollnformation
public boolean refused()
Protocollnformation
refused
in interface Protocollnformation
public void setRefuse(boolean r)
public java.lang.String refuseReason()
Protocollnformation
refuseReason
in interface Protocollnformation
public java.lang.String getVersion()
Protocollnformation
getVersion
in interface Protocollnformation
public java.util.Collection getExtraParameters()
Protocollnformation
getExtraParameters
in interface Protocollnformation
public void setExtraParameters(java.util.Collection ep)
ep
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |