B4933582.java revision 1704
/*
* Copyright 2003 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
public class B4933582 implements HttpCallback {
static int count = 0;
static String authstring;
req.orderlyClose();
}
req.orderlyClose();
}
static boolean firstTime = true;
try {
if (firstTime) {
switch (count) {
case 0:
break;
case 1:
*/
save (authstring);
break;
}
} else {
/* check the auth string is premptively set from last time */
} else {
}
}
count ++;
} catch (IOException e) {
e.printStackTrace();
}
}
try {
os.writeObject (s);
} catch (IOException e) {
assert false;
}
}
try {
} catch (Exception e) {
assert false;
}
return s;
}
int c;
}
}
}
static HttpServer server;
try {
if (firstTime) {
} else {
}
} catch (Exception e) {
}
throw e;
}
if (firstTime && f != 1) {
}
if (!firstTime && f != 0) {
}
}
throw new RuntimeException (s);
}
static class MyAuthenticator extends Authenticator {
MyAuthenticator () {
super ();
}
int count = 0;
public PasswordAuthentication getPasswordAuthentication () {
count ++;
return pw;
}
public int getCount () {
return (count);
}
}
static class CacheImpl extends AuthCacheImpl {
int port; // need to store the port number the server is using
CacheImpl () throws IOException {
this (-1);
}
super();
new FileInputStream (src)
);
try {
} catch (ClassNotFoundException e) {
assert false;
}
} else {
}
}
int getPort () {
return port;
}
private void writeMap () {
try {
if (!dst.createNewFile()) {
return;
}
new FileOutputStream (dst)
);
} catch (IOException e) {}
}
writeMap();
}
return i;
}
writeMap();
}
}
}