Dolda2000 GitWeb
/
jsvc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added a request-restart-wrapper and some convenient redirections.
[jsvc.git]
/
src
/
dolda
/
jsvc
/
test
/
TestResponder.java
diff --git
a/src/dolda/jsvc/test/TestResponder.java
b/src/dolda/jsvc/test/TestResponder.java
index
d7541b4
..
414dfef
100644
(file)
--- a/
src/dolda/jsvc/test/TestResponder.java
+++ b/
src/dolda/jsvc/test/TestResponder.java
@@
-13,6
+13,9
@@
public class TestResponder implements Responder {
throw(new Error(e));
}
throw(new Error(e));
}
+ if(req.path().equals("bard1"))
+ throw(new RuntimeException("bard1"));
+
out.println("<html>");
out.println("<head><title>Barda</title></head>");
out.println("<body>");
out.println("<html>");
out.println("<head><title>Barda</title></head>");
out.println("<body>");
@@
-23,6
+26,9
@@
public class TestResponder implements Responder {
out.println(req.remoteaddr() + "<->" + req.localaddr());
out.println("</body>");
out.println("</html>");
out.println(req.remoteaddr() + "<->" + req.localaddr());
out.println("</body>");
out.println("</html>");
+
+ if(req.path().equals("bard2"))
+ throw(new RuntimeException("bard2"));
out.flush();
}
}
out.flush();
}
}