Rearranges pz2/sp client logic to isolate error messaging
authorNiels Erik G. Nielsen <nielserik@indexdata.com>
Sat, 4 May 2013 02:30:19 +0000 (22:30 -0400)
committerNiels Erik G. Nielsen <nielserik@indexdata.com>
Sat, 4 May 2013 02:30:19 +0000 (22:30 -0400)
commit249aba186bb25b673bc701f4614cfe1981cd6767
treee0765ab73ed444dfaf583a69708bc665a393a35a
parent3d2e0f114bc4f80e13b82799324538b6a2a03bdf
Rearranges pz2/sp client logic to isolate error messaging

Error message handling and generating consolidated and put in one
place (for each of pz2 and sp).

Is put in client.executeCommand, which no longer throws exceptions -
all errors client errors sought captured here and converted to XML
responses, thus simplifying things for the users of executeCommand.
13 files changed:
src/main/java/com/indexdata/mkjsf/pazpar2/CommandResponse.java
src/main/java/com/indexdata/mkjsf/pazpar2/CommandThread.java
src/main/java/com/indexdata/mkjsf/pazpar2/Pz2Bean.java
src/main/java/com/indexdata/mkjsf/pazpar2/Pz2Client.java
src/main/java/com/indexdata/mkjsf/pazpar2/Pz2CommandResponse.java
src/main/java/com/indexdata/mkjsf/pazpar2/SearchClient.java
src/main/java/com/indexdata/mkjsf/pazpar2/commands/Pazpar2Command.java
src/main/java/com/indexdata/mkjsf/pazpar2/data/CommandError.java
src/main/java/com/indexdata/mkjsf/pazpar2/sp/ServiceProxyClient.java
src/main/java/com/indexdata/mkjsf/pazpar2/sp/ServiceProxyClientCommandResponse.java [deleted file]
src/main/java/com/indexdata/mkjsf/pazpar2/sp/ServiceProxyCommandResponse.java [new file with mode: 0644]
src/main/java/com/indexdata/mkjsf/pazpar2/state/Pazpar2State.java
src/main/java/com/indexdata/mkjsf/pazpar2/state/StateManager.java