Skip to content

Commit

Permalink
*) Better error handling if yacy SOAP extension is not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
theli committed Aug 29, 2005
1 parent b778493 commit 8132a44
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions source/de/anomic/http/httpd.java
Expand Up @@ -486,6 +486,12 @@ public Boolean GET(String arg) throws IOException {
} catch (Exception e) {
sendRespondHeader(this.prop,this.session.out,httpVersion,503,null);
return serverCore.TERMINATE_CONNECTION;
} catch (NoClassDefFoundError e) {
sendRespondError(this.prop,this.session.out,4,503,null,"SOAP Extension not installed",null);
return serverCore.TERMINATE_CONNECTION;
} catch (Error e) {
sendRespondHeader(this.prop,this.session.out,httpVersion,503,null);
return serverCore.TERMINATE_CONNECTION;
}
}
soapHandler.doGet(this.prop, header, this.session.out);
Expand Down Expand Up @@ -634,6 +640,12 @@ public Boolean POST(String arg) throws IOException {
} catch (Exception e) {
sendRespondHeader(this.prop,this.session.out,httpVersion,503,null);
return serverCore.TERMINATE_CONNECTION;
} catch (NoClassDefFoundError e) {
sendRespondError(this.prop,this.session.out,4,503,"SOAP Extension not installed","SOAP Extension not installed",null);
return serverCore.TERMINATE_CONNECTION;
} catch (Error e) {
sendRespondHeader(this.prop,this.session.out,httpVersion,503,null);
return serverCore.TERMINATE_CONNECTION;
}
}
soapHandler.doPost(prop, header, this.session.out, this.session.in);
Expand Down

0 comments on commit 8132a44

Please sign in to comment.