public void putHandshakeParam(final HandshakeProperty key, final String value) { handshakeParams.put(key.name(), value); }
property = HandshakeProperty.valueOf(propertyName); } catch (final Exception e) { throw new HandshakeException(ResponseCode.UNKNOWN_PROPERTY_NAME, "Received unknown property: " + propertyName); throw new HandshakeException(ResponseCode.MISSING_PROPERTY, "Missing Property " + HandshakeProperty.GZIP.name());
property = HandshakeProperty.valueOf(propertyName); } catch (final Exception e) { throw new HandshakeException(ResponseCode.UNKNOWN_PROPERTY_NAME, "Received unknown property: " + propertyName); throw new HandshakeException(ResponseCode.MISSING_PROPERTY, "Missing Property " + HandshakeProperty.GZIP.name());
dos.writeInt(properties.size()); for (final Map.Entry<HandshakeProperty, String> entry : properties.entrySet()) { dos.writeUTF(entry.getKey().name()); dos.writeUTF(entry.getValue());