@Override protected final Boolean receiveResponse(final InputStream inputStream) throws IOException { ByteDataInput input = null; try { input = new SimpleByteDataInput(inputStream); expectHeader(input, DomainClientProtocol.PARAM_DEPLOYMENT_NAME_UNIQUE); return input.readBoolean(); } finally { safeClose(input); } } }
/** {@inheritDoc} */ @Override protected final Boolean receiveResponse(final InputStream inputStream) throws IOException { ByteDataInput input = null; try { input = new SimpleByteDataInput(inputStream); expectHeader(input, StandaloneClientProtocol.PARAM_DEPLOYMENT_NAME_UNIQUE); return input.readBoolean(); } finally { safeClose(input); } } }
@Override protected final byte[] receiveResponse(final InputStream inputStream) throws IOException { ByteDataInput input = null; try { input = new SimpleByteDataInput(inputStream); expectHeader(input, DomainClientProtocol.RETURN_DEPLOYMENT_HASH_LENGTH); int length = input.readInt(); byte[] hash = new byte[length]; expectHeader(input, DomainClientProtocol.RETURN_DEPLOYMENT_HASH); input.readFully(hash); return hash; } finally { safeClose(input); } } }
/** {@inheritDoc} */ @Override protected final byte[] receiveResponse(final InputStream inputStream) throws IOException { ByteDataInput input = null; try { input = new SimpleByteDataInput(inputStream); expectHeader(input, StandaloneClientProtocol.PARAM_DEPLOYMENT_HASH_LENGTH); int length = input.readInt(); byte[] hash = new byte[length]; expectHeader(input, StandaloneClientProtocol.PARAM_DEPLOYMENT_HASH); input.readFully(hash); return hash; } finally { safeClose(input); } } }