Package | Description |
---|---|
com.indexdata.mkjsf.pazpar2.commands |
Each Pazpar2 command is represented by a class with methods for
setting parameters and running the command against
the selected Pazpar2 service.
|
com.indexdata.mkjsf.pazpar2.data |
Pazpar2 responses produced by Pazpar2 commands are parsed by the
ResponseParser, which outputs response data objects that are accessible to the UI
through the class Responses.
|
com.indexdata.mkjsf.pazpar2.data.sp |
Service Proxy responses produced by Service Proxy commands.
|
com.indexdata.mkjsf.utils |
Utility classes for file upload, string and list manipulation in UI, logging
|
Modifier and Type | Method and Description |
---|---|
ResponseDataObject |
SearchCommand.run() |
ResponseDataObject |
RecordCommand.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
|
ResponseDataObject |
Pazpar2Command.run()
Executes the command with the currently selected parameters against
the currently selected Pazpar2 service
|
ResponseDataObject |
Pazpar2Command.run(SearchClient client,
Responses pzresp)
Executes the command in a thread.
|
ResponseDataObject |
Pazpar2Command.runWith(java.lang.String... parameters)
Executes the commands with the currently selected parameters, while adding
the parameters provided in the vararg
|
ResponseDataObject |
Pazpar2Command.runWith2(java.lang.String parameters,
java.lang.String delimiter)
Executes the commands with the currently selected parameters, while adding
the parameters provided in the 'delimiter'-separated String.
|
Modifier and Type | Class and Description |
---|---|
class |
ByTargetResponse
Data from the
bytarget command, can be accessed by pzresp.byTarget |
class |
CommandError
Holds an error encountered during the execution of a command.
|
class |
Hit
Data from the
show command, child object of ShowResponse, can be accessed by pzresp.show.hits |
class |
InitResponse
Data from the
init command, can be accessed by pzresp.init |
class |
Location
Data from the
show command, child object of Hit |
class |
RecordResponse
Data from the
record command, can be accessed by pzresp.record |
class |
SearchResponse
Data from the
search command (a status message), can be accessed by pzresp.search |
class |
ServiceError |
class |
ShowResponse
Data from the
show command, can be accessed by pzresp.show |
class |
StatResponse
Data from the
stat command, can be accessed by pzresp.stat |
class |
Target
Data from the
bytarget command, child object of ByTargetResponse |
class |
TermListResponse
Data from the
termlist command, child object of TermListsResponse |
class |
TermListsResponse
Data from the
termlist command, can be accessed by pzresp.termLists |
class |
TermResponse
Data from the
termlist command, child object of TermListResponse |
class |
TermXTargetResponse
Data from the
termlist command, child object of TermListResponse |
Modifier and Type | Method and Description |
---|---|
ResponseDataObject |
ResponseParser.getDataObject(ClientCommandResponse response)
Parses a Pazpar2 XML response -- or an error response as XML -- and produces a
ResponseDataObject object, i.e.
|
ResponseDataObject |
ResponseDataObject.getOneElement(java.lang.String name) |
ResponseDataObject |
Responses.getResponseObject(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
java.util.List<ResponseDataObject> |
ResponseDataObject.getElements(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
ResponseDataObject.addElement(java.lang.String name,
ResponseDataObject value)
Used by the response XML parser to add child element objects to a parent element object
|
void |
Responses.put(java.lang.String name,
ResponseDataObject responseData) |
Modifier and Type | Class and Description |
---|---|
class |
AuthResponse
Data from the
auth command, can be accessed by pzresp.sp.auth |
class |
CategoriesResponse
Data from the
categories command, can be accessed by pzresp.sp.categories |
class |
SpResponseDataObject
Base class for Service Proxy-only response data
|
class |
TargetCategory
Data from the
categories command, can be accessed by pzresp.sp.categories.targetCategories |
Modifier and Type | Method and Description |
---|---|
java.util.List<ResponseDataObject> |
UiUtils.getMaxElements(ResponseDataObject container,
java.lang.String elementName,
int maxElements,
int maxTotalValueLength,
boolean hardLimit)
Gets at most maxElements data objects, up to a total string length of maxTotalValueLength
|
static java.util.List<ResponseDataObject> |
UiUtils.getMaxNumElements(ResponseDataObject container,
java.lang.String elementName,
int maxElements)
Gets at most maxElements elements of the given elementName
|
Modifier and Type | Method and Description |
---|---|
java.util.List<ResponseDataObject> |
UiUtils.getMaxElements(ResponseDataObject container,
java.lang.String elementName,
int maxElements,
int maxTotalValueLength,
boolean hardLimit)
Gets at most maxElements data objects, up to a total string length of maxTotalValueLength
|
static java.util.List<ResponseDataObject> |
UiUtils.getMaxNumElements(ResponseDataObject container,
java.lang.String elementName,
int maxElements)
Gets at most maxElements elements of the given elementName
|