com.sun.jini.start
Class HTTPDStatus

java.lang.Object
  extended by com.sun.jini.start.HTTPDStatus

public class HTTPDStatus
extends Object

Class which can be used to print a descriptive warning message if a codebase accessibility problem is found.

Author:
Sun Microsystems, Inc.

Field Summary
private static Logger logger
          Config logger.
 
Constructor Summary
private HTTPDStatus()
           
 
Method Summary
private static void drainStream(InputStream is)
          Reads and discards all data from a given input stream.
static void httpdWarning(String codebase)
          Method that takes a codebase parameter and displays a warning message if it is determined that a potential codebase accessibility problem exists.
static void main(String[] args)
          Command line interface that checks the accessability of a desired JAR file(s), given its URL address.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static final Logger logger
Config logger.

Constructor Detail

HTTPDStatus

private HTTPDStatus()
Method Detail

main

public static void main(String[] args)
Command line interface that checks the accessability of a desired JAR file(s), given its URL address. Note: The provided URL(s) cannot contain embedded spaces.

Parameters:
args - String array containing the command line arguments

httpdWarning

public static void httpdWarning(String codebase)
Method that takes a codebase parameter and displays a warning message if it is determined that a potential codebase accessibility problem exists.

Parameters:
codebase - String containing the codebase to poll for the existence of a running HTTP server with access to the JAR file referenced in this parameter

drainStream

private static void drainStream(InputStream is)
                         throws IOException
Reads and discards all data from a given input stream.

Parameters:
is - the InputStream from which to read data
Throws:
IOException


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.