|
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.InterActClient
It is client component for InterAct. It can do InterAct scenarios like send request (SwInt:ExchangeRequest), get response (SwInt:ExchangeResponse), etc. It constructs the requests by use of Configuration. It populates the responses to the 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. |
java.lang.String |
getRequest()
Returns the current Request message which will be sent out. |
SAGMessage.SAGEnvelope |
getRequestEnvelope()
Returns SAG envelope of the current Request message which will be sent out. |
java.lang.String |
getRequestLetter()
Returns letter of the current Request message which will be sent out. |
java.lang.String |
getRequestPayload()
Returns the current RequestPayload which will be sent out. |
SAGMessage |
getResponse()
Returns the current Response from the previous exchange. |
java.lang.String |
getResponsePayload()
Returns the current ResponsePayload from the previous exchange. |
long |
getToken()
Returns the token number for current transfer. |
void |
receiveResponse(long token)
Receives Response with ResponsePayload |
void |
sendAndReceive()
Sends request with RequestPayload and receives response with ResponsePayload synchronously taking the configured timeout value. |
long |
sendRequest()
Sends Request with RequestPayload |
void |
setRequestPayload(java.lang.String requestPayload)
Sets the RequestPayload which will be sent out. |
void |
snfAck()
Acks the previously-pulled message in current SnF session. |
void |
snfAck(java.lang.String acceptStatus)
Acks the previously-pulled message with specified acceptStatus in current SnF session. |
java.lang.String |
snfAcquire()
Acquires SnF queue and opens a SnF session. |
java.lang.String |
snfPull()
Pulls the next message from queue in current SnF session. |
java.lang.String |
snfPull(java.lang.String sessionId)
Pulls the next message from queue with the specified 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 |
---|
long sendRequest() throws SAGApplicationException
long
- Returns the token.
SAGApplicationException
- upon error.void receiveResponse(long token) throws SAGApplicationException
token
-
SAGApplicationException
- upon error.void sendAndReceive() throws SAGApplicationException
SAGApplicationException
- upon error.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 ("Accepted", "Duplicated", "Rejected")
SAGApplicationException
- upon error.java.lang.String snfPull(java.lang.String sessionId) throws SAGApplicationException
SnF
- SessionId
String
- Returns the SnFRef; null is returned if queue is empty.
SAGApplicationException
- upon error.java.lang.String snfPull() throws SAGApplicationException
String
- Returns the SnFRef; null is returned if queue is empty.
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.java.lang.String getRequest()
SAGMessage.SAGEnvelope getRequestEnvelope()
java.lang.String getRequestLetter()
java.lang.String getRequestPayload()
String
- Returns the request payload.
SAGMessage getResponse()
SAGMessage
- Returns the response message.
java.lang.String getResponsePayload()
String
- Returns the response payload.
void setRequestPayload(java.lang.String requestPayload) throws SAGApplicationException
requestPayload
- The payload to be set.
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 |