More error handling/reporting. Normalizing auth resp
authorNiels Erik G. Nielsen <nielserik@indexdata.com>
Sun, 12 May 2013 17:49:16 +0000 (13:49 -0400)
committerNiels Erik G. Nielsen <nielserik@indexdata.com>
Sun, 12 May 2013 17:49:16 +0000 (13:49 -0400)
commit5584e83f4b8d6c66999048dafcb9ce6999808894
treec87d9ecad0caadd3225dad617dbe6f207f40a605
parentbcb39bd9bde8071ac3a6741ce5d51ed9e763ba9c
More error handling/reporting. Normalizing auth resp

Parses HTML reponses where XML were expected, for instance HTML pages
returned when domain is not found or HTML error pages from servlet
container when service-proxy app not found.

Also normalizes auth responses, renaming the document element 'response'
to 'auth' before handing the XML string to the parser (other responses
are named by their corresponding command, which is what the parser
expects). Thie original auth response is still preserved, though.
src/main/java/com/indexdata/mkjsf/pazpar2/ClientCommandResponse.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/ServiceProxyClient.java
src/main/java/com/indexdata/mkjsf/pazpar2/ServiceProxyExtensions.java
src/main/java/com/indexdata/mkjsf/pazpar2/data/CommandError.java
src/main/java/com/indexdata/mkjsf/pazpar2/data/ResponseParser.java