| java.lang.Object org.w3c.www.protocol.http.cache.push.Client
Client | public class Client (Code) | | PushCache Client - send messages to push cache server
author: Paul Henshaw, The Fantastic Corporation, Paul.Henshaw@fantastic.com version: $Revision: 1.2 $ version: $Id: Client.java,v 1.2 2001/10/05 08:07:52 ylafon Exp $ |
Constructor Summary | |
public | Client() | public | Client(String hostname, int port) | public | Client(String[] argv) Construct client with command line arguments and execute
command. |
DEFAULT_SERVER | final public static String DEFAULT_SERVER(Code) | | Default hostname - localhost
|
MAX_TRIES | final public static int MAX_TRIES(Code) | | How many times should we try to reconnect? 10
|
OKNOFAILED | final public static int OKNOFAILED(Code) | | Return/exit values
|
VC_ID | final public static String VC_ID(Code) | | Version Control Id
|
VC_REVISION | final public static String VC_REVISION(Code) | | Version Control Revision
|
Client | public Client()(Code) | | Construct a Client for the default hostname and port number
|
Client | public Client(String hostname, int port)(Code) | | Construct a Client for the specified hostname and port number
|
Client | public Client(String[] argv) throws IOException(Code) | | Construct client with command line arguments and execute
command. Called by main, for use as stand alone program -
calls System.exit at the end of execution
|
checkCommand | protected void checkCommand(String com) throws IllegalArgumentException(Code) | | Throws IllegalArgumentException iff com is not a null
terminated string of the correct length
|
cleanup | protected void cleanup()(Code) | | Cleanup, shutdown and close socket and streams
|
main | public static void main(String[] argv)(Code) | | For use as stand alone program - constructs Client with argv
|
readPayload | protected void readPayload() throws IOException(Code) | | Read remaining payload length bytes into buffer
|
serverError | protected void serverError() throws IOException(Code) | | Handle an ERR message from server - cleanup, throw IOException
|
simpleCommand | public void simpleCommand(String com) throws IOException(Code) | | Send a simple packet with specified command
|
unexpectedReply | protected void unexpectedReply() throws IOException(Code) | | Handle an unexpected message from server - send BYE, throw IOException
|
usage | protected void usage()(Code) | | Display usage/help message
|
version | protected void version()(Code) | | Display version information
|
writeHeader | protected void writeHeader() throws IOException(Code) | | Write header information into packet buffer
|
|
|