Lines Matching refs:req

86         void errorReply (HttpTransaction req, String reply) throws IOException {
87 req.addResponseHeader ("Connection", "close");
88 req.addResponseHeader ("WWW-Authenticate", reply);
89 req.sendResponse (401, "Unauthorized");
90 req.orderlyClose();
93 void proxyReply (HttpTransaction req, String reply) throws IOException {
94 req.addResponseHeader ("Proxy-Authenticate", reply);
95 req.sendResponse (407, "Proxy Authentication Required");
98 void okReply (HttpTransaction req) throws IOException {
99 req.addResponseHeader ("Connection", "close");
100 req.setResponseEntityBody ("Hello .");
101 req.sendResponse (200, "Ok");
102 req.orderlyClose();
105 public void request (HttpTransaction req, int count) {
107 URI uri = req.getRequestURI();
110 doT1a (req, count);
112 doT1b (req, count);
114 doT1c (req, count);
116 doT1d (req, count);
118 doT2a (req, count);
120 doT2b (req, count);
122 doT3a (req, count);
124 doT3bc (req, count);
126 doT3bc (req, count);
141 void doT1a (HttpTransaction req, int count) throws IOException {
144 errorReply (req, "Basic realm=\"realm1\"");
149 okReply (req);
157 void doT1b (HttpTransaction req, int count) throws IOException {
160 errorReply (req, "Basic realm=\"realm2\"");
166 okReply (req);
173 void doT1c (HttpTransaction req, int count) throws IOException {
176 errorReply (req, "Basic realm=\"realm1\"");
180 okReply (req);
187 void doT1d (HttpTransaction req, int count) throws IOException {
190 errorReply (req, "Basic realm=\"realm2\"");
195 okReply (req);
207 void doT2a (HttpTransaction req, int count) throws IOException {
212 errorReply (req, "Basic realm=\"realm3\"");
215 void doT2b (HttpTransaction req, int count) throws IOException {
218 errorReply (req, "Basic realm=\"realm3\"");
221 okReply (req);
232 void doT3a (HttpTransaction req, int count) throws IOException {
235 proxyReply (req, "Basic realm=\"proxy\"");
239 errorReply (req, "Basic realm=\"realm4\"");
242 okReply (req);
249 void doT3bc (HttpTransaction req, int count) throws IOException {
252 proxyReply (req, "Basic realm=\"proxy\"");
255 okReply (req);