org.eclipse.jetty.websocket
Class TestClient

java.lang.Object
  extended by org.eclipse.jetty.websocket.TestClient

public class TestClient
extends Object

Version:
$Revision: 3013 $ $Date: 2011-04-13 21:05:35 +1000 (Wed, 13 Apr 2011) $ This is not a general purpose websocket client. It's only for testing the websocket server and is hardwired to a specific draft version of the protocol.

Constructor Summary
TestClient(String host, int port, String protocol, int timeoutMS)
           
 
Method Summary
 void dump()
           
 int getSize()
           
static void main(String[] args)
           
 void ping(int count, byte opcode, int fragment)
           
 void setSize(int size)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestClient

public TestClient(String host,
                  int port,
                  String protocol,
                  int timeoutMS)
           throws IOException
Throws:
IOException
Method Detail

getSize

public int getSize()

setSize

public void setSize(int size)

ping

public void ping(int count,
                 byte opcode,
                 int fragment)

dump

public void dump()
          throws Exception
Throws:
Exception

main

public static void main(String[] args)


Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.