Jetif v1.8.0

jetif
Interface LwProxy

All Known Implementing Classes:
EJBProxy, IDLProxy

public interface LwProxy

The LwProxy means lightweight proxy. It's similar to Proxy, but all data are encoded with Base64 encoding. It will be more easier to transmit strings between two JVMs for most underlying protocol.
The jetif.LwProxyAgent is recommended for lightweight proxy agent implementation.

Author:
Vicky Wang
See Also:
Proxy, LwProxyAgent

Method Summary
 void close()
          Close the remote proxy agent when a suite is completed.
 void open(Properties props, String data)
          Bind the remote proxy agent at the beginning of a suite.
 String runCase(String input)
          Run a test case with specified input data.
 

Method Detail

open

public void open(Properties props,
                 String data)
          throws FrameworkException
Bind the remote proxy agent at the beginning of a suite.

Parameters:
props - The properties object of this suite.
data - The data should be transmitted to remote proxy agent, encoded in Base64 encoding.
Throws:
FrameworkException - if errors occurs try to bind proxy agent.

runCase

public String runCase(String input)
               throws FrameworkException
Run a test case with specified input data.

Parameters:
input - the data should be transmitted to remote proxy agent, encoded in Base64 encoding.
Returns:
the result from remote proxy agent, encoded in Base64 encoding.
Throws:
FrameworkException - if error occurs during testing.

close

public void close()
           throws FrameworkException
Close the remote proxy agent when a suite is completed.

Throws:
FrameworkException

Jetif v1.8.0

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