|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.pkrete.jsip2.messages.SIP2Message
com.pkrete.jsip2.messages.SIP2MessageRequest
public abstract class SIP2MessageRequest
This abstract class is a base class of the SIP2 request messages sent to the ILS SIP server.
| Field Summary | |
|---|---|
protected static int |
counter
Number of messages that the system has sent. |
protected static boolean |
errorDetectionEnabled
When error detection is enabled, a sequence number field, followed by a checksum number field, is appended to every message. |
protected boolean |
feeAcknowledged
If false and there's a fee associated with the transaction, the ILS SIP server should tell the system in the response that there's a fee, and refuse to complete the transaction. |
protected String |
patronPassword
Password (PIN) of the patron. |
protected String |
terminalPassword
Password for the system to login to the ILS. |
protected boolean |
useFeeAcknowledged
Tells if fee acknowledged field show be added to the request. |
| Fields inherited from class com.pkrete.jsip2.messages.SIP2Message |
|---|
bibId, checkSum, code, currencyType, currentLocation, expirationDate, feeAmount, feeType, institutionId, itemIdentifier, itemProperties, patronIdentifier, pickupLocation, sequence, titleIdentifier, transactionDate, transactionId |
| Constructor Summary | |
|---|---|
protected |
SIP2MessageRequest(String code)
Constructs and initializes a new SIP2MessageRequest object with the given command identifier and sets the transacation date. |
| Method Summary | |
|---|---|
String |
getCheckSum()
Returns the checksum representing the binary sum of the characters included the message. |
String |
getPatronPassword()
Returns the password (PIN) of the patron. |
String |
getTerminalPassword()
Returns the password for the system to login to the ILS. |
boolean |
isErrorDetectionEnabled()
Returns true if and only if the error detection is enabled. |
boolean |
isFeeAcknowledged()
Returns true if and only if there's a fee associated with the transaction and the patron has agreed to pay the fee. |
boolean |
isUseFeeAcknowledged()
Returns true if and only if the fee acknowledged should be added to the request. |
void |
setErrorDetectionEnabled(boolean errorDetection)
Sets the value that defines if the error detection is enabled. |
void |
setFeeAcknowledged(boolean feeAcknowledged)
Changes the boolean value that tells if the patron has agreed to pay the fee associated with the transaction. |
void |
setPatronPassword(String patronPassword)
Sets the password (PIN) of the patron. |
void |
setTerminalPassword(String terminalPassword)
Sets the password for the system to login to the ILS. |
void |
setUseFeeAcknowledged(boolean useFeeAcknowledged)
Sets the value that tells if the fee acknowledged field should be added to the request. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String terminalPassword
protected String patronPassword
protected boolean feeAcknowledged
protected boolean useFeeAcknowledged
protected static boolean errorDetectionEnabled
protected static int counter
| Constructor Detail |
|---|
protected SIP2MessageRequest(String code)
code - command identifier| Method Detail |
|---|
public boolean isErrorDetectionEnabled()
public void setErrorDetectionEnabled(boolean errorDetection)
errorDetection - true or falsepublic String getTerminalPassword()
public void setTerminalPassword(String terminalPassword)
terminalPassword - new valuepublic String getPatronPassword()
public void setPatronPassword(String patronPassword)
patronPassword - new valuepublic boolean isFeeAcknowledged()
public void setFeeAcknowledged(boolean feeAcknowledged)
feeAcknowledged - new valuepublic boolean isUseFeeAcknowledged()
public void setUseFeeAcknowledged(boolean useFeeAcknowledged)
useFeeAcknowledged - new valuepublic String getCheckSum()
getCheckSum in class SIP2Message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||