|
Sun Adapter for SAG API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface SAGApi.Services.InterActServer
It is server component for InterAct. It can do InterAct scenarios like receive request, send response, etc. It constructs the responses by use of Configuration. It populates the requests to corresponding Primitives.
Method Summary | |
---|---|
java.lang.String |
checkSnFStatus()
Checks SnF status for the SnF session which is from the last acquire. |
java.lang.String |
checkSnFStatus(java.lang.String snfSession)
Checks SnF status for the specified SnF session. |
SAGMessage |
getRequest()
Gets the SAG message. |
java.lang.String |
getRequestPayload()
Gets the request payload. |
java.lang.String |
getResponse()
Returns the current Response message which will be sent out. |
SAGMessage.SAGEnvelope |
getResponseEnvelope()
Returns SAG envelope of the current Response message which will be sent out. |
java.lang.String |
getResponseLetter()
Returns letter of the current Response message which will be sent out. |
java.lang.String |
getResponsePayload()
Gets the response payload. |
long |
getToken()
Returns the token number for current transfer. |
boolean |
isHandleFileEventRequestReceived()
Checks whether the request received on receiveRequest() is Sw:HandleFileEventRequest. |
boolean |
isHandleFileRequestReceived()
Checks whether the request received on receiveRequest() is Sw:HandleFileRequest. |
boolean |
isHandleInitRequestReceived()
Checks whether the request received on receiveRequest() is Sw:HandleInitRequest. |
boolean |
isHandleRequestReceived()
Checks whether the request received on receiveRequest() is SwInt:HandleRequest. |
boolean |
isHandleSnFRequestReceived()
Checks whether the request received on receiveRequest() is Sw:HandleSnFRequest. |
boolean |
isHandleTermRequestReceived()
Checks whether the request received on receiveRequest() is Sw:HandleTermRequest. |
boolean |
isNoRequestReceived()
Checks whether no request is received on receiveRequest() - timeout happens. |
void |
process(long token)
Analyzes the received request and prepares the response accordingly for the message transfer associated with the specified token. |
void |
processHandleFileEventRequest(long token)
Processes the request Sw:HandleFileEventRequest. |
void |
processHandleFileRequest(long token)
Processes the request Sw:HandleFileRequest. |
void |
processHandleInitRequest(long token)
Processes the request Sw:HandleInitRequest. |
void |
processHandleRequest(long token)
Processes the request message SwInt:HandleRequest. |
void |
processHandleSnFRequest(long token)
Processes the request Sw:HandleSnFRequest. |
void |
processHandleTermRequest(long token)
Processes the request Sw:HandleTermRequest. |
long |
receiveRequest()
Receives the request message. |
void |
sendError(long token,
long errorCode,
java.lang.String errorData)
Sends error with the specified token, error code, error data. |
void |
sendError(long errorCode,
java.lang.String errorData)
Sends error with the specified error code, error data. |
void |
sendHandleFileEventResponse(long token)
Sends the response message Sw:HandleFileEventResponse. |
void |
sendHandleFileResponse(long token)
Sends the response message Sw:HandleFileResponse. |
void |
sendHandleInitResponse(long token)
Sends the response message Sw:HandleInitResponse. |
void |
sendHandleResponse(long token)
Sends the response message SwInt:HandleResponse. |
void |
sendHandleSnFResponse(long token)
Sends the response message Sw:HandleSnFResponse. |
void |
sendHandleTermResponse(long token)
Sends the response message Sw:HandleTermResponse. |
void |
sendResponse(long token)
Sends out the current response message with the specified token number. |
void |
setResponsePayload(java.lang.String responsePayload)
Sets the response payload. |
void |
snfAck()
Acks the previously-handled message in current SnF session. |
void |
snfAck(java.lang.String acceptStatus)
Acks the previously-handled message in current SnF session with specified acceptStatus. |
java.lang.String |
snfAcquire()
Acquires SnF queue and opens a SnF session. |
void |
snfRelease()
Releases SnF queue and closes the current SnF session which corresponds to the last acquire. |
void |
snfRelease(java.lang.String sessionId)
Releases SnF queue and closes the specified SnF session. |
Method Detail |
---|
void process(long token) throws SAGApplicationException
token
- Token number
SAGApplicationException
- upon error.long receiveRequest() throws SAGApplicationException
SAGApplicationException
- upon error.void processHandleRequest(long token) throws SAGApplicationException
token
- The token number along with the transfer.
SAGApplicationException
- upon error.void sendHandleResponse(long token) throws SAGApplicationException
token
- The token number along with the transfer.
SAGApplicationException
- upon error.void processHandleSnFRequest(long token) throws SAGApplicationException
token
- The token number along with the transfer.
SAGApplicationException
- upon error.void sendHandleSnFResponse(long token) throws SAGApplicationException
token
- The token number along with the transfer.
SAGApplicationException
- upon error.void processHandleFileRequest(long token) throws SAGApplicationException
token
- The token number along with the transfer.
SAGApplicationException
- upon error.void sendHandleFileResponse(long token) throws SAGApplicationException
token
- The token number along with the transfer.
SAGApplicationException
- upon error.void processHandleFileEventRequest(long token) throws SAGApplicationException
token
- The token number along with the transfer.
SAGApplicationException
- upon error.void sendHandleFileEventResponse(long token) throws SAGApplicationException
token
- The token number along with the transfer.
SAGApplicationException
- upon error.void processHandleInitRequest(long token) throws SAGApplicationException
token
- The token number along with the transfer.
SAGApplicationException
- upon error.void sendHandleInitResponse(long token) throws SAGApplicationException
token
- The token number along with the transfer.
SAGApplicationException
- upon error.void processHandleTermRequest(long token) throws SAGApplicationException
token
- The token number along with the transfer.
SAGApplicationException
- upon error.void sendHandleTermResponse(long token) throws SAGApplicationException
token
- The token number along with the transfer.
SAGApplicationException
- upon error.boolean isNoRequestReceived()
boolean isHandleTermRequestReceived()
boolean isHandleInitRequestReceived()
boolean isHandleFileEventRequestReceived()
boolean isHandleSnFRequestReceived()
boolean isHandleFileRequestReceived()
boolean isHandleRequestReceived()
java.lang.String snfAcquire() throws SAGApplicationException
String
- Returns the SnF session ID.
SAGApplicationException
- upon error.void snfRelease() throws SAGApplicationException
SAGApplicationException
- upon error.void snfRelease(java.lang.String sessionId) throws SAGApplicationException
SnF
- SessionId to release
SAGApplicationException
- upon error.void snfAck() throws SAGApplicationException
SAGApplicationException
- upon error.void snfAck(java.lang.String acceptStatus) throws SAGApplicationException
acceptStatus
- The accept status
SAGApplicationException
- upon error.java.lang.String checkSnFStatus(java.lang.String snfSession) throws SAGApplicationException
snfSession
- SnF session ID.
String
- Returns the SnF status.
SAGApplicationException
- upon error.java.lang.String checkSnFStatus() throws SAGApplicationException
String
- Returns the SnF status.
SAGApplicationException
- upon error.void sendError(long token, long errorCode, java.lang.String errorData) throws SAGApplicationException
token
- The token number.errorCode
- The error code, eg. 0 - Local Authentication Error; 1 - No Server Business Response.errorData
- The error data.
SAGApplicationException
- upon error.void sendError(long errorCode, java.lang.String errorData) throws SAGApplicationException
errorCode
- The error code, eg. 0 - Local Authentication Error; 1 - No Server Business Response.errorData
- The error data.
SAGApplicationException
- upon error.void sendResponse(long token) throws SAGApplicationException
token
- The token number along with the transfer.
SAGApplicationException
- upon error.SAGMessage getRequest()
void
- Returns SAG message.
java.lang.String getRequestPayload()
String
- Returns the request payload.
java.lang.String getResponse()
SAGMessage.SAGEnvelope getResponseEnvelope()
java.lang.String getResponseLetter()
java.lang.String getResponsePayload()
String
- Returns the response payload.
void setResponsePayload(java.lang.String responsePayload) throws SAGApplicationException
responsePayload
-
SAGApplicationException
- upon error.long getToken()
|
Sun Adapter for SAG API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |