autohit.transport
Interface Transport

All Known Implementing Classes:
HTTPTransport, TestTransport

public abstract interface Transport

An interface to a standard query/response transport facillity.

this may seem like an unneccessary layer of abstraction, but I have plans for the future...


Method Summary
 void connect(java.lang.String address)
          Open the transport to the given address.
 void disconnect()
          Disconnet transport.
 void environment(java.lang.String name, java.lang.String value)
          Set an environment variable for this transport.
 Response push(Query q)
          Push a query and wait for a response.
 

Method Detail

connect

public void connect(java.lang.String address)
             throws TransportException
Open the transport to the given address.
Parameters:
address - Address specification.
Throws:
TransportException -  

push

public Response push(Query q)
              throws TransportException
Push a query and wait for a response.
Parameters:
q - A queury specification.
Returns:
A response object.
Throws:
TransportException -  
See Also:
Query, Response

environment

public void environment(java.lang.String name,
                        java.lang.String value)
Set an environment variable for this transport.
Parameters:
name - variable name.
value - variable value.

disconnect

public void disconnect()
Disconnet transport.