public interface DOFProtocolFactory extends DOFImmutable, java.io.Serializable
OALProtocolNegotiator,
DOF.DefaultProtocolFactory,
DefaultProtocolNegotiator| Modifier and Type | Method and Description |
|---|---|
org.opendof.core.internal.protocol.ApplicationLayer |
getApplication(short protocol)
Returns the application layer for a given protocol.
|
java.util.List<java.lang.Short> |
getAppVersions()
Get a list of support application versions.
|
byte |
getDefaultENP()
Get the default DNP version.
|
byte |
getDefaultEPP()
Get the default DPP version.
|
org.opendof.core.internal.protocol.dnp.DNP |
getENPInstance(byte version)
Get an DNP instance for a given DNP version.
|
java.util.List<java.lang.Byte> |
getENPVersions()
Get a list of supported DNP versions.
|
org.opendof.core.internal.protocol.dpp.DPP |
getEPPInstance(byte version)
Get an DPP instance for a given DPP version.
|
java.util.List<java.lang.Byte> |
getEPPVersions()
Get a list of supported DPP versions.
|
org.opendof.core.internal.protocol.dsp.DSP |
getESPInstance()
Get the DSP instance.
|
DOFSecurityMode |
getSecurityMode(short protocol)
Returns the security mode layer for a protocol identifier.
|
DOFSecurityMode |
getSecurityMode(short protocol,
DOFMarshalContext context,
java.lang.Object state,
DOFPacket packet)
Returns the unmarshalled security mode layer for a protocol identifier.
|
org.opendof.core.internal.protocol.ApplicationLayer getApplication(short protocol)
protocol - The protocol identifier. Must be one of the protocol-specific constants.DOFSecurityMode getSecurityMode(short protocol)
protocol - The protocol identifier. Must be one of the protocol-specific constants.DOFSecurityMode getSecurityMode(short protocol, DOFMarshalContext context, java.lang.Object state, DOFPacket packet) throws DOFMarshalException
protocol - The protocol identifier. Must be one of the protocol-specific constants.context - The context of the unmarshalling to be performed.state - The state in which the unmarshalling is done. This may affect the result.packet - The buffer which contains the serialized form of the object. Must not be null.DOFMarshalException - If there are errors in the data or the buffer. This is an exception to the rule that
non-RuntimeExceptions not be thrown from a constructor.Marshallablejava.util.List<java.lang.Byte> getENPVersions()
byte getDefaultENP()
org.opendof.core.internal.protocol.dnp.DNP getENPInstance(byte version)
version - The DNP version.java.util.List<java.lang.Byte> getEPPVersions()
byte getDefaultEPP()
org.opendof.core.internal.protocol.dpp.DPP getEPPInstance(byte version)
version - The version.org.opendof.core.internal.protocol.dsp.DSP getESPInstance()
java.util.List<java.lang.Short> getAppVersions()