/[storm]/storm/org/nongnu/storm/util/HTTPProxy.java
ViewVC logotype

Diff of /storm/org/nongnu/storm/util/HTTPProxy.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by benja, Wed Apr 23 15:53:32 2003 UTC revision 1.4 by tuukkah, Thu Apr 24 11:55:30 2003 UTC
# Line 133  public class HTTPProxy implements Runnab Line 133  public class HTTPProxy implements Runnab
133                  return resp;                  return resp;
134              } catch(FileNotFoundException e) {              } catch(FileNotFoundException e) {
135                  return resf.makeError(404, "Not found");                  return resf.makeError(404, "Not found");
136                } catch(IllegalArgumentException e) {
137                    HTTPResponse resp = resf.makeResponse(404, "Not found");
138                    resp.setField("Content-Type", "text/plain");
139                    Writer w = new OutputStreamWriter(resp.getOutputStream(), "US-ASCII");
140                    w.write("404 - Not found\n\n");
141                    w.write("The URN in request is invalid.");
142                    w.write("Requested URI: "+req.getRequestURI()+"\n");
143                    w.close();
144                    resp.close();
145                    return resp;
146              } catch(Exception e) {              } catch(Exception e) {
147                  e.printStackTrace();                  e.printStackTrace();
148                  return resf.makeError(500, "Internal error");                  return resf.makeError(500, "Internal error");

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26