Jetif v1.8.0

jetif.ext.proxy
Class SocketProxy

java.lang.Object
  extended byjetif.ext.proxy.SocketProxy
All Implemented Interfaces:
Proxy

public class SocketProxy
extends Object
implements Proxy

The SocketProxy implements a SOCKET proxy implementation.

Author:
Vicky Wang

Field Summary
static String DEFAULT_AGENT_URI
           
 
Constructor Summary
SocketProxy()
           
 
Method Summary
 void close()
          Close the remote proxy agent when a suite is completed.
 void open(Properties props, Serializable data)
          Bind the remote proxy agent at the beginning of a suite.
 Object runCase(Serializable data)
          Run a test case with specified input data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_AGENT_URI

public static final String DEFAULT_AGENT_URI
See Also:
Constant Field Values
Constructor Detail

SocketProxy

public SocketProxy()
Method Detail

open

public void open(Properties props,
                 Serializable data)
          throws FrameworkException
Description copied from interface: Proxy
Bind the remote proxy agent at the beginning of a suite.

Specified by:
open in interface Proxy
Parameters:
props - The properties object of this suite.
data - The data should be transmitted to remote proxy agent.
Throws:
FrameworkException - if errors occurs try to bind proxy agent.

runCase

public Object runCase(Serializable data)
               throws FrameworkException
Description copied from interface: Proxy
Run a test case with specified input data.

Specified by:
runCase in interface Proxy
Parameters:
data - the data should be transmitted to remote proxy agent.
Returns:
the result from remote proxy agent.
Throws:
FrameworkException - if error occurs during testing.

close

public void close()
           throws FrameworkException
Description copied from interface: Proxy
Close the remote proxy agent when a suite is completed.

Specified by:
close in interface Proxy
Throws:
FrameworkException

Jetif v1.8.0

Copyright © 2004,2005 Vicky Wang - All Rights Reserved.