|
||||||||||
| 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.SIP2MessageResponse
public abstract class SIP2MessageResponse
This abstract class is a base class of the SIP2 response messages received from the ILS SIP server.
| Field Summary | |
|---|---|
protected String |
data
Message data received from the ILS SIP server |
protected String |
dueDate
Due date for the item. |
protected MediaType |
mediaType
Media type of the item. |
protected boolean |
ok
Tells that the requested action was allowable and completed succesfully. |
protected String |
permanentLocation
The location where the item is normally stored. |
protected List<String> |
printLine
Variable-length field. |
protected List<String> |
screenMessage
Variable-length field. |
| 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 |
SIP2MessageResponse(String code,
String data)
Constructs and initializes a new SIP2MessageResponse object. |
| Method Summary | |
|---|---|
abstract String |
countChecksum()
Returns the checksum of the message. |
String |
getData()
Returns the message data received from the ILS SIP server. |
String |
getDueDate()
Returns the due date for this item. |
MediaType |
getMediaType()
Returns the media type of the item. |
String |
getPermanentLocation()
Returns the location where the item is normally stored. |
List<String> |
getPrintLine()
Returns a list of messages received from the ILS to print on the system's printer. |
List<String> |
getScreenMessage()
Returns a list of messages received from the ILS to display on the system's screen. |
boolean |
isOk()
Returns true if and only if the requested action was allowable and completed succesfully. |
boolean |
isValid()
Returns true, if and only if, the response message is valid. |
void |
setData(String data)
Changes the message data. |
void |
setDueDate(String dueDate)
Sets the due date for the item. |
void |
setMediaType(MediaType mediaType)
Sets the media type of the item |
void |
setOk(boolean ok)
Sets the value that tells if the requested action was allowable and completed succesfully. |
void |
setPermanentLocation(String permanentLocation)
Changes the location where the item is normally stored. |
void |
setPrintLine(List<String> printLines)
Sets the printLine value, that's a list of messages received from the ILS to print on the system's printer. |
void |
setScreenMessage(List<String> screenMessages)
Sets the screenMessage value, that's a list of messages received from the ILS to display on the system's screen. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean ok
protected String data
protected List<String> screenMessage
protected List<String> printLine
protected String dueDate
protected String permanentLocation
protected MediaType mediaType
| Constructor Detail |
|---|
protected SIP2MessageResponse(String code,
String data)
code - command identifierdata - message data| Method Detail |
|---|
public abstract String countChecksum()
public boolean isOk()
public void setOk(boolean ok)
ok - new valuepublic String getDueDate()
public void setDueDate(String dueDate)
dueDate - new due datepublic String getPermanentLocation()
public void setPermanentLocation(String permanentLocation)
permanentLocation - new locationpublic MediaType getMediaType()
public void setMediaType(MediaType mediaType)
mediaType - new valuepublic List<String> getScreenMessage()
public void setScreenMessage(List<String> screenMessages)
screenMessages - list of messages received
from the ILS to display on the system's screenpublic List<String> getPrintLine()
public void setPrintLine(List<String> printLines)
printLines - list of messages received from the
ILS to print on the system's printer.public String getData()
getData in class SIP2Messagepublic void setData(String data)
data - new valuepublic boolean isValid()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||