public interface MAPDialog
| Modifier and Type | Field and Description |
|---|---|
static int |
_Timer_Default |
static int |
_Timer_l |
static int |
_Timer_m |
static int |
_Timer_ml |
static int |
_Timer_s |
| Modifier and Type | Method and Description |
|---|---|
void |
abort(MAPUserAbortChoice mapUserAbortChoice)
This is equivalent to MAP User issuing the MAP_U_ABORT Service Request.
|
boolean |
cancelInvocation(java.lang.Long invokeId)
Causes local termination of an operation invocation (TC-U-CANCEL)
|
void |
close(boolean prearrangedEnd)
This is equivalent of MAP User issuing the MAP_CLOSE Service Request.
|
MAPApplicationContext |
getApplicationContext() |
java.lang.Long |
getDialogId()
Returns this Dialog's ID.
|
int |
getMaxUserDataLength()
Return the maximum MAP message length (in bytes) that are allowed for this dialog
|
int |
getMessageUserDataLengthOnClose(boolean prearrangedEnd)
Return the MAP message length (in bytes) that will be after encoding
if TC-END case
This value must not exceed getMaxUserDataLength() value
|
int |
getMessageUserDataLengthOnSend()
Return the MAP message length (in bytes) that will be after encoding
if TC-BEGIN or TC-CONTINUE cases
This value must not exceed getMaxUserDataLength() value
|
MAPServiceBase |
getService()
Returns the MAP service that serve this dialog
|
java.lang.Object |
getUserObject()
Getting from the MAPDialog a user-defined object to save relating to the
Dialog information
|
void |
keepAlive()
This method can be called on timeout of dialog, inside
MAPDialogListener#onDialogTimeout(Dialog) callback. |
void |
refuse(Reason reason)
Send T_U_ABORT with MAP-RefuseInfo
|
void |
release()
Remove MAPDialog without sending any messages and invoking events
|
void |
resetInvokeTimer(java.lang.Long invokeId)
Reset the Invoke Timeout timer for the Invoke.
|
void |
send()
This is equivalent of MAP User issuing the MAP_DELIMITER Service Request.
|
void |
sendErrorComponent(java.lang.Long invokeId,
MAPErrorMessage mapErrorMessage)
Sends the TC-U-ERROR component
|
void |
sendInvokeComponent(Invoke invoke)
Sends the TC-INVOKE component
|
void |
sendRejectComponent(java.lang.Long invokeId,
Problem problem)
Sends the TC-U-REJECT component
|
void |
sendReturnResultComponent(ReturnResult returnResult)
Sends the TC-RESULT-NL component
|
void |
sendReturnResultLastComponent(ReturnResultLast returnResultLast)
Sends the TC-RESULT-L component
|
void |
setExtentionContainer(MAPExtensionContainer extContainer)
Set ExtentionContainer that will be send in 1) T-BEGIN 2) T-CONTINUE or
T-END if it is response to the T-BEGIN 3) T-ABORT If no Dialogue control
APDU is sending - ExtentionContainer will also not be sent
|
void |
setUserObject(java.lang.Object userObject)
Store in the MAPDialog a user-defined object to save relating to the
Dialog information
|
static final int _Timer_s
static final int _Timer_m
static final int _Timer_ml
static final int _Timer_l
static final int _Timer_Default
void release()
void keepAlive()
MAPDialogListener#onDialogTimeout(Dialog) callback. If its called,
dialog wont be removed in case application does not perform 'send'.java.lang.Long getDialogId()
DialogMAPServiceBase getService()
void setExtentionContainer(MAPExtensionContainer extContainer)
void send()
throws MAPException
MAPExceptionvoid close(boolean prearrangedEnd)
throws MAPException
prearrangedEnd - MAPExceptionvoid abort(MAPUserAbortChoice mapUserAbortChoice) throws MAPException
userReason - MAPExceptionvoid refuse(Reason reason) throws MAPException
MAPExceptionvoid sendInvokeComponent(Invoke invoke) throws MAPException
invoke - MAPExceptionvoid sendReturnResultComponent(ReturnResult returnResult) throws MAPException
returnResult - MAPExceptionvoid sendReturnResultLastComponent(ReturnResultLast returnResultLast) throws MAPException
returnResultLast - MAPExceptionvoid sendErrorComponent(java.lang.Long invokeId,
MAPErrorMessage mapErrorMessage)
throws MAPException
invokeId - mapErrorMessage - MAPExceptionvoid sendRejectComponent(java.lang.Long invokeId,
Problem problem)
throws MAPException
invokeId - This parameter is optional and may be the nullproblem - MAPExceptionvoid resetInvokeTimer(java.lang.Long invokeId)
throws MAPException
invokeId - MAPExceptionboolean cancelInvocation(java.lang.Long invokeId)
throws MAPException
invokeId - MAPExceptionjava.lang.Object getUserObject()
void setUserObject(java.lang.Object userObject)
userObject - MAPApplicationContext getApplicationContext()
int getMaxUserDataLength()
int getMessageUserDataLengthOnSend()
throws MAPException
MAPExceptionint getMessageUserDataLengthOnClose(boolean prearrangedEnd)
throws MAPException
prearrangedEnd - MAPExceptionCopyright © 2011. All Rights Reserved.