com.ibm.etill.framework.cassette
Class ProtocolResponse
java.lang.Object
|
+--com.ibm.etill.framework.cassette.CassetteResponse
|
+--com.ibm.etill.framework.cassette.ProtocolResponse
- public class ProtocolResponse
- extends CassetteResponse
ProtocolResponse objects are used to send any required payment protocol
messages to the outside world in response to a previously received
ProtocolRequest message. For each new ProtocolRequest that is received
at Commerce Payments, the Framework constructs a ProtocolResponse object
and passes it to the Cassette object's service
method along
with the request object.
ProtocolResponse is currently functionally equivalent to CassetteResponse,
but new function may be added to it in the future. Currently, the only
data member is a reference to the ETillConnection to which the response
message, if any, should be written to the outside world.
- See Also:
ProtocolRequest
,
Cassette.service(com.ibm.etill.framework.cassette.CassetteRequest, com.ibm.etill.framework.cassette.CassetteResponse)
ProtocolResponse
public ProtocolResponse(ETillConnection connection)
- This constructor should not be called by cassettes. The Framework uses this
constructor to build a response object containing the specified
ETillConnection
object. The framework constructs each ProtocolResponse object before calling the
Cassette object's service
method.
- Parameters:
connection
- an ETillConnection object through which any response message
to the outside world should be sent.- See Also:
ETillConnection.write(java.lang.Object)