de.knipp.rritoolkit.test
Class DebugPort

java.lang.Object
  extended by de.knipp.rritoolkit.test.DebugPort
All Implemented Interfaces:
Port

public class DebugPort
extends java.lang.Object
implements Port

This is a helper class for debugging/logging purposes. It is wrapper class that prints the sent requests and returned responses to the console.

Version:
$Revision: 14936 $
Author:
Klaus Malorny

Field Summary
private  Port port
          the actual port
 
Constructor Summary
DebugPort(Port thePort)
          constructor
 
Method Summary
 Response execute(Request request)
          "execute" a request, i.e. send it to the registry and wait for the response
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

port

private Port port
the actual port

Constructor Detail

DebugPort

public DebugPort(Port thePort)
constructor

Parameters:
thePort - the actual port
Method Detail

execute

public Response execute(Request request)
                 throws java.io.IOException
"execute" a request, i.e. send it to the registry and wait for the response

Specified by:
execute in interface Port
Parameters:
request - the request
Returns:
the response received
Throws:
java.io.IOException - if either the transmission or the reception failed


Copyright © 2005-2011 Knipp Medien und Kommunikation GmbH