@SessionScoped
@Named
public class Responses
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Responses() |
Modifier and Type | Method and Description |
---|---|
void |
download(java.lang.String commandName) |
java.lang.String |
getActiveClients() |
ByTargetResponse |
getByTarget() |
ErrorInterface |
getCommandError()
Returns a search command error, if any, otherwise the first
error found for an arbitrary command, if any, otherwise
an empty dummy error.
|
java.util.List<TermResponse> |
getFacetTerms(java.lang.String facet) |
java.util.List<TermResponse> |
getFacetTerms(java.lang.String facet,
int count) |
InitResponse |
getInit() |
RecordResponse |
getRecord() |
ResponseDataObject |
getResponseObject(java.lang.String name) |
SearchResponse |
getSearch() |
ShowResponse |
getShow() |
SpResponses |
getSp() |
StatResponse |
getStat() |
TermListsResponse |
getTermLists() |
boolean |
hasApplicationError() |
boolean |
hasRecords() |
void |
put(java.lang.String name,
ResponseDataObject responseData) |
void |
resetInitAndBeyond()
Empties all data objects populated after a service was initialized, including the init response itself
but excluding a possible auth response
|
void |
resetSearchAndBeyond()
Empties all data objects populated after a search (including the search response itself)
|
void |
setErrorHelper(ErrorHelper helper) |
public void put(java.lang.String name, ResponseDataObject responseData)
public void setErrorHelper(ErrorHelper helper)
public boolean hasApplicationError()
public ErrorInterface getCommandError()
public void resetSearchAndBeyond()
public void resetInitAndBeyond()
public InitResponse getInit()
public ShowResponse getShow()
public StatResponse getStat()
public RecordResponse getRecord()
public SearchResponse getSearch()
public TermListsResponse getTermLists()
public java.util.List<TermResponse> getFacetTerms(java.lang.String facet, int count)
public java.util.List<TermResponse> getFacetTerms(java.lang.String facet)
public ByTargetResponse getByTarget()
public ResponseDataObject getResponseObject(java.lang.String name)
public boolean hasRecords()
public java.lang.String getActiveClients()
public void download(java.lang.String commandName) throws java.io.UnsupportedEncodingException, java.io.IOException
java.io.UnsupportedEncodingException
java.io.IOException
public SpResponses getSp()