public abstract class AbstractRequest extends Object implements Request
Request implementations.PROPERTY_INTERACTIVE, PROPERTY_REMOTE| Constructor and Description |
|---|
AbstractRequest()
Default constructor.
|
AbstractRequest(Request request) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsProperty(String key) |
List<String> |
getId() |
<T> T |
getProperty(String key) |
<T> T |
getProperty(String key,
T def) |
Collection<String> |
getPropertyNames() |
boolean |
isInteractive() |
boolean |
isRemote() |
boolean |
isVerbose() |
<T> T |
removeProperty(String key) |
void |
setId(List<String> id) |
void |
setId(String id) |
void |
setInteractive(boolean interactive) |
void |
setProperty(String key,
Object value) |
void |
setRemote(boolean remote) |
void |
setVerbose(boolean verbose) |
public AbstractRequest()
public AbstractRequest(Request request)
request - the request to copypublic void setId(List<String> id)
id - the identifier used to access the jobpublic void setId(String id)
id - the identifier used to access the jobpublic boolean isRemote()
public void setRemote(boolean remote)
remote - indicate if the job has been triggered by a remote eventpublic boolean isInteractive()
isInteractive in interface Requestpublic void setInteractive(boolean interactive)
interactive - indicate if the job is allowed to ask questions if it it should be fully automated (i.e. use
default answers)public void setProperty(String key, Object value)
key - the name of the propertyvalue - the value of the propertypublic <T> T removeProperty(String key)
T - the type of the valuekey - the name of the propertypublic <T> T getProperty(String key)
getProperty in interface RequestT - the type of the valuekey - the name of the propertypublic <T> T getProperty(String key, T def)
getProperty in interface RequestT - the type of the valuekey - the name of the propertydef - the default value of the propertypublic Collection<String> getPropertyNames()
getPropertyNames in interface Requestpublic boolean containsProperty(String key)
containsProperty in interface Requestkey - the name of the propertypublic boolean isVerbose()
public void setVerbose(boolean verbose)
verbose - true if the job should log informations about what is going on.Copyright © 2004–2017 XWiki. All rights reserved.