org.openiec61850.scsm.mms.server
Class MMSConnectionHandler

java.lang.Object
  extended by org.openiec61850.scsm.mms.server.MMSConnectionHandler
All Implemented Interfaces:
SCSMConnectionHandler

public class MMSConnectionHandler
extends java.lang.Object
implements SCSMConnectionHandler

Implements the SCSMConnectionHandler. One MMSConnectionHandler is created for every new Association Request.


Constructor Summary
MMSConnectionHandler(AccessPoint accessPoint)
           
 
Method Summary
 void close()
           
 void connectionIndication(AcseAssociation pConnection, java.nio.ByteBuffer associationRequest)
           
 void sendReport(Report report)
           
 void setMaxPduSize(int maxPduSize)
          Set the maximum MMS Pdu size in bytes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MMSConnectionHandler

public MMSConnectionHandler(AccessPoint accessPoint)
Method Detail

setMaxPduSize

public void setMaxPduSize(int maxPduSize)
Set the maximum MMS Pdu size in bytes. The default size is DEFAULT_MAX_Pdu_SIZE.

Parameters:
maxPduSize - should be at least MINIMUM_Pdu_SIZE

connectionIndication

public void connectionIndication(AcseAssociation pConnection,
                                 java.nio.ByteBuffer associationRequest)
                          throws ServiceError,
                                 java.io.IOException
Throws:
ServiceError
java.io.IOException

sendReport

public void sendReport(Report report)
                throws java.io.IOException
Specified by:
sendReport in interface SCSMConnectionHandler
Throws:
java.io.IOException

close

public void close()
Specified by:
close in interface SCSMConnectionHandler