/[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.5 by tuukkah, Thu Apr 24 11:56:46 2003 UTC revision 1.6 by tuukkah, Fri Apr 25 11:08:28 2003 UTC
# Line 129  public class HTTPProxy implements Runnab Line 129  public class HTTPProxy implements Runnab
129                      byte[] bytes = s.getBytes("US-ASCII");                      byte[] bytes = s.getBytes("US-ASCII");
130                      resp.getOutputStream().write(bytes);                      resp.getOutputStream().write(bytes);
131                  }                  }
                 resp.close();  
132                  return resp;                  return resp;
133              } catch(FileNotFoundException e) {              } catch(FileNotFoundException e) {
134                  return resf.makeError(404, "Not found");                  return resf.makeError(404, "Not found");
# Line 141  public class HTTPProxy implements Runnab Line 140  public class HTTPProxy implements Runnab
140                  w.write("The URN in request is invalid.\n");                  w.write("The URN in request is invalid.\n");
141                  w.write("Requested URI: "+req.getRequestURI()+"\n");                  w.write("Requested URI: "+req.getRequestURI()+"\n");
142                  w.close();                  w.close();
                 resp.close();  
143                  return resp;                  return resp;
144              } catch(Exception e) {              } catch(Exception e) {
145                  e.printStackTrace();                  e.printStackTrace();

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

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