org.ros.internal.node.topic
Class SubscriberHandshake

java.lang.Object
  extended by org.ros.internal.node.topic.SubscriberHandshake
All Implemented Interfaces:
ClientHandshake

public class SubscriberHandshake
extends java.lang.Object
implements ClientHandshake


Constructor Summary
SubscriberHandshake(java.util.Map<java.lang.String,java.lang.String> outgoingHeader)
           
 
Method Summary
 java.lang.String getErrorMessage()
           
 java.util.Map<java.lang.String,java.lang.String> getOutgoingHeader()
           
 boolean handshake(java.util.Map<java.lang.String,java.lang.String> incomingHeader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubscriberHandshake

public SubscriberHandshake(java.util.Map<java.lang.String,java.lang.String> outgoingHeader)
Method Detail

handshake

public boolean handshake(java.util.Map<java.lang.String,java.lang.String> incomingHeader)
Specified by:
handshake in interface ClientHandshake
Parameters:
incomingHeader - the ConnectionHeader sent by the server
Returns:
true if the handshake is successful, false otherwise

getOutgoingHeader

public java.util.Map<java.lang.String,java.lang.String> getOutgoingHeader()
Specified by:
getOutgoingHeader in interface ClientHandshake
Returns:
the outgoing ConnectionHeader

getErrorMessage

public java.lang.String getErrorMessage()
Specified by:
getErrorMessage in interface ClientHandshake
Returns:
the error String returned by the server if an error occurs, null otherwise