public class RecordCommand extends Pazpar2Command implements ServiceProxyCommand
record
command, can be accessed by pzreq.record
Constructor and Description |
---|
RecordCommand() |
Modifier and Type | Method and Description |
---|---|
RecordCommand |
copy()
Commands must implement this method to provide an completely detached, deep clone of
themselves.
|
java.lang.String |
getBinary()
Returns the
binary parameter value. |
java.lang.String |
getChecksum()
Returns the
checksum parameter value. |
java.lang.String |
getEsn()
Returns the
esn parameter value. |
java.lang.String |
getId()
Returns the
id parameter value. |
java.lang.String |
getNativesyntax()
Returns the
nativesyntax parameter value. |
java.lang.String |
getOffset()
Returns the
offset parameter value. |
RecordCommandSp |
getSp()
Returns a record command object with Service Proxy extension parameters
|
java.lang.String |
getSyntax()
Returns the
syntax parameter value. |
ResponseDataObject |
run()
Special handling of record responses since they come in three distinctly different ways
As a regular <record> document
In arbitrary XML format, in case of an offset request to get the native format
In binary (non XML) format
|
void |
setBinary(java.lang.String binary)
Sets the
binary parameter. |
void |
setChecksum(java.lang.String checksum)
Sets the
checksum parameter. |
void |
setEsn(java.lang.String esn)
Sets the
esn parameter. |
void |
setId(java.lang.String recId)
Sets the
id parameter. |
void |
setNativesyntax(java.lang.String nativesyntax)
Sets the
nativesyntax parameter. |
void |
setOffset(java.lang.String offset)
Sets the
offset parameter. |
void |
setSyntax(java.lang.String syntax)
Sets the
syntax parameter. |
boolean |
spOnly()
Here implementing commands publish whether they only
apply to the Service Proxy or can be executed
against straight Pazpar2 as well.
|
addExpression, equals, getCommandName, getEncodedQueryString, getParameter, getParameterValue, getSession, getValueWithExpressions, hashCode, hasParameters, hasParameterValue, removeExpression, removeExpressions, removeExpressionsAfter, removeParameter, removeParameters, removeParametersInState, run, runWith, runWith2, setCommandName, setParameter, setParameterInState, setParameters, setParametersInState, setSession, toString
public ResponseDataObject run()
run
in class Pazpar2Command
public void setId(java.lang.String recId)
id
parameter. See Pazpar2 documentation for details.recId
- record IDpublic java.lang.String getId()
id
parameter value.public void setOffset(java.lang.String offset)
offset
parameter. See Pazpar2 documentation for details.public java.lang.String getOffset()
offset
parameter value.public void setChecksum(java.lang.String checksum)
checksum
parameter. See Pazpar2 documentation for details.public java.lang.String getChecksum()
checksum
parameter value.public void setNativesyntax(java.lang.String nativesyntax)
nativesyntax
parameter. See Pazpar2 documentation for details.public java.lang.String getNativesyntax()
nativesyntax
parameter value.public void setSyntax(java.lang.String syntax)
syntax
parameter. See Pazpar2 documentation for details.public java.lang.String getSyntax()
syntax
parameter value.public void setEsn(java.lang.String esn)
esn
parameter. See Pazpar2 documentation for details.public java.lang.String getEsn()
esn
parameter value.public void setBinary(java.lang.String binary)
binary
parameter. See Pazpar2 documentation for details.public java.lang.String getBinary()
binary
parameter value.public RecordCommand copy()
Pazpar2Command
copy
in class Pazpar2Command
public RecordCommandSp getSp()
getSp
in class Pazpar2Command
public boolean spOnly()
Pazpar2Command
spOnly
in interface ServiceProxyCommand
spOnly
in class Pazpar2Command