|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProtocolHandler
Method Summary | |
---|---|
void |
abnormalRelease(OdetteFtpSession session,
EndSessionReason error,
String errorText)
Terminate current session by sending an End Session command with the specified error and raise the exception for the local user agent. |
void |
abort(OdetteFtpSession session,
EndSessionReason error,
String errorText)
|
void |
afterStartSession(OdetteFtpSession session)
|
void |
authenticationChallengeReceived(OdetteFtpSession session,
CommandExchangeBuffer auch)
Decrypts the challenge using the user private key and sends the decrypted challenge back to the remote peer in the Authentication Response (AURP). |
void |
authenticationResponseReceived(OdetteFtpSession session,
CommandExchangeBuffer aurp)
|
void |
changeDirectionReceived(OdetteFtpSession session)
|
void |
dataBufferReceived(OdetteFtpSession session,
DataExchangeBuffer data)
|
void |
endFileNegativeAnswerReceived(OdetteFtpSession session,
CommandExchangeBuffer command)
|
void |
endFilePositiveAnswerReceived(OdetteFtpSession session,
CommandExchangeBuffer command)
|
void |
endFileReceived(OdetteFtpSession session,
CommandExchangeBuffer command)
|
void |
endSessionReceived(OdetteFtpSession session,
CommandExchangeBuffer command)
|
void |
endToEndResponseReceived(OdetteFtpSession session,
CommandExchangeBuffer command)
|
void |
negativeEndReponseReceived(OdetteFtpSession session,
CommandExchangeBuffer command)
|
void |
protocolRelease(OdetteFtpSession session,
EndSessionReason reason,
String reasonText)
|
void |
readyMessageReceived(OdetteFtpSession session)
The Initiator ODETTE-FTP entity receive the Start Session Ready Message sent by the Responder immediately after the network connection has been established, beginning the Start Session Phase. |
void |
readyToReceiveReceived(OdetteFtpSession session)
Ready To Receive Command (RTR) received in the SPEAKER state. |
void |
securityChangeDirectionReceived(OdetteFtpSession session,
CommandExchangeBuffer command)
|
void |
sessionConnected(OdetteFtpSession session)
Indication that the network connection has been established - occur in both entity states (SPEAKER or LISTENER). |
void |
setCreditReceived(OdetteFtpSession session,
CommandExchangeBuffer command)
|
void |
startFileNegativeAnswerReceived(OdetteFtpSession session,
CommandExchangeBuffer command)
|
void |
startFilePositiveAnswerReceived(OdetteFtpSession session,
CommandExchangeBuffer command)
|
void |
startFileReceived(OdetteFtpSession session,
CommandExchangeBuffer command)
|
void |
startSessionReceived(OdetteFtpSession session,
CommandExchangeBuffer command)
Negotiate the Start Session taking in account the right entity mode's behavior (Initiator or Responder). |
Method Detail |
---|
void abnormalRelease(OdetteFtpSession session, EndSessionReason error, String errorText) throws OdetteFtpException
session
- err
- msg
-
EndSessionException
- a raising exception for the given End Session error to user
agent.
OdetteFtpException
void abort(OdetteFtpSession session, EndSessionReason error, String errorText) throws OdetteFtpException
OdetteFtpException
void authenticationChallengeReceived(OdetteFtpSession session, CommandExchangeBuffer auch) throws OdetteFtpException
1. Initiator -- SECD ------------> Responder Change Direction 2. <------------ AUCH -- Challenge 3. -- AURP ------------> Response 4. <------------ SECD -- Change Direction 5. -- AUCH ------------> Challenge 6. <------------ AURP -- Response
session
- auch
-
OdetteFtpException
void authenticationResponseReceived(OdetteFtpSession session, CommandExchangeBuffer aurp) throws OdetteFtpException
OdetteFtpException
void changeDirectionReceived(OdetteFtpSession session) throws OdetteFtpException
OdetteFtpException
void dataBufferReceived(OdetteFtpSession session, DataExchangeBuffer data) throws OdetteFtpException
OdetteFtpException
void endFileNegativeAnswerReceived(OdetteFtpSession session, CommandExchangeBuffer command) throws OdetteFtpException
OdetteFtpException
void endFilePositiveAnswerReceived(OdetteFtpSession session, CommandExchangeBuffer command) throws OdetteFtpException
OdetteFtpException
void endFileReceived(OdetteFtpSession session, CommandExchangeBuffer command) throws OdetteFtpException
OdetteFtpException
void endSessionReceived(OdetteFtpSession session, CommandExchangeBuffer command) throws OdetteFtpException
OdetteFtpException
void endToEndResponseReceived(OdetteFtpSession session, CommandExchangeBuffer command) throws OdetteFtpException
OdetteFtpException
void negativeEndReponseReceived(OdetteFtpSession session, CommandExchangeBuffer command) throws OdetteFtpException
OdetteFtpException
void protocolRelease(OdetteFtpSession session, EndSessionReason reason, String reasonText) throws OdetteFtpException
OdetteFtpException
void readyMessageReceived(OdetteFtpSession session) throws OdetteFtpException
Thus, the both negotiate session authentication and parameters exchanging the SSID command.
Protocol Sequence
1. Initiator <-------------SSRM -- Responder Ready Message 2. -- SSID ------------> Identification 3. <------------ SSID -- Identification
session
-
OdetteFtpException
void readyToReceiveReceived(OdetteFtpSession session) throws OdetteFtpException
In order to avoid congestion between two adjacent nodes caused by a continuous flow of EERPs and NERPs, a Ready To Receive (RTR) command is provided. The RTR acts as an EERP/NERP acknowledgement for flow control but has no end-to-end significance.
Protocol Sequence
1. Speaker -- EERP ------------> Listener End to End Response 2. <------------- RTR -- Ready to Receive 3. -- EERP ------------> End to End Response 4. <------------- RTR -- Ready to Receive 5. -- NERP ------------> Negative End Response 6. <------------- RTR -- Ready to Receive 7. -- SFID ------------> Start File or 8. -- CD --------------> Exchange the turnAfter sending an EERP or NERP, the Speaker must wait for an RTR before sending any other commands. The only acceptable commands to follow are:
EERP NERP SFID or CD (if there are no more EERPs or NERPs to be sent)
session
-
OdetteFtpException
void securityChangeDirectionReceived(OdetteFtpSession session, CommandExchangeBuffer command) throws OdetteFtpException
OdetteFtpException
void sessionConnected(OdetteFtpSession session) throws OdetteFtpException
Answer attended calls with a Start Session Ready Message command when this ODETTE FTP entity is the Responder. Otherwise, do nothing else of expecting same command from the peer.
The Start Session phase is entered immediately after the network connection has been established. The ODETTE FTP entity that took the initiative to establish the network connection becomes the Initiator. It's peer becomes the Responder.
The first message must be sent by the Responder.
Protocol Sequence
1. Initiator <-------------SSRM -- Responder Ready Message 2. -- SSID ------------> Identification 3. <------------ SSID -- Identification
session
-
OdetteFtpException
void setCreditReceived(OdetteFtpSession session, CommandExchangeBuffer command) throws OdetteFtpException
OdetteFtpException
void startFileNegativeAnswerReceived(OdetteFtpSession session, CommandExchangeBuffer command) throws OdetteFtpException
OdetteFtpException
void startFilePositiveAnswerReceived(OdetteFtpSession session, CommandExchangeBuffer command) throws OdetteFtpException
OdetteFtpException
void startFileReceived(OdetteFtpSession session, CommandExchangeBuffer command) throws OdetteFtpException
OdetteFtpException
void startSessionReceived(OdetteFtpSession session, CommandExchangeBuffer command) throws OdetteFtpException
Protocol Sequence
1. Initiator <-------------SSRM -- Responder Ready Message 2. -- SSID ------------> Identification 3. <------------ SSID -- Identification
session
- command
-
OdetteFtpException
void afterStartSession(OdetteFtpSession session) throws OdetteFtpException
OdetteFtpException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |