public class AuthCommand extends Pazpar2Command implements ServiceProxyCommand
auth command, can be accessed by pzreq.sp.auth
Authenticates a user against a Pazpar2 Service Proxy
| Constructor and Description |
|---|
AuthCommand() |
| Modifier and Type | Method and Description |
|---|---|
AuthCommand |
copy()
Commands must implement this method to provide an completely detached, deep clone of
themselves.
|
java.lang.String |
getAction()
Gets parameter value for
action |
java.lang.String |
getPassword()
Gets parameter value for
password |
ServiceProxyCommand |
getSp()
Implementing classes must provide their Service Proxy
extension command if any extension parameters exists,
or -- just to be polite -- 'this' if there is no
Service Proxy extension to the given command.
|
java.lang.String |
getUsername()
Gets parameter value for
username |
SpResponseDataObject |
run()
Executes the command with the currently selected parameters against
the currently selected Pazpar2 service
|
void |
setAction(java.lang.String action)
Sets Service Proxy command parameter
action. |
void |
setPassword(java.lang.String password)
Sets Service Proxy command parameter
password. |
void |
setUsername(java.lang.String username)
Sets Service Proxy command parameter
username. |
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, toStringpublic SpResponseDataObject run()
Pazpar2Commandrun in class Pazpar2Commandpublic void setAction(java.lang.String action)
action. See Service Proxy documentation for details.public java.lang.String getAction()
actionpublic void setUsername(java.lang.String username)
username. See Service Proxy documentation for details.public java.lang.String getUsername()
usernamepublic void setPassword(java.lang.String password)
password. See Service Proxy documentation for details.public java.lang.String getPassword()
passwordpublic AuthCommand copy()
Pazpar2Commandcopy in class Pazpar2Commandpublic ServiceProxyCommand getSp()
Pazpar2CommandgetSp in class Pazpar2Commandpublic boolean spOnly()
Pazpar2CommandspOnly in interface ServiceProxyCommandspOnly in class Pazpar2Command